summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2003-01-30 12:39:08 +0000
committerAndreas Gruenbacher <agruen@suse.de>2003-01-30 12:39:08 +0000
commitd21546c2def2a91838704eec183d04ea8b692b18 (patch)
tree5d32656737947c9b88e452de511b23bbb854b53f
parent07627e2a5d17e3ebce946d4b46409086a8e9a986 (diff)
downloadquilt-d21546c2def2a91838704eec183d04ea8b692b18.tar.gz
Another regex quoting mistake; add rpm makefile target
-rw-r--r--Makefile7
-rw-r--r--lib/patchfns.in2
2 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4ab00e6..244ed79 100644
--- a/Makefile
+++ b/Makefile
@@ -64,6 +64,11 @@ all : scripts
scripts : $(BIN:%=bin/%) $(QUILT:%=quilt/%) $(LIB:%=lib/%) \
$(DOC) $(MAN1)
+dist : $(PACKAGE)-$(VERSION).tar.gz
+
+rpm : $(PACKAGE)-$(VERSION).tar.gz
+ rpm -tb $<
+
README : README.in
@awk '/@REFERENCE@/ { system("$(MAKE) -s reference") ; next }'$$'\n'' \
{ print }' 2>&1 $< > $@
@@ -83,8 +88,6 @@ bin/guards.1 : bin/guards
mkdir -p $$(dirname $@)
pod2man $< > $@
-dist : $(PACKAGE)-$(VERSION).tar.gz
-
$(PACKAGE)-$(VERSION).tar.gz : $(SRC)
rm -f $(PACKAGE)-$(VERSION)
ln -s . $(PACKAGE)-$(VERSION)
diff --git a/lib/patchfns.in b/lib/patchfns.in
index e5be4f5..463fb30 100644
--- a/lib/patchfns.in
+++ b/lib/patchfns.in
@@ -30,7 +30,7 @@ DIFFSTAT=/usr/bin/diffstat
quote_re()
{
- echo "$1" | sed -e 's:\([^$/.+*\[\\]\):\\\1:g'
+ echo "$1" | sed -e 's:\([\^\$/.+*\[\\]\):\\\1:g'
}
#basename()