openpkg/etc.wrapsrc.sh

changeset 445
43a74e63d4a3
parent 428
f880f219c566
child 450
061d2617f42f
equal deleted inserted replaced
0:5b1809ac49cc 1:55ef6066f76e
37 PATH="$PATH:/bin:/sbin:/usr/bin:/usr/sbin" 37 PATH="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
38 LC_CTYPE=C 38 LC_CTYPE=C
39 export LC_CTYPE 39 export LC_CTYPE
40 umask 022 40 umask 022
41 41
42 # pre-parse command line options 42 # preparse command line options
43 for opt 43 for opt
44 do 44 do
45 case $opt in 45 case $opt in
46 -*=*) arg=`echo "$opt" | sed 's/^[-_a-zA-Z0-9]*=//'` ;; 46 -*=*) arg=`echo "$opt" | sed 's/^[-_a-zA-Z0-9]*=//'` ;;
47 *) arg='' ;; 47 *) arg='' ;;
144 144
145 # cleanup 145 # cleanup
146 rm -rf $l_dir >/dev/null 2>&1 146 rm -rf $l_dir >/dev/null 2>&1
147 147
148 # die explicitly just before the shell would discover 148 # die explicitly just before the shell would discover
149 # that we carry mega-bytes of data with us... 149 # that we carry megabytes of data with us...
150 exit 0 150 exit 0
151 151
152 # the distribution tarball is appended in raw format directly to the 152 # the distribution tarball is appended in raw format directly to the
153 # end of this script, just leaded by padding whitespaces which make 153 # end of this script, just leaded by padding whitespaces which make
154 # sure that the tarball data starts at the pre-defined offset of 64KB. 154 # sure that the tarball data starts at the predefined offset of 64KB.
155 # This allows us to unpack the tarball by just skipping the leading 155 # This allows us to unpack the tarball by just skipping the leading
156 # 64KB (= 8192*8, see above). 156 # 64KB (= 8192*8, see above).
157 157

mercurial