Changeset c3c4e1d for common/common-functions
- Timestamp:
- 03/19/2006 11:14:42 AM (19 years ago)
- Branches:
- experimental
- Children:
- ad71d98
- Parents:
- c0cbd50
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/common-functions
rc0cbd50 rc3c4e1d 229 229 230 230 231 #----------------------------------# 232 wrt_unpack2() { # 233 #----------------------------------# 234 local FILE=$1 235 ( 236 cat << EOF 237 @\$(call unpack2,$FILE) 238 @ROOT=\`head -n1 /tmp/unpacked | sed 's@^./@@;s@/.*@@'\` && \\ 239 echo "export PKGDIR=\$(SRC)/\$\$ROOT" > envars 240 EOF 241 ) >> $MKFILE.tmp 242 } 243 244 231 245 #=============================# 232 246 wrt_unpack3() { # Unpack and set 'ROOT' var … … 236 250 cat << EOF 237 251 @\$(call unpack3,$FILE) 238 @ROOT=\`head -n1 /tmp/unpacked | sed 's@^./@@;s@/.*@@'\` && \\239 echo "export PKGDIR=\$(MOUNT_PT)\$(SRC)/\$\$ROOT" > envars && \\240 chown -R lfs \$(MOUNT_PT)\$(SRC)/\$\$ROOT241 EOF242 ) >> $MKFILE.tmp243 }244 245 246 #----------------------------------#247 wrt_unpack2() { #248 #----------------------------------#249 local FILE=$1250 (251 cat << EOF252 @\$(call unpack2,$FILE)253 @ROOT=\`head -n1 /tmp/unpacked | sed 's@^./@@;s@/.*@@'\` && \\254 echo "export PKGDIR=\$(SRC)/\$\$ROOT" > envars255 EOF256 ) >> $MKFILE.tmp257 }258 259 260 #=============================#261 wrt_unpack4() { # Unpack and set 'ROOT' var262 #=============================#263 local FILE=$1264 (265 cat << EOF266 @\$(call unpack4,$FILE)267 252 @ROOT=\`head -n1 /tmp/unpacked | sed 's@^./@@;s@/.*@@'\` && \\ 268 253 echo "export PKGDIR=\$(SRC)/\$\$ROOT" > envars
Note:
See TracChangeset
for help on using the changeset viewer.