Fixed the svn check and added WC to the config file.

Thanks to Bruce Dubbs for pointing out both issues.
This commit is contained in:
Manuel Canales Esparcia 2006-01-12 18:42:14 +00:00
parent 7b20cc5ae2
commit 2082b3d1d8
2 changed files with 9 additions and 9 deletions

6
jhalfs
View file

@ -150,12 +150,12 @@ clean_builddir() {
#----------------------------#
get_book() {
#----------------------------#
# Check for Subversion instead of just letting the script hit 'svn' and fail.
test `type -p svn` || eval "echo \"This feature requires Subversion.\"
exit 1"
cd $JHALFSDIR
if [ -z $WC ] ; then
# Check for Subversion instead of just letting the script hit 'svn' and fail.
test `type -p svn` || eval "echo \"This feature requires Subversion.\"
exit 1"
echo -n "Downloading the LFS Book, version $LFSVRS... "
# Grab a fresh LFS book if it's missing, otherwise, update it from the

View file

@ -41,6 +41,11 @@ FSTAB=
#--- Location of kernel config file (if the kernel is to be compiled)
CONFIG=
#--- Book's sources directory
# Uncomment this variables if you have previously checked
# out the book from the repository
# BOOK=/path/to/book
# WC=1
#==== INTERNAL VARIABLES ====
@ -59,8 +64,3 @@ JHALFSDIR=$BUILDDIR/jhalfs
#--- Book version
LFSVRS=development
#--- Book's sources directory
# Uncomment this variable if you have previously checked
# out the book from the repository
# BOOK=/path/to/book