scripts/toolchain-config.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jan 20 20:10:50 2009 +0000 (2009-01-20)
changeset 1148 081205fd3790
parent 894 c444ce4b51b9
child 1189 5c20d52c8270
permissions -rw-r--r--
Forced-removing of a non-existing directory breaks the build.
Noticed by "Andy Johnson" <ajohnson@aecno.com>, who provided a patch that I adapted.

/trunk/scripts/functions | 13 10 3 0 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
yann@894
     1
#!/bin/sh
yann@894
     2
yann@894
     3
SKIP_ME="### CT_NG SKIP ME ###"
yann@894
     4
skip_me=$(($(cat "${0}" |grep --binary-files=text -o -b -E "^${SKIP_ME}$" |cut -d : -f 1)+${#SKIP_ME}+1))
yann@894
     5
dd if="${0}" bs=${skip_me} skip=1 2>/dev/null |bzcat
yann@894
     6
exit 0
yann@894
     7
yann@894
     8
### CT_NG SKIP ME ###