# HG changeset patch # User Pascal Bellard # Date 1502988663 -7200 # Node ID 6c0be0a0a9325662179c3b3e29ed31cfc73eda00 # Parent 395df81fd01f4b09ca149e15f8aa9cb04963d1ab linux: fix bundle build diff -r 395df81fd01f -r 6c0be0a0a932 linux/stuff/bundle --- a/linux/stuff/bundle Thu Apr 13 19:09:32 2017 +0200 +++ b/linux/stuff/bundle Thu Aug 17 18:51:03 2017 +0200 @@ -24,10 +24,10 @@ } #install-begin - cp $0 $0.sh - gzip -9 < bundle.bin | uuencode -m - | \ - sed -e '/^bundle.bin$/r/dev/stdin' -e '/^bundle.bin*/d' \ - -e '/install-begin$/,/install-end$/d' -i $0.sh + sed '1,/^bundle.bin$/!d' $0 > $0.sh + gzip -9 < bundle.bin | uuencode -m - >> $0.sh + sed '1,/^bundle.bin$/d' $0 >> $0.sh + sed -i -e '/^bundle.bin$/d' -e '/install-begin$/,/install-end$/d' $0.sh chmod +x $0.sh exit #install-end