diff options
| author | Simon Tatham <anakin@pobox.com> | 2014-09-24 10:33:21 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2014-09-24 10:33:21 +0000 |
| commit | 2ebbdbf2a567c73d75af4f0e04f4f42bfe6d3530 (patch) | |
| tree | ffba948f9ec31406431f027e96a36a518bba56c6 /Recipe | |
| parent | bc930a121466e0e33b46ff01db0153f5cfb79054 (diff) | |
| download | puzzles-2ebbdbf2a567c73d75af4f0e04f4f42bfe6d3530.zip puzzles-2ebbdbf2a567c73d75af4f0e04f4f42bfe6d3530.tar.gz puzzles-2ebbdbf2a567c73d75af4f0e04f4f42bfe6d3530.tar.bz2 puzzles-2ebbdbf2a567c73d75af4f0e04f4f42bfe6d3530.tar.xz | |
Remove dependencies on Subversion.
I'm going through all my projects and reworking them to avoid
depending on the monotonic integer-valued source control revision
identifier provided by Subversion, so I can migrate everything to git
without my builds and versioning breaking.
Puzzles's version number is now of the form YYYYMMDD.vvvvvv, where
vvvvvv is some string of source control information (currently still
the SVN-style "rNNNNN", but free to change in future). The date
provides monotonicity between my official automated builds, and the
second component is the one I'll be most interested in when people
send bug reports.
[originally from svn r10263]
Diffstat (limited to 'Recipe')
| -rw-r--r-- | Recipe | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -118,8 +118,6 @@ version.o: version.c version2.def version2.def: FORCE if test -z "$(VER)" && test -f manifest && md5sum -c manifest; then \ cat version.def > version2.def.new; \ - elif test -z "$(VER)" && test -d .svn && svnversion . >/dev/null 2>&1; then \ - echo "-DREVISION=`svnversion .`" >version2.def.new; \ else \ echo "$(VER)" >version2.def.new; \ fi && \ @@ -136,7 +134,7 @@ version2.def: FORCE # backtick expression. We also force rebuilding via a -D option that # makes version.o include empty.h, which we construct ourselves and # touch whenever any source file is updated. -!cflags am version $(VER) -DINCLUDE_EMPTY_H `if test -z "$(VER)" && (cd $(srcdir) && test -f manifest && md5sum -c manifest >/dev/null 2>&1); then cat $(srcdir)/version.def; elif test -z "$(VER)" && test -d $(srcdir)/.svn && svnversion $(srcdir) >/dev/null 2>&1; then echo "-DREVISION=\`svnversion $(srcdir)\`"; else echo "$(VER)"; fi` +!cflags am version -DINCLUDE_EMPTY_H `if test -z "$(VER)" && (cd $(srcdir) && test -f manifest && md5sum -c manifest >/dev/null 2>&1); then cat $(srcdir)/version.def; else echo "$(VER)"; fi` !begin am BUILT_SOURCES = empty.h CLEANFILES = empty.h @@ -156,8 +154,6 @@ version.o: version.c version2.def version2.def: FORCE if test -z "$(VER)" && test -f manifest && md5sum -c manifest; then \ cat version.def > version2.def.new; \ - elif test -z "$(VER)" && test -d .svn && svnversion . >/dev/null 2>&1; then \ - echo "-DREVISION=`svnversion .`" >version2.def.new; \ else \ echo "$(VER)" >version2.def.new; \ fi && \ @@ -180,8 +176,6 @@ version.i386.o: version.c version2.def version2.def: FORCE if test -z "$(VER)" && test -f manifest && (md5 -r `awk '{print $$2}' manifest` | diff -w manifest -); then \ cat version.def > version2.def.new; \ - elif test -z "$(VER)" && test -d .svn && svnversion . >/dev/null 2>&1; then \ - echo "-DREVISION=`svnversion .`" >version2.def.new; \ else \ echo "$(VER)" >version2.def.new; \ fi && \ |