Add perl parseable line to src/libpspp/version.c
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 20 Dec 2008 06:53:50 +0000 (15:53 +0900)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 20 Dec 2008 06:53:50 +0000 (15:53 +0900)
Cause a line of the form $VERSION='x.y.z' to be added
to the file src/libpspp/version.c so that recent versions
of Perl's MakeMaker recognises it.

src/libpspp/automake.mk

index 0c20643bbc71908cd818b1d1de81d9430ba40539..538ce3a984537c9ade70d35bdb1066d06a6fad56 100644 (file)
@@ -78,7 +78,11 @@ nodist_src_libpspp_libpspp_la_SOURCES = src/libpspp/version.c
 src/libpspp/version.c: $(top_srcdir)/AUTHORS
        @$(MKDIR_P) src/libpspp
        echo "/*        -*- mode: c; buffer-read-only: t -*-" > $@
-       echo "   Generated by src/libpspp/automake.mk --- Do not edit. */">> $@
+       echo "   Generated by src/libpspp/automake.mk --- Do not edit.">> $@
+       echo "" >> $@
+       echo "   The following line is for the benefit of the perl module" >>$@
+       echo "\$$VERSION='"@VERSION@"';" >> $@
+       echo "*/" >> $@
        echo "#include \"version.h\"" >> $@
        echo "const char bare_version[] = \"@VERSION@\";" >> $@
        echo "const char version[] = \"GNU @PACKAGE@ @VERSION@\";" >> $@