Changeset a160d86 for common/common-functions
- Timestamp:
- 06/20/2006 09:14:44 PM (18 years ago)
- Branches:
- 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- ddde18e
- Parents:
- c044e3c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/common-functions
rc044e3c ra160d86 684 684 local IFS line URL1 URL2 FILE BOOKMD5 MD5 HAVEMD5 fromARCHIVE 685 685 686 # ALWAYS create a list of the full filenames 687 create_package_list 688 686 689 # Test if the packages must be downloaded 687 690 [ ! "$GETPKG" = "1" ] && return … … 799 802 RUNMAKE=0 800 803 fi 804 } 805 806 #----------------------------# 807 create_package_list() { # 808 #----------------------------# 809 810 # Create the packages file. We need it for proper Makefile creation 811 echo -n "Creating <${PROGNAME}> list of tarball names for $BOOK $ARCH" 812 case ${PROGNAME} in 813 clfs) 814 xsltproc --nonet \ 815 --xinclude \ 816 -o pkg_tarball_list packages.xsl $BOOK/${ARCH}-index.xml 817 ;; 818 hlfs | lfs ) 819 xsltproc --nonet \ 820 --xinclude \ 821 -o pkg_tarball_list packages.xsl $BOOK/index.xml 822 ;; 823 esac 824 echo " ...OK" 825 801 826 } 802 827 … … 837 862 cd $BUILDDIR/sources 838 863 } 864 865 866 #----------------------------# 867 get_package_tarball_name() { # 868 #----------------------------# 869 local script_name=$1 870 871 # The use of 'head' is necessary to limit the return value to the FIRST match.. 872 # hopefully this will not cause problems. 873 # 874 case $script_name in 875 tcl) echo $(grep "^tcl" $JHALFSDIR/pkg_tarball_list | head -n1 ) ;; 876 *) echo $(grep "^$script_name-[[:digit:]]" $JHALFSDIR/pkg_tarball_list | head -n1 ) ;; 877 esac 878 879 }
Note:
See TracChangeset
for help on using the changeset viewer.