diff --git a/BLFS/blfs-parser.sh b/BLFS/blfs-parser.sh index 60cfe20..506c2e3 100755 --- a/BLFS/blfs-parser.sh +++ b/BLFS/blfs-parser.sh @@ -10,8 +10,11 @@ declare BLFS_XML declare VERBOSITY=1 # Grab and name the command line options - optTARGET=$1 -optDEPENDENCY=$2 + optTARGET=$1 # Package target +optDEPENDENCY=$2 # Dependencies level, 1/2/3 + SUDO=$3 # Build as user (y) or as root (n) + +[[ -z $SUDO ]] && SUDO=y #--------------------- @@ -113,4 +116,4 @@ validate_dependency "${optDEPENDENCY}" generate_dependency_tree generate_TARGET_xml generate_target_book -create_build_scripts +create_build_scripts "${SUDO}" diff --git a/BLFS/libs/func_parser b/BLFS/libs/func_parser index 2f97be8..9963f0d 100644 --- a/BLFS/libs/func_parser +++ b/BLFS/libs/func_parser @@ -126,7 +126,7 @@ create_build_scripts() { # #-------------------------# : <> xsltproc.log 2>&1 echo -e "done\n" diff --git a/BLFS/libs/scripts.xsl b/BLFS/libs/scripts.xsl index 9daacba..6f37254 100644 --- a/BLFS/libs/scripts.xsl +++ b/BLFS/libs/scripts.xsl @@ -9,6 +9,9 @@ + + + @@ -344,11 +347,11 @@ cd $UNPACKDIR - + sudo sh -c " - + "