From: Richard Kettlewell Date: Sun, 17 Nov 2013 10:57:23 +0000 (+0000) Subject: Commit version string files. X-Git-Tag: 5.2~110 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/9bd9e192e69d076dc8a1658ffd33aa4e6d2dff0c Commit version string files. Allows for platforms with a rubbish build system. --- diff --git a/.gitignore b/.gitignore index dabe04b..3cbcedb 100644 --- a/.gitignore +++ b/.gitignore @@ -130,8 +130,6 @@ lib/index.html server/index.html .DS_Store tests/disorder-udplog -lib/version-string -lib/versionstring.h scripts/setup examples/disorder.rc scripts/teardown diff --git a/lib/Makefile.am b/lib/Makefile.am index 4f7be92..f2f15f7 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -96,6 +96,7 @@ libdisorder_a_SOURCES=charset.c charsetf.c charset.h \ validity.c validity.h \ vector.c vector.h \ version.c version.h \ + versionstring.c \ wav.h wav.c \ wstat.c wstat.h \ disorder.h @@ -106,7 +107,7 @@ version-string: ../config.status ${top_srcdir}/scripts/make-version-string echo rm -f $@.new; rm -f $@.new; else \ echo mv $@.new $@; mv $@.new $@; fi -versionstring.h: version-string ${top_srcdir}/scripts/text2c +versionstring.c: version-string ${top_srcdir}/scripts/text2c ${top_srcdir}/scripts/text2c -extern disorder_version_string \ version-string > $@.new @if cmp $@.new $@; then \ @@ -132,8 +133,8 @@ definitions.h: Makefile @if cmp $@.new $@; then \ echo rm -f $@.new; rm -f $@.new; else \ echo mv $@.new $@; mv $@.new $@; fi -defs.o: definitions.h versionstring.h -defs.lo: definitions.h versionstring.h +defs.o: definitions.h +defs.lo: definitions.h client.o: client-stubs.c diff --git a/lib/defs.c b/lib/defs.c index f0e35b2..5ff3101 100644 --- a/lib/defs.c +++ b/lib/defs.c @@ -59,8 +59,6 @@ const char sendmail_binary[] = SENDMAIL; */ const char finkbindir[] = FINKBINDIR; -#include "versionstring.h" - /* Local Variables: c-basic-offset:2 diff --git a/lib/version-string b/lib/version-string new file mode 100644 index 0000000..5dc0de3 --- /dev/null +++ b/lib/version-string @@ -0,0 +1,6 @@ +%s (DisOrder) 5.1.1 +Copyright (C) 2003-2011 Richard Kettlewell et al +License GPLv3+: GNU GPL version 3 or later: + http://www.gnu.org/licenses/gpl-3.0.html +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law. diff --git a/lib/versionstring.c b/lib/versionstring.c new file mode 100644 index 0000000..006badf --- /dev/null +++ b/lib/versionstring.c @@ -0,0 +1,10 @@ +/* autogenerated file, do not edit */ + + const char disorder_version_string[] = + "%s (DisOrder) 5.1.1\n" + "Copyright (C) 2003-2011 Richard Kettlewell et al\n" + "License GPLv3+: GNU GPL version 3 or later:\n" + " http://www.gnu.org/licenses/gpl-3.0.html\n" + "This is free software: you are free to change and redistribute it.\n" + "There is NO WARRANTY, to the extent permitted by law.\n" +;