diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2005-09-15 13:21:29 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2005-09-15 13:21:29 +0000 |
commit | b37d2769c8efce6c9c9447909710a79c7113506c (patch) | |
tree | e02c96753e5a0ed2a4b99793f660a1acd37585a7 /Makefile.in | |
parent | 08c8b1899b7a0ea4dae7d9962820d1b9d690ec11 (diff) | |
download | quilt-b37d2769c8efce6c9c9447909710a79c7113506c.tar.gz |
- Fix quilt.spec generation after the Sep 14 change.
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 |