cookutils rev 545 slitaz-tank
cook: Add some comments to better explain my functions.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Oct 15 18:53:00 2012 +0000 (2012-10-15) |
parents | 3974b72eb580 |
children | 2b093f098fe2 |
files | cook |
line diff
1.1 --- a/cook Mon Oct 15 17:39:00 2012 +0000 1.2 +++ b/cook Mon Oct 15 18:53:00 2012 +0000 1.3 @@ -265,6 +265,8 @@ 1.4 done 1.5 } 1.6 1.7 +# get source tarball 1.8 +# $1 = --extract 1.9 getsrc() { 1.10 gettext "Getting source for:"; echo " $pkg" 1.11 set_paths 1.12 @@ -312,6 +314,9 @@ 1.13 [ "$PATCH" ] && echo -e "Patch: $SRC/$PTARBALL" 1.14 } 1.15 1.16 +# the base function to download sources when offline 1.17 +# This is to make sure source can be download when local-mirror 1.18 +# script is in use. 1.19 download_base() { 1.20 local URLS url alt_url orig_url orig_url_patch 1.21 url="$ONLINE_SRC_REPOSITORY" 1.22 @@ -391,6 +396,9 @@ 1.23 chown -R 0.0 $(pwd) 1.24 } 1.25 1.26 +# Repack source tarball as .tar.lzma 1.27 +# The source tarball is extracted as $tmpsrc/$pkgsrc path 1.28 +# This way the source has a clean path when building 1.29 repack_source() { 1.30 1.31 # Some archives are not well done and don't extract to one dir (ex lzma). 1.32 @@ -584,6 +592,8 @@ 1.33 fi 1.34 } 1.35 1.36 +# extract path of source tarball 1.37 +# This is for the getsrc --extract option 1.38 extract_path() 1.39 { 1.40 # Some archives are not well done and don't extract to one dir (ex lzma). 1.41 @@ -1007,6 +1017,7 @@ 1.42 sed '1!G;h;$!d' $1 1.43 } 1.44 1.45 +# this function is to build the unbuild list 1.46 unbuild() 1.47 { 1.48 check_root