diff --git a/Makefile b/Makefile index 9452968..7eb31c4 100644 --- a/Makefile +++ b/Makefile @@ -6,12 +6,10 @@ compile: publish: compile @echo - cp .git/$(cat .git/HEAD | cut -d' ' -f2) public/version.txt ./bin/publish.sh --delete publish_beta: compile @echo - cp .git/$(cat .git/HEAD | cut -d' ' -f2) public/version.txt ./bin/publish.sh --beta --delete test_blog: diff --git a/bin/publish.sh b/bin/publish.sh index 2e0e9e2..07decbe 100755 --- a/bin/publish.sh +++ b/bin/publish.sh @@ -55,4 +55,5 @@ if [[ $ECHO -eq 1 ]]; then echo "$CMD" fi +cp .git/$(cat .git/HEAD | cut -d' ' -f2) www/version.txt $CMD