Changeset dd29d02
- Timestamp:
- 06/23/2006 06:06:31 PM (18 years ago)
- Branches:
- 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- a2c9b41
- Parents:
- 3d1b542
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/common-functions
r3d1b542 rdd29d02 208 208 } 209 209 210 #----------------------------# 211 get_package_tarball_name() { # 212 #----------------------------# 213 local script_name=$1 214 215 # The use of 'head' is necessary to limit the return value to the FIRST match.. 216 # hopefully this will not cause problems. 217 # 218 case $script_name in 219 tcl) echo $(grep "^tcl" $JHALFSDIR/pkg_tarball_list | head -n1 ) ;; 220 *) echo $(grep "^$script_name-[[:digit:]]" $JHALFSDIR/pkg_tarball_list | head -n1 ) ;; 221 esac 222 223 } 210 224 211 225 #----------------------------------# … … 536 550 rm -rf $BUILDDIR/{bin,boot,dev,etc,home,lib,media,mnt,opt,proc,root,sbin,srv,sys,tmp,tools,cross-tools,usr,var} 537 551 echo -ne "Cleaning $JHALFSDIR...\n" 538 rm -rf $JHALFSDIR/{0*,1*,envars,sources-dir,*commands, logs,Makefile,*.xsl,makefile-functions,packages,patches}552 rm -rf $JHALFSDIR/{0*,1*,envars,sources-dir,*commands,*logs,Makefile,*.xsl,makefile-functions,pkg_tarball_list,*.config,*.sh} 539 553 echo -ne "Cleaning remainig extracted sources in $BUILDDIR/sources...\n" 540 554 rm -rf `find $BUILDDIR/sources/* -maxdepth 0 -type d` … … 568 582 cd ${PROGNAME}-$LFSVRS 569 583 if LC_ALL=C svn up | grep -q At && test -d $JHALFSDIR/${PROGNAME}-commands && \ 570 test -f $JHALFSDIR/p ackages; then584 test -f $JHALFSDIR/pkg_tarball_list ; then 571 585 echo -ne "done\n" 572 586 # Set the canonical book version … … 667 681 668 682 # Create the packages file. We need it for proper Makefile creation 669 rm -f packages 670 echo -n "Creating <${PROGNAME}> specific packages file" 671 grep "\-version " $BOOK/packages.ent | sed -e 's@<!ENTITY @@' \ 672 -e 's@">@"@' > packages 673 echo " ...OK" 683 create_package_list 674 684 675 685 # Done. Moving on... … … 678 688 679 689 #----------------------------# 690 create_package_list() { # 691 #----------------------------# 692 693 # Create the packages file. We need it for proper Makefile creation 694 rm -f pkg_tarball_list 695 echo -n "Creating <${PROGNAME}> list of tarball names for $BOOK $ARCH" 696 case ${PROGNAME} in 697 clfs) 698 xsltproc --nonet --xinclude -o pkg_tarball_list packages.xsl \ 699 $BOOK/materials/${ARCH}-chapter.xml >>$LOGDIR/$LOG 2>&1 700 ;; 701 hlfs) 702 xsltproc --nonet --xinclude -o pkg_tarball_list packages.xsl \ 703 $BOOK/chapter04/chapter04.xml >>$LOGDIR/$LOG 2>&1 704 ;; 705 lfs) 706 xsltproc --nonet --xinclude -o pkg_tarball_list packages.xsl \ 707 $BOOK/chapter03/chapter03.xml >>$LOGDIR/$LOG 2>&1 708 ;; 709 esac 710 echo " ...OK" 711 712 } 713 714 715 #----------------------------# 680 716 get_sources() { # Download file, write name to MISSING_FILES.DMP if an error 681 717 #----------------------------# 682 718 local saveIFS=$IFS 683 719 local IFS line URL1 URL2 FILE BOOKMD5 MD5 HAVEMD5 fromARCHIVE 684 685 # ALWAYS create a list of the full filenames686 create_package_list687 720 688 721 # Test if the packages must be downloaded … … 802 835 fi 803 836 } 804 805 #----------------------------#806 create_package_list() { #807 #----------------------------#808 809 # Create the packages file. We need it for proper Makefile creation810 echo -n "Creating <${PROGNAME}> list of tarball names for $BOOK $ARCH"811 case ${PROGNAME} in812 clfs)813 xsltproc --nonet \814 --xinclude \815 -o pkg_tarball_list packages.xsl $BOOK/${ARCH}-index.xml816 ;;817 hlfs | lfs )818 xsltproc --nonet \819 --xinclude \820 -o pkg_tarball_list packages.xsl $BOOK/index.xml821 ;;822 esac823 echo " ...OK"824 825 }826 827 837 828 838 #----------------------------# … … 861 871 cd $BUILDDIR/sources 862 872 } 863 864 865 #----------------------------#866 get_package_tarball_name() { #867 #----------------------------#868 local script_name=$1869 870 # The use of 'head' is necessary to limit the return value to the FIRST match..871 # hopefully this will not cause problems.872 #873 case $script_name in874 tcl) echo $(grep "^tcl" $JHALFSDIR/pkg_tarball_list | head -n1 ) ;;875 *) echo $(grep "^$script_name-[[:digit:]]" $JHALFSDIR/pkg_tarball_list | head -n1 ) ;;876 esac877 878 }
Note:
See TracChangeset
for help on using the changeset viewer.