Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 29 lines (24 sloc) 0.927 kb
5e94611 @d0ugal Bit of a general tidy up - moved the version into
d0ugal authored
1 .PHONY : clean build-min docs
2
c71ccde @d0ugal Removed a typo
d0ugal authored
3 VERSION = $(shell cat version.txt)
26e9007 @d0ugal Fixed the gh-pages branch swapping.
d0ugal authored
4 BRANCH = $(shell git branch | grep \* | cut -d' ' -f 2)
19fd9a0 @d0ugal Improved building.
d0ugal authored
5 build: | build-min docs
5e94611 @d0ugal Bit of a general tidy up - moved the version into
d0ugal authored
6
7 build-min:
8 @echo "Creating minified version."
9 @mkdir -p ./build
10 @echo "Marking version ${VERSION}"
19fd9a0 @d0ugal Improved building.
d0ugal authored
11 @cat locache.js | sed 's/VERSION-PLACEHOLDER/${VERSION}/' > ./build/locache.${VERSION}.js
938d55a @d0ugal locache version 0.3.1 build
d0ugal authored
12 @closure-compiler < ./build/locache.${VERSION}.js > ./build/locache.${VERSION}.min.js
19fd9a0 @d0ugal Improved building.
d0ugal authored
13 @cp ./build/locache.${VERSION}.js ./build/locache.js
14 @cp ./build/locache.${VERSION}.min.js ./build/locache.min.js
5e94611 @d0ugal Bit of a general tidy up - moved the version into
d0ugal authored
15
16 docs:
17 @echo "Creating docs"
19fd9a0 @d0ugal Improved building.
d0ugal authored
18 @docco ./build/locache.${VERSION}.js
19 @cp -f ./docs/locache.${VERSION}.html ./docs/locache.html
5e94611 @d0ugal Bit of a general tidy up - moved the version into
d0ugal authored
20
19fd9a0 @d0ugal Improved building.
d0ugal authored
21 update-page:
22 @echo "Updating GitHub projct page";
23 @git checkout gh-pages;
24 @echo "Swiched to branch from ${BRANCH}, merging master";
25 @git merge master;
26 @git push origin gh-pages;
27 @echo "Updated. Switching back to ${BRANCH}";
26e9007 @d0ugal Fixed the gh-pages branch swapping.
d0ugal authored
28 @git checkout ${BRANCH};
Something went wrong with that request. Please try again.