From: Andre Noll Date: Fri, 25 Feb 2011 14:33:58 +0000 (+0100) Subject: Fix depend.sh on NetBSD. X-Git-Tag: v0.4.6~28 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=786d60b052405ee623f1bde5b274081f36f59db6;hp=240731af696393c1414ad17a903c27287741dd57 Fix depend.sh on NetBSD. NetBSD's sed apparently does not understand the \+ syntax to match the preceeding pattern one or more times. OTOH, {1,} seems to work, so use this syntax instead. This caused the build to abort silently because make gives up on the targets that depend on files in the "cmdline" directory. --- diff --git a/depend.sh b/depend.sh index aad45a3c..60d4eba6 100755 --- a/depend.sh +++ b/depend.sh @@ -19,4 +19,4 @@ shift LC_ALL=C gcc -MM -MG "$@" \ | sed -e "s@^\(.*\)\.o:@$object_dir/\1.d $object_dir/\1.o:@" \ - -e "s@[ ^]\([a-zA-Z0-9_]\+\.cmdline.h\)@ $cmdline_dir/\1@g" + -e "s@[ ^]\([a-zA-Z0-9_]\{1,\}\.cmdline.h\)@ $cmdline_dir/\1@g"