From 8fde9420365b644c2339860bee6d552ce875ddce Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 20 Dec 2008 15:53:50 +0900 Subject: [PATCH] Add perl parseable line to src/libpspp/version.c 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libpspp/automake.mk b/src/libpspp/automake.mk index 0c20643b..538ce3a9 100644 --- a/src/libpspp/automake.mk +++ b/src/libpspp/automake.mk @@ -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@\";" >> $@ -- 2.30.2