#!/bin/bash # # $Id$ # set -e declare -r SVN="svn://svn.linuxfromscratch.org" BLFS_XML=$1 # Book directory DOC_MODE=$2 # Action to take, update or get TREE=$3 # SVN tree for the BLFS book version [[ -z $BLFS_XML ]] && BLFS_XML=blfs-xml [[ -z $DOC_MODE ]] && DOC_MODE=update [[ -z $TREE ]] && TREE=trunk/BOOK TRACKING_DIR=tracking-dir #--------------------- # packages module source libs/func_packages [[ $? > 0 ]] && echo -e "\n\tERROR: func_packages did not load..\n" && exit #----------------------------# BOOK_Source() { # #----------------------------# : < /dev/null svn up popd 1> /dev/null echo -e "\n\tBook sources updated." else echo -e "\n\tLooks like $BLFS_XML is not a svn working copy." echo -e "\tSkipping BLFS sources update.\n" fi ;; get ) [[ ! -d $BLFS_XML ]] && mkdir -pv $BLFS_XML svn co $SVN/BLFS/$TREE $BLFS_XML 2>&1 ;; * ) echo -e "\n\tUnknown option ${DOC_MODE} ignored.\n" ;; esac } BOOK_Source echo -en "\n\tGenerating packages database file ..." generate_packages echo "done." echo -en "\tGenerating alsa dependencies list ..." generate_alsa echo "done." echo -en "\tGenerating gnome-core dependencies list ..." generate_gnome_core echo "done." echo -en "\tGenerating gnome-full dependencies list ..." generate_gnome_full echo "done." echo -en "\tGenerating kde-core dependencies list ..." generate_kde_core echo "done." echo -en "\tGenerating kde-full dependencies list ..." generate_kde_full echo -e "done." echo -en "\tGenerating kde-koffice dependencies list ..." generate_kde_koffice echo -e "done." echo -en "\tGenerating xorg7 dependencies list ..." generate_xorg7 echo "done."