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:
parent
7b20cc5ae2
commit
2082b3d1d8
2 changed files with 9 additions and 9 deletions
6
jhalfs
6
jhalfs
|
@ -150,12 +150,12 @@ clean_builddir() {
|
||||||
#----------------------------#
|
#----------------------------#
|
||||||
get_book() {
|
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
|
cd $JHALFSDIR
|
||||||
|
|
||||||
if [ -z $WC ] ; then
|
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... "
|
echo -n "Downloading the LFS Book, version $LFSVRS... "
|
||||||
|
|
||||||
# Grab a fresh LFS book if it's missing, otherwise, update it from the
|
# Grab a fresh LFS book if it's missing, otherwise, update it from the
|
||||||
|
|
12
jhalfs.conf
12
jhalfs.conf
|
@ -41,6 +41,11 @@ FSTAB=
|
||||||
#--- Location of kernel config file (if the kernel is to be compiled)
|
#--- Location of kernel config file (if the kernel is to be compiled)
|
||||||
CONFIG=
|
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 ====
|
#==== INTERNAL VARIABLES ====
|
||||||
|
@ -56,11 +61,6 @@ FILES="functions"
|
||||||
JHALFSDIR=$BUILDDIR/jhalfs
|
JHALFSDIR=$BUILDDIR/jhalfs
|
||||||
LOGDIR=$JHALFSDIR/logs
|
LOGDIR=$JHALFSDIR/logs
|
||||||
MKFILE=$JHALFSDIR/Makefile
|
MKFILE=$JHALFSDIR/Makefile
|
||||||
|
|
||||||
#--- Book version
|
#--- Book version
|
||||||
LFSVRS=development
|
LFSVRS=development
|
||||||
|
|
||||||
#--- Book's sources directory
|
|
||||||
# Uncomment this variable if you have previously checked
|
|
||||||
# out the book from the repository
|
|
||||||
# BOOK=/path/to/book
|
|
||||||
|
|
Reference in a new issue