- Timestamp:
- 09/29/2005 07:14:06 PM (19 years ago)
- Branches:
- 0.2, 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- a5e49c6
- Parents:
- 44f88e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
jhalfs
r44f88e3 r07f47df 23 23 -D, --download-client=CLIENT use CLIENT as the program for retrieving 24 24 packages 25 -T, --no-testsuites don't run the package's testsuites. 25 -T, --no-testsuites don't run the package's testsuites 26 -P, --have-packages don't download the packages 26 27 " 27 28 … … 82 83 shift 83 84 TEST=1 85 shift 86 ;; 87 88 --have-packages | -P ) 89 shift 90 HPKG=1 84 91 shift 85 92 ;; … … 222 229 get_sources() { 223 230 224 # This variable is necessary to make sure the `cat $JHALFSDIR/packages` 225 # separates each iteration by lines. It is necessary to have the second 226 # ' on the next line. 227 IFS=' 231 # Test if the packages must be downloaded 232 if [ -z $HPKG ] ; then 233 234 # This variable is necessary to make sure the `cat $JHALFSDIR/packages` 235 # separates each iteration by lines. It is necessary to have the second 236 # ' on the next line. 237 IFS=' 228 238 ' 229 239 230 if [ ! -d $BUILDDIR/sources ] ; then mkdir $BUILDDIR/sources ; fi 231 cd $BUILDDIR/sources 232 if [ -f MD5SUMS ] ; then rm MD5SUMS ; fi 233 234 download "" MD5SUMS 235 236 # Iterate through each package and grab it, along with any patches it needs. 237 for i in `cat $JHALFSDIR/packages` ; do 238 PKG=`echo $i | sed 's/-version.*//'` 239 240 # Someone used some silly entities right next to the valid package entities. 241 if [ "$PKG" = "expect-lib" -o "$PKG" = "linux-dl" ] ; then continue ; fi 242 243 VRS=`echo $i | sed -e 's/.* //' -e 's/"//g'` 244 if [ "$PKG" = "tcl" ] ; then 245 FILE="$PKG$VRS-src.tar.bz2" 246 else 247 FILE="$PKG-$VRS.tar.bz2" 248 fi 249 download $PKG $FILE 250 for patch in `grep "$PKG-&$PKG" $JHALFSDIR/patches` ; do 251 PATCH=`echo $patch | sed 's@&'$PKG'-version;@'$VRS'@'` 252 download $PKG $PATCH 240 if [ ! -d $BUILDDIR/sources ] ; then mkdir $BUILDDIR/sources ; fi 241 cd $BUILDDIR/sources 242 if [ -f MD5SUMS ] ; then rm MD5SUMS ; fi 243 244 download "" MD5SUMS 245 246 # Iterate through each package and grab it, along with any patches it needs. 247 for i in `cat $JHALFSDIR/packages` ; do 248 PKG=`echo $i | sed 's/-version.*//'` 249 250 # Someone used some silly entities right next to the valid package entities. 251 if [ "$PKG" = "expect-lib" -o "$PKG" = "linux-dl" ] ; then continue ; fi 252 253 VRS=`echo $i | sed -e 's/.* //' -e 's/"//g'` 254 if [ "$PKG" = "tcl" ] ; then 255 FILE="$PKG$VRS-src.tar.bz2" 256 else 257 FILE="$PKG-$VRS.tar.bz2" 258 fi 259 download $PKG $FILE 260 for patch in `grep "$PKG-&$PKG" $JHALFSDIR/patches` ; do 261 PATCH=`echo $patch | sed 's@&'$PKG'-version;@'$VRS'@'` 262 download $PKG $PATCH 263 done 253 264 done 254 done265 fi 255 266 } 256 267 … … 289 300 fi 290 301 291 # Insert instructions for unpacking the package and changing directories 302 # Insert instructions for unpacking the package and to set 303 # the PKGDIR variable. 292 304 echo -e "\t\$(call unpack-lfs,$FILE) && \\" >> $MKFILE.tmp 293 305 echo -e "\tROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\" >> $MKFILE.tmp
Note:
See TracChangeset
for help on using the changeset viewer.