Changeset 2140f22 for BLFS/gen_pkg_book.sh
- Timestamp:
- 01/28/2018 05:56:55 PM (7 years ago)
- Branches:
- ablfs-more, legacy, trunk
- Children:
- 1fa0dee
- Parents:
- 764a5d7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/gen_pkg_book.sh
r764a5d7 r2140f22 100 100 local -i index 101 101 local DepDir=$1 102 rm -f $DepDir/*.{ o,}dep102 rm -f $DepDir/*.{tree,dep} 103 103 for (( index=0 ; index < ${#TARGET[*]} ; index ++ )); do 104 echo 1 ${TARGET[${index}]} >> $DepDir/root.odep104 echo 1 b ${TARGET[${index}]} >> $DepDir/root.dep 105 105 done 106 echo 1 > $DepDir/root.dep107 echo 1 >> $DepDir/root.dep108 cat $DepDir/root.odep >> $DepDir/root.dep109 106 } 110 107 … … 157 154 pushd $DepDir > /dev/null 158 155 set +e 159 generate_dependency_tree root.dep 1 160 echo 161 LIST="$(tree_browse root.dep)" 156 generate_subgraph root.dep 1 1 b 157 echo -e "\n${SD_BORDER}" 158 echo Graph contains $(ls |wc -l) nodes 159 echo -e "${SD_BORDER}" 160 echo Cleaning subgraph... 161 clean_subgraph 162 echo done 163 echo Generating the tree 164 echo 1 > root.tree 165 echo 1 >> root.tree 166 cat root.dep >> root.tree 167 generate_dependency_tree root.tree 1 168 echo -e "\n${SD_BORDER}" 169 #echo -e \\n provisional end... 170 #exit 171 echo Generating the ordered package list 172 LIST="$(tree_browse root.tree)" 162 173 set -e 163 174 popd > /dev/null … … 165 176 echo Making XML book 166 177 xsltproc --stringparam list "$LIST" \ 167 --stringparam MTA "$ SERVER_MAIL" \178 --stringparam MTA "$MAIL_SERVER" \ 168 179 --stringparam lfsbook "$LFS_FULL" \ 169 180 -o ${BookXml} \
Note:
See TracChangeset
for help on using the changeset viewer.