Changeset 00f4966
- Timestamp:
- 08/13/2006 06:24:16 PM (18 years ago)
- Branches:
- experimental
- Children:
- 2fedf49
- Parents:
- d0d9e90
- Files:
-
- 2 added
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/blfs-parser.sh
rd0d9e90 r00f4966 11 11 12 12 # Grab and name the command line options 13 optTARGET=$1 14 optDEPENDENCY=$2 13 optTARGET=$1 # Package target 14 optDEPENDENCY=$2 # Dependencies level, 1/2/3 15 SUDO=$3 # Build as user (y) or as root (n) 16 17 [[ -z $SUDO ]] && SUDO=y 15 18 16 19 … … 114 117 generate_TARGET_xml 115 118 generate_target_book 116 create_build_scripts 119 create_build_scripts "${SUDO}" -
BLFS/libs/book.xsl
rd0d9e90 r00f4966 7 7 <!-- $Id$ --> 8 8 9 <!-- NOTE: the base dir (blfs-xml) must be changed to FAKEDIR on the10 final version and set it to the proper dirvia a sed in ./blfs -->9 <!-- NOTE: the base dir (blfs-xml) is set to the proper dir 10 via a sed in ./blfs --> 11 11 <xsl:import href="../blfs-xml/stylesheets/blfs-chunked.xsl"/> 12 12 -
BLFS/libs/func_parser
rd0d9e90 r00f4966 127 127 : <<inline_doc 128 128 function: Create shell scripts of the requested TARGET. 129 input vars: nothing129 input vars: $1 use sudo n/y 130 130 externals: TARGET 131 131 modifies: nothing … … 141 141 echo -en "\n\tGenerating the build scripts ..." 142 142 xsltproc --xinclude --nonet \ 143 --stringparam sudo $SUDO \ 143 144 -o ./scripts/ ../libs/scripts.xsl \ 144 145 $TARGET-index.xml >> xsltproc.log 2>&1 -
BLFS/libs/scripts.xsl
rd0d9e90 r00f4966 9 9 10 10 <!-- XSLT stylesheet to create shell scripts from "linear build" BLFS books. --> 11 12 <!-- Build as user (y) or as root (n)? --> 13 <xsl:param name="sudo" select="y"/> 11 14 12 15 <xsl:template match="/"> … … 345 348 <xsl:template match="screen"> 346 349 <xsl:if test="child::* = userinput and not(@role = 'nodump')"> 347 <xsl:if test="@role = 'root' ">350 <xsl:if test="@role = 'root' and $sudo = 'y'"> 348 351 <xsl:text>sudo sh -c "</xsl:text> 349 352 </xsl:if> 350 353 <xsl:apply-templates select="userinput"/> 351 <xsl:if test="@role = 'root' ">354 <xsl:if test="@role = 'root' and $sudo = 'y'"> 352 355 <xsl:text>"</xsl:text> 353 356 </xsl:if> -
Config.in
rd0d9e90 r00f4966 23 23 bool "Hardened Linux From Scratch" 24 24 25 #config BOOK_BLFS26 #bool "Beyond Linux From Scratch"25 config BOOK_BLFS 26 bool "Beyond Linux From Scratch" 27 27 endchoice 28 28 … … 34 34 # default "./clfs3" if BOOK_CLFS3 35 35 default "./hlfs" if BOOK_HLFS 36 #default "./blfs" if BOOK_BLFS36 default "./blfs" if BOOK_BLFS 37 37 #--- End BOOK/script 38 38 … … 48 48 config WORKING_COPY 49 49 bool "Working Copy" 50 depends on !BOOK_BLFS 50 51 help 51 52 #-- A local working copy … … 278 279 #--- End HLFS specific params 279 280 281 #--- BLFS specific params 282 config BLFS_ROOT 283 string "Directory root" 284 default "$HOME/blfs_root" 285 depends on BOOK_BLFS 286 help 287 #-- Full path to the directory where all required 288 # files and scripts will be stored. 289 290 config BLFS_XML 291 string "BLFS sources directory" 292 default "blfs-xml" 293 depends on BOOK_BLFS 294 help 295 #-- The directory name where BLFS book sources 296 # will be checkout. 297 #--- End BLFS specific params 298 280 299 #--- End BOOK Settings 281 300 endmenu 282 301 283 302 menu "--- General Settings" 303 depends on !BOOK_BLFS 284 304 285 305 #--- Set User Account … … 384 404 385 405 menu "--- Build Settings" 406 depends on !BOOK_BLFS 386 407 387 408 #--- Test Suites … … 550 571 551 572 menu "--- Advanced Features" 573 depends on !BOOK_BLFS 552 574 553 575 config REPORT -
blfs
rd0d9e90 r00f4966 1 1 #!/bin/bash 2 # $Id$ 3 2 4 set -e 3 5 4 echo -e "\n BLFS support has been dissabled for now.\n"5 6 6 exit 0 7 #>>>>>>>>>>>>>>>ERROR TRAPPING >>>>>>>>>>>>>>>>>>>> 8 #-----------------------# 9 simple_error() { # Basic error trap.... JUST DIE 10 #-----------------------# 11 # If +e then disable text output 12 if [[ "$-" =~ "e" ]]; then 13 echo -e "\n${RED}ERROR:${GREEN} basic error trapped!${OFF}\n" >&2 14 fi 15 } 16 17 see_ya() { 18 echo -e "\n\t${BOLD}Goodbye and thank you for choosing ${L_arrow}jhalfs${R_arrow}\n" 19 } 20 ##### Simple error TRAPS 21 # ctrl-c SIGINT 22 # ctrl-y 23 # ctrl-z SIGTSTP 24 # SIGHUP 1 HANGUP 25 # SIGINT 2 INTRERRUPT FROM KEYBOARD Ctrl-C 26 # SIGQUIT 3 27 # SIGKILL 9 KILL 28 # SIGTERM 15 TERMINATION 29 # SIGSTOP 17,18,23 STOP THE PROCESS 30 ##### 31 set -e 32 trap see_ya 0 33 trap simple_error ERR 34 trap 'echo -e "\n\n${RED}INTERRUPT${OFF} trapped\n" && exit 2' 1 2 3 15 17 18 23 35 #>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 36 37 VERBOSITY=1 38 39 [[ $VERBOSITY > 0 ]] && echo -n "Loading config params from <configuration>..." 40 source configuration 41 [[ $? > 0 ]] && echo "file:configuration did not load.." && exit 1 42 [[ $VERBOSITY > 0 ]] && echo "OK" 43 44 [[ -z $BOOK_BLFS ]] && echo -e "\nNo BLFS configuration found. Please configure it." && exit 1 45 46 TREE=trunk/BOOK 47 48 if [[ ! -z ${BRANCH_ID} ]]; then 49 case $BRANCH_ID in 50 dev* | SVN | trunk ) TREE=trunk/BOOK ;; 51 branch-* ) TREE=branches/${BRANCH_ID#branch-}/BOOK ;; 52 * ) TREE=tags/${BRANCH_ID}/BOOK ;; 53 esac 54 fi 55 56 [[ ! -d $BLFS_ROOT ]] && mkdir -p $BLFS_ROOT 57 58 cp -r BLFS/* $BLFS_ROOT 59 cp common/progress_bar.sh $BLFS_ROOT 60 # cp -r menu $BLFS_ROOT 61 62 cd $BLFS_ROOT 63 64 sed -i 's,blfs-xml,'$BLFS_XML',' update_book.sh 65 sed -i 's,blfs-xml,'$BLFS_XML',' libs/book.xsl 66 67 ./update_book.sh $BLFS_XML get $TREE 68 # make 69
Note:
See TracChangeset
for help on using the changeset viewer.