diff options
author | N.N. <krzyszcz@users.sourceforge.net> | 2004-03-31 10:24:20 +0000 |
---|---|---|
committer | N.N. <krzyszcz@users.sourceforge.net> | 2004-03-31 10:24:20 +0000 |
commit | dbd3ec671dec8ea39032d3b0b56387df40c66c28 (patch) | |
tree | 6ad4c4d87e05b8babf1d78a1303de508ce5d1cdf /Makefile.common | |
parent | 14b05069b61d8d86d52415acb1adea7a61547ac6 (diff) |
toxy alpha11
svn path=/trunk/externals/miXed/; revision=1526
Diffstat (limited to 'Makefile.common')
-rw-r--r-- | Makefile.common | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile.common b/Makefile.common index 3e44de2..7f88cd1 100644 --- a/Makefile.common +++ b/Makefile.common @@ -183,13 +183,16 @@ define_build: mv build_counter build_counter~ ; \ echo -n 'increment build counter (y/n)? [n]' ; read doit ; \ if [ $$doit ] && [ $$doit == 'y' ] ; then \ - cat build_counter~ | \ + head -3 build_counter~ | \ awk '{if (index($$2,"BUILD")) print $$1, $$2, $$3+1; else print}' \ - > build_counter ; \ - cat build_counter | \ - awk 'BEGIN {printf toupper("$(BASE_NAME)_VERSION = ")} \ + > build_temporary ; \ + cat build_temporary | \ + awk 'BEGIN {printf "\n#if 0\n"; \ + printf toupper("$(BASE_NAME)_SNAPSHOT = ")} \ {gsub("\"","",$$3); printf $$3; if (NR==1) printf "-"} \ - END {printf "\r\n" }' > $(ROOT_DIR)/ViCious/$(BASE_DIR)/version ; \ + END {printf "\n#endif\n" }' | \ + cat build_temporary - > build_counter ; \ + rm -f build_temporary ; \ else cat build_counter~ > build_counter ; fi \ fi |