- Timestamp:
- 08/14/2006 08:19:15 PM (18 years ago)
- Branches:
- 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- 356f5bb
- Parents:
- 8b57785
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
blfs
r8b57785 rc59f9a0 3 3 4 4 set -e 5 6 # From common/common-functions 7 # VT100 colors 8 declare -r BLACK=$'\e[1;30m' 9 declare -r DK_GRAY=$'\e[0;30m' 10 11 declare -r RED=$'\e[31m' 12 declare -r GREEN=$'\e[32m' 13 declare -r YELLOW=$'\e[33m' 14 declare -r BLUE=$'\e[34m' 15 declare -r MAGENTA=$'\e[35m' 16 declare -r CYAN=$'\e[36m' 17 declare -r WHITE=$'\e[37m' 18 19 declare -r OFF=$'\e[0m' 20 declare -r BOLD=$'\e[1m' 21 declare -r REVERSE=$'\e[7m' 22 declare -r HIDDEN=$'\e[8m' 23 24 declare -r tab_=$'\t' 25 declare -r nl_=$'\n' 26 27 declare -r DD_BORDER="${BOLD}==============================================================================${OFF}" 28 declare -r SD_BORDER="${BOLD}------------------------------------------------------------------------------${OFF}" 29 declare -r STAR_BORDER="${BOLD}******************************************************************************${OFF}" 30 31 # bold yellow > < pair 32 declare -r R_arrow=$'\e[1;33m>\e[0m' 33 declare -r L_arrow=$'\e[1;33m<\e[0m' 5 34 6 35 … … 35 64 #>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 36 65 37 VERBOSITY=1 66 # envars not sourced from configuration file 67 PROGNAME=$(basename $0) 68 COMMON_DIR="common" 69 VERBOSITY=1 38 70 39 71 [[ $VERBOSITY > 0 ]] && echo -n "Loading config params from <configuration>..." … … 42 74 [[ $VERBOSITY > 0 ]] && echo "OK" 43 75 76 [[ $VERBOSITY > 0 ]] && echo -n "Loading function <func_validate_configs.sh>..." 77 source $COMMON_DIR/func_validate_configs.sh 78 [[ $? > 0 ]] && echo " function module did not load.." && exit 2 79 [[ $VERBOSITY > 0 ]] && echo "OK" 80 [[ $VERBOSITY > 0 ]] && echo "${SD_BORDER}${nl_}" 81 82 # Be sure that we have a configuration file 44 83 [[ -z $BOOK_BLFS ]] && echo -e "\nNo BLFS configuration found. Please configure it." && exit 1 45 84 46 TREE=trunk/BOOK 85 # Set default book version 86 BRANCH_ID=${BRANCH_ID:=development} 47 87 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 88 # Set the SVN tree 89 case $BRANCH_ID in 90 dev* | SVN | trunk ) TREE=trunk/BOOK ;; 91 *EDIT* ) echo " You forgot to set the branch or stable book version." 92 echo " Please rerun make and fix the configuration." 93 exit 2 94 ;; 95 branch-* ) TREE=branches/${BRANCH_ID#branch-}/BOOK ;; 96 * ) TREE=tags/${BRANCH_ID}/BOOK ;; 97 esac 98 99 # For consistency with other books 100 validate_config 101 echo "${SD_BORDER}${nl_}" 102 echo -n "Are you happy with these settings? yes/no (no): " 103 read ANSWER 104 if [ x$ANSWER != "xyes" ] ; then 105 echo "${nl_}Fix the configuration options and rerun the script.${nl_}" 106 exit 1 54 107 fi 108 echo "${nl_}${SD_BORDER}${nl_}" 55 109 110 # Install the files 56 111 [[ ! -d $BLFS_ROOT ]] && mkdir -p $BLFS_ROOT 57 112 58 113 cp -r BLFS/* $BLFS_ROOT 59 cp common/progress_bar.sh $BLFS_ROOT114 cp $COMMON_DIR/progress_bar.sh $BLFS_ROOT 60 115 # cp -r menu $BLFS_ROOT 61 116 117 # Start the work 62 118 cd $BLFS_ROOT 63 119 120 # Clean-up 121 rm -rf libs/.svn 122 123 # Fix BLFS_XML harcoded values 64 124 sed -i 's,blfs-xml,'$BLFS_XML',' update_book.sh 65 125 sed -i 's,blfs-xml,'$BLFS_XML',' libs/book.xsl 66 126 67 ./update_book.sh $BLFS_XML get $TREE 127 # Fetch book sources and create packages and GNOME/KDE dependencies files 128 if [[ -d $BLFS_XML ]] ; then 129 ./update_book.sh 130 else 131 ./update_book.sh $BLFS_XML get $TREE 132 fi 133 134 # Generate Config.in and run the menuconfig interfaz 135 # ./gen_config.sh 68 136 # make 69 137
Note:
See TracChangeset
for help on using the changeset viewer.