diff options
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Makefile.in b/Makefile.in index 1303dab..3b4aade 100644 --- a/Makefile.in +++ b/Makefile.in @@ -197,14 +197,14 @@ $(PACKAGE)-$(ISODATE).tar.bz2 : $(SRC) configure $(PACKAGE).spec configure : configure.ac autoconf -$(PACKAGE).spec : $(PACKAGE).spec.in $(PACKAGE).changes Makefile \ - scripts/parse-patch - @echo "Generating spec file" - @sed -e 's/^\(Version:[ \t]*\).*/\1$(VERSION)/' \ - -e 's/^\(Release:[ \t]\).*/\1$(RELEASE)/' \ - < $< > $@ - @./changes2changelog $(PACKAGE).changes \ - | scripts/parse-patch -u changelog $@ +$(PACKAGE).spec : $(PACKAGE).spec.in $(PACKAGE).changes Makefile + @echo "Generating spec file" ; \ + set -e ; \ + changelog="$$(./changes2changelog $(PACKAGE).changes)" ; \ + awk '{ gsub(/@VERSION''@/, "$(VERSION)") ; \ + gsub(/@RELEASE''@/, "$(RELEASE)") ; \ + gsub(/@CHANGELOG''@/, changelog) ; \ + print }' changelog="$$changelog" $< > $@ % : %.in Makefile @echo "$< -> $@" >&2 |