X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fautomake.mk;h=0892a481c865e22af3fbff2490efccb7b3796680;hb=b5a56f8d1592fd0d9bf981d71e28851c4e733fef;hp=7baa24e05782803576311c4092d7e7cc1b2052f3;hpb=3368d7a7d2e5fd6c284781aa327daff250922756;p=pspp diff --git a/src/libpspp/automake.mk b/src/libpspp/automake.mk index 7baa24e057..0892a481c8 100644 --- a/src/libpspp/automake.mk +++ b/src/libpspp/automake.mk @@ -122,13 +122,17 @@ src/libpspp/version.c: $(top_srcdir)/AUTHORS Makefile $(AM_V_at)echo "#include \"version.h\"" >> $@,tmp $(AM_V_at)echo "const char bare_version[] = \"$(VERSION)\";" >> $@,tmp $(AM_V_at)echo "const char version[] = \"GNU $(PACKAGE) $(VERSION)\";" >> $@,tmp - $(AM_V_at)echo "const char stat_version[] = \"GNU $(PACKAGE) $(VERSION) \ -$(AM_V_at)(`LC_ALL=C TZ=UTC date`).\";" >> $@,tmp + $(AM_V_at)printf "const char announced_version[] = \"GNU $(PACKAGE) $(VERSION)\"" >> $@,tmp + @case `echo $(VERSION) | $(SED) -e 's/[0-9][0-9]*\.[0-9]*\([0-9]\)\.[0-9][0-9]*/\1/'` in \ + [13579]) printf "\"\\\nThis is an unreleased test version. It is not recommended for production use. Use at your own risk\"" >> $@,tmp \ + ;;\ + esac + $(AM_V_at)printf ";\n" >> $@,tmp $(AM_V_at)echo "const char host_system[] = \"$(host_triplet)\";" >> $@,tmp $(AM_V_at)echo "const char build_system[] = \"$(build_triplet)\";" >> $@,tmp $(AM_V_at)echo "const char locale_dir[] = \"$(datadir)/locale\";" >> $@,tmp $(AM_V_at)echo "const char examples_dir[] = \"$(examplesdir)\";" >> $@,tmp $(AM_V_at)echo "const char *const authors[] = {" >> $@,tmp - $(AM_V_at)sed -e 's/^/ \"/' -e 's/$$/\",/' $(top_srcdir)/AUTHORS >> $@,tmp + $(AM_V_at)$(SED) -e 's/^/ \"/' -e 's/$$/\",/' $(top_srcdir)/AUTHORS >> $@,tmp $(AM_V_at)echo "0 };" >> $@,tmp - mv $@,tmp $@ + $(AM_V_at)mv $@,tmp $@