summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()