Whamcloud - gitweb
strip the .patch off of the dpatch name
authorBrian J. Murrell <brian.murrell@oracle.com>
Fri, 4 Jun 2010 21:00:36 +0000 (17:00 -0400)
committerJohann Lombardi <johann@sun.com>
Fri, 4 Jun 2010 21:22:58 +0000 (23:22 +0200)
When annotating the .dpatch files with the patch name, seeing as we
strip the .patch off and replace it with dpatch, do the same in the
annotation.

build/autoMakefile.am.toplevel

index 877fd1d..bf64b5b 100644 (file)
@@ -162,7 +162,7 @@ debs:
                        desc=$$(cat $$file | sed -e '1,/^$$/d' -e '/^---$$/,$$d'); \
                        dpatch_file=$${file/.patch/.dpatch}; \
                        sed -e '1,/^---$$/d' $$file | \
-                         dpatch patch-template -p "$$file" "$$desc" > \
+                         dpatch patch-template -p "$${file%.patch}" "$$desc" > \
                          $$dpatch_file; \
                        echo "faked by make debs run from git" > \
                          ../patched/$$dpatch_file; \