commit 2826962e0817a49da8da38a02e4eb7caa9bbd761
parent 180da00ba3548c28a94de6b6f084115080590675
Author: Daniel Bainton <dpb@driftaway.org>
Date: Mon, 10 Mar 2014 16:41:27 +0000
Simplify the sed line for fetch deps (now works with heirloom sed too)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stuff/generate-pkgs.sh b/stuff/generate-pkgs.sh
@@ -8,7 +8,7 @@ printf '# auto-generated file, do not edit\n'
cd $p
for pkg in *; do
- deps=$(cat $pkg/build | sed -n '1{x;d};${H;x;s/\\\n\t/ /g;p};{H}' | grep ^build: | cut -d ':' -f 2-)
+ deps=$(cat $pkg/build | sed -e 'N;s,\\\n, ,' | grep ^build: | cut -d ':' -f 2-)
fdeps=`for d in $deps; do echo -n "$d-fetch "; done`
cat $pkg/build $f/fetch-pkg.mk |
sed -e "s,^build:,$pkg:QP${f}/cmp-pkgs: $pkg-fetch `pwd`/$pkg/build," \