From ecfb828667ce93ce2c44bb42e03e70bba4d897b5 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Tue, 22 Aug 2006 18:36:50 +0000 Subject: [PATCH] Allow to regenerate packages database and meta-packages dependencies without updating the BLFS book sources. --- BLFS/update_book.sh | 6 +++--- blfs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/BLFS/update_book.sh b/BLFS/update_book.sh index 0a4a5ea..754c7c2 100755 --- a/BLFS/update_book.sh +++ b/BLFS/update_book.sh @@ -6,8 +6,8 @@ set -e declare -r SVN="svn://svn.linuxfromscratch.org" -BLFS_XML=$1 # Book directory -DOC_MODE=$2 # Action to take, update or get +DOC_MODE=$1 # Action to take, update, get or none +BLFS_XML=$2 # Book directory TREE=$3 # SVN tree for the BLFS book version [[ -z $BLFS_XML ]] && BLFS_XML=blfs-xml @@ -70,7 +70,7 @@ inline_doc esac } -BOOK_Source +[ "${DOC_MODE}" != "none" ] && BOOK_Source echo -en "\n\tGenerating packages database file ..." generate_packages diff --git a/blfs b/blfs index 4674a4a..bf46f4e 100755 --- a/blfs +++ b/blfs @@ -132,7 +132,7 @@ sed -i 's,tracking-dir,'$TRACKING_DIR',' update_book.sh gen-makefile.sh if [[ -d $BLFS_XML ]] ; then ./update_book.sh else - ./update_book.sh $BLFS_XML get $TREE + ./update_book.sh get $BLFS_XML $TREE fi # Generate Config.in and run the menuconfig interface