openbsd-ports/security/stegdetect/patches/patch-file_Makefile_in
2008-09-16 21:08:27 +00:00

15 lines
495 B
Plaintext

$OpenBSD: patch-file_Makefile_in,v 1.2 2008/09/16 21:08:27 jasper Exp $
--- file/Makefile.in.orig Tue Sep 16 23:00:11 2008
+++ file/Makefile.in Tue Sep 16 23:02:26 2008
@@ -504,9 +504,7 @@ magic: Header Localstuff $(magic_FRAGMENTS)
done >> $@
magic.inc: magic
- echo -n "\"" > $@
- sed -e 's/\\/\\\\/g' -e 's/"/\\\"/g' -e 's/$$/\ \\/' magic >> $@
- echo -n "\"" >> $@
+ sed -e 's/\\/\\\\/g' -e 's/"/\\\"/g' -e 's/^/\"/' -e 's/$$/\\n\"/' magic > $@
file.1: Makefile file.man
@rm -f $@