Big change allowed by using only menuconfig.
This commit is contained in:
parent
392e11c305
commit
2b0f8a58aa
8 changed files with 31 additions and 38 deletions
17
Config.in
17
Config.in
|
@ -26,14 +26,19 @@ menu "--- BOOK Settings"
|
||||||
bool "Beyond Linux From Scratch"
|
bool "Beyond Linux From Scratch"
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
config PROGNAME
|
||||||
|
string
|
||||||
|
default "lfs" if BOOK_LFS
|
||||||
|
default "clfs" if BOOK_CLFS
|
||||||
|
default "clfs2" if BOOK_CLFS2
|
||||||
|
# default "clfs3" if BOOK_CLFS3
|
||||||
|
default "hlfs" if BOOK_HLFS
|
||||||
|
default "blfs" if BOOK_BLFS
|
||||||
|
|
||||||
config RUN_ME
|
config RUN_ME
|
||||||
string
|
string
|
||||||
default "./lfs" if BOOK_LFS
|
default "./jhalfs run" if !BOOK_BLFS
|
||||||
default "./clfs" if BOOK_CLFS
|
default "./blfs-tool" if BOOK_BLFS
|
||||||
default "./clfs2" if BOOK_CLFS2
|
|
||||||
# default "./clfs3" if BOOK_CLFS3
|
|
||||||
default "./hlfs" if BOOK_HLFS
|
|
||||||
default "./blfs" if BOOK_BLFS
|
|
||||||
#--- End BOOK/script
|
#--- End BOOK/script
|
||||||
|
|
||||||
#--- Book version
|
#--- Book version
|
||||||
|
|
|
@ -64,9 +64,8 @@ trap 'echo -e "\n\n${RED}INTERRUPT${OFF} trapped\n" && exit 2' 1 2 3 15 17 18
|
||||||
#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
||||||
|
|
||||||
# envars not sourced from configuration file
|
# envars not sourced from configuration file
|
||||||
PROGNAME=$(basename $0)
|
|
||||||
COMMON_DIR="common"
|
COMMON_DIR="common"
|
||||||
VERBOSITY=1
|
VERBOSITY=1
|
||||||
|
|
||||||
[[ $VERBOSITY > 0 ]] && echo -n "Loading config params from <configuration>..."
|
[[ $VERBOSITY > 0 ]] && echo -n "Loading config params from <configuration>..."
|
||||||
source configuration
|
source configuration
|
1
clfs
1
clfs
|
@ -1 +0,0 @@
|
||||||
master.sh
|
|
1
clfs2
1
clfs2
|
@ -1 +0,0 @@
|
||||||
master.sh
|
|
|
@ -447,7 +447,7 @@ get_book() { #
|
||||||
#----------------------------#
|
#----------------------------#
|
||||||
cd $JHALFSDIR
|
cd $JHALFSDIR
|
||||||
|
|
||||||
if [ -z $WC ] ; then
|
if [ -z $WORKING_COPY ] ; then
|
||||||
# Check for Subversion instead of just letting the script hit 'svn' and fail.
|
# Check for Subversion instead of just letting the script hit 'svn' and fail.
|
||||||
test `type -p svn` || eval "echo \"This feature requires Subversion.\"
|
test `type -p svn` || eval "echo \"This feature requires Subversion.\"
|
||||||
exit 1"
|
exit 1"
|
||||||
|
|
1
hlfs
1
hlfs
|
@ -1 +0,0 @@
|
||||||
master.sh
|
|
|
@ -74,18 +74,16 @@ ${BOLD} \"jhalfs-X\"${OFF} builder tool (experimental) \$Rev$
|
||||||
${BOLD}Gnu General Public License, Version 2.${OFF}
|
${BOLD}Gnu General Public License, Version 2.${OFF}
|
||||||
"
|
"
|
||||||
|
|
||||||
if [ ! -L $0 ] ; then
|
case $1 in
|
||||||
echo "$version"
|
-v ) echo "$version" && exit 1 ;;
|
||||||
echo "${nl_}${tab_}${BOLD}${RED}This script cannot be called directly: EXITING ${OFF}${nl_}"
|
run ) : ;;
|
||||||
exit 1
|
* )
|
||||||
fi
|
echo "${nl_}${tab_}${BOLD}${RED}This script cannot be called directly: EXITING ${OFF}${nl_}"
|
||||||
|
exit 1
|
||||||
PROGNAME=$(basename $0)
|
;;
|
||||||
COMMON_DIR="common"
|
esac
|
||||||
PACKAGE_DIR=$(echo $PROGNAME | tr [a-z] [A-Z])
|
|
||||||
MODULE=$PACKAGE_DIR/master.sh
|
|
||||||
VERBOSITY=1
|
|
||||||
|
|
||||||
|
VERBOSITY=1
|
||||||
|
|
||||||
[[ $VERBOSITY > 0 ]] && echo -n "Loading config params from <configuration>..."
|
[[ $VERBOSITY > 0 ]] && echo -n "Loading config params from <configuration>..."
|
||||||
source configuration
|
source configuration
|
||||||
|
@ -128,6 +126,7 @@ if [[ ! -z ${BRANCH_ID} ]]; then
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# These are boolean vars generated from Config.in.
|
# These are boolean vars generated from Config.in.
|
||||||
# ISSUE: If a boolean parameter is not set <true> that
|
# ISSUE: If a boolean parameter is not set <true> that
|
||||||
# variable is not defined by the menu app. This can
|
# variable is not defined by the menu app. This can
|
||||||
|
@ -147,6 +146,14 @@ VIMLANG=${VIMLANG:-n}
|
||||||
KEYMAP=${KEYMAP:=none}
|
KEYMAP=${KEYMAP:=none}
|
||||||
GRSECURITY_HOST=${GRSECURITY_HOST:-n}
|
GRSECURITY_HOST=${GRSECURITY_HOST:-n}
|
||||||
|
|
||||||
|
# Set the document location...
|
||||||
|
BOOK=${BOOK:=$PROGNAME-$LFSVRS}
|
||||||
|
|
||||||
|
# Set true internal variables
|
||||||
|
COMMON_DIR="common"
|
||||||
|
PACKAGE_DIR=$(echo $PROGNAME | tr [a-z] [A-Z])
|
||||||
|
MODULE=$PACKAGE_DIR/master.sh
|
||||||
|
|
||||||
|
|
||||||
[[ $VERBOSITY > 0 ]] && echo -n "Loading common-functions module..."
|
[[ $VERBOSITY > 0 ]] && echo -n "Loading common-functions module..."
|
||||||
source $COMMON_DIR/common-functions
|
source $COMMON_DIR/common-functions
|
||||||
|
@ -160,20 +167,6 @@ source $MODULE
|
||||||
[[ $VERBOSITY > 0 ]] && echo "${SD_BORDER}${nl_}"
|
[[ $VERBOSITY > 0 ]] && echo "${SD_BORDER}${nl_}"
|
||||||
|
|
||||||
|
|
||||||
#===========================================================
|
|
||||||
# If the var BOOK contains something then, maybe, it points
|
|
||||||
# to a working doc.. set WC=1, else 'null'
|
|
||||||
#===========================================================
|
|
||||||
WC=${BOOK:+y}
|
|
||||||
#===========================================================
|
|
||||||
|
|
||||||
#===================================================
|
|
||||||
# Set the document location...
|
|
||||||
#===================================================
|
|
||||||
BOOK=${BOOK:=$PROGNAME-$LFSVRS}
|
|
||||||
#===================================================
|
|
||||||
|
|
||||||
|
|
||||||
#*******************************************************************#
|
#*******************************************************************#
|
||||||
[[ $VERBOSITY > 0 ]] && echo -n "Loading function <func_check_version.sh>..."
|
[[ $VERBOSITY > 0 ]] && echo -n "Loading function <func_check_version.sh>..."
|
||||||
source $COMMON_DIR/func_check_version.sh
|
source $COMMON_DIR/func_check_version.sh
|
1
lfs
1
lfs
|
@ -1 +0,0 @@
|
||||||
master.sh
|
|
Reference in a new issue