[0170229] | 1 | #!/bin/bash
|
---|
[12a5707] | 2 | # $Id$
|
---|
[0170229] | 3 | set -e
|
---|
| 4 |
|
---|
| 5 |
|
---|
| 6 | #>>>>>>>>>>>>>>>ERROR TRAPPING >>>>>>>>>>>>>>>>>>>>
|
---|
| 7 | #-----------------------#
|
---|
| 8 | simple_error() { # Basic error trap.... JUST DIE
|
---|
| 9 | #-----------------------#
|
---|
| 10 | # If +e then disable text output
|
---|
| 11 | if [[ "$-" =~ "e" ]]; then
|
---|
| 12 | echo -e "\n${RED}ERROR:${GREEN} basic error trapped!${OFF}\n" >&2
|
---|
| 13 | fi
|
---|
| 14 | }
|
---|
| 15 |
|
---|
| 16 | see_ya() {
|
---|
[d95b8f2] | 17 | echo -e "\n\t${BOLD}Goodbye and thank you for choosing ${L_arrow}JHALFS-X${R_arrow}\n"
|
---|
[0170229] | 18 | }
|
---|
| 19 | ##### Simple error TRAPS
|
---|
| 20 | # ctrl-c SIGINT
|
---|
| 21 | # ctrl-y
|
---|
| 22 | # ctrl-z SIGTSTP
|
---|
| 23 | # SIGHUP 1 HANGUP
|
---|
| 24 | # SIGINT 2 INTRERRUPT FROM KEYBOARD Ctrl-C
|
---|
| 25 | # SIGQUIT 3
|
---|
| 26 | # SIGKILL 9 KILL
|
---|
| 27 | # SIGTERM 15 TERMINATION
|
---|
| 28 | # SIGSTOP 17,18,23 STOP THE PROCESS
|
---|
| 29 | #####
|
---|
| 30 | set -e
|
---|
| 31 | trap see_ya 0
|
---|
| 32 | trap simple_error ERR
|
---|
| 33 | trap 'echo -e "\n\n${RED}INTERRUPT${OFF} trapped\n" && exit 2' 1 2 3 15 17 18 23
|
---|
| 34 | #>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
---|
| 35 |
|
---|
| 36 |
|
---|
| 37 | if [ ! -L $0 ] ; then
|
---|
| 38 | echo "${nl_}${tab_}${BOLD}${RED}This script cannot be called directly: EXITING ${OFF}${nl_}"
|
---|
| 39 | exit 1
|
---|
| 40 | fi
|
---|
| 41 |
|
---|
[12a5707] | 42 | PROGNAME=$(basename $0)
|
---|
| 43 | COMMON_DIR="common"
|
---|
| 44 | PACKAGE_DIR=$(echo $PROGNAME | tr [a-z] [A-Z])
|
---|
| 45 | MODULE=$PACKAGE_DIR/master.sh
|
---|
| 46 | MODULE_CONFIG=$PACKAGE_DIR/config
|
---|
| 47 |
|
---|
| 48 | echo -n "Loading common-functions module..."
|
---|
| 49 | source $COMMON_DIR/common-functions
|
---|
| 50 | [[ $? > 0 ]] && echo " $COMMON_DIR/common-functions did not load.." && exit
|
---|
| 51 | echo "OK"
|
---|
| 52 | #
|
---|
| 53 |
|
---|
| 54 | echo -n "Loading masterscript conf..."
|
---|
| 55 | source $COMMON_DIR/config
|
---|
[13e816f] | 56 | [[ $? > 0 ]] && echo "$COMMON_DIR/conf did not load.." && exit
|
---|
[0170229] | 57 | echo "OK"
|
---|
| 58 | #
|
---|
| 59 | echo -n "Loading config module <$MODULE_CONFIG>..."
|
---|
| 60 | source $MODULE_CONFIG
|
---|
| 61 | [[ $? > 0 ]] && echo "$MODULE_CONFIG did not load.." && exit 1
|
---|
| 62 | echo "OK"
|
---|
| 63 | #
|
---|
| 64 | echo -n "Loading code module <$MODULE>..."
|
---|
| 65 | source $MODULE
|
---|
[12a5707] | 66 | [[ $? > 0 ]] && echo "$MODULE did not load.." && exit 2
|
---|
[0170229] | 67 | echo "OK"
|
---|
| 68 | #
|
---|
| 69 | echo "---------------${nl_}"
|
---|
| 70 |
|
---|
| 71 |
|
---|
| 72 | #===========================================================
|
---|
| 73 | # If the var BOOK contains something then, maybe, it points
|
---|
| 74 | # to a working doc.. set WC=1, else 'null'
|
---|
| 75 | #===========================================================
|
---|
| 76 | WC=${BOOK:+1}
|
---|
| 77 | #===========================================================
|
---|
| 78 |
|
---|
| 79 |
|
---|
| 80 | #*******************************************************************#
|
---|
[12a5707] | 81 | echo -n "Loading function <func_check_version.sh>..."
|
---|
| 82 | source $COMMON_DIR/func_check_version.sh
|
---|
| 83 | [[ $? > 0 ]] && echo " function module did not load.." && exit 2
|
---|
| 84 | echo "OK"
|
---|
[0170229] | 85 |
|
---|
[12a5707] | 86 | echo -n "Loading function <func_validate_configs.sh>..."
|
---|
| 87 | source $COMMON_DIR/func_validate_configs.sh
|
---|
| 88 | [[ $? > 0 ]] && echo " function module did not load.." && exit 2
|
---|
| 89 | echo "OK"
|
---|
| 90 | echo "---------------${nl_}"
|
---|
[0170229] | 91 |
|
---|
| 92 |
|
---|
| 93 | ###################################
|
---|
| 94 | ### MAIN ###
|
---|
| 95 | ###################################
|
---|
| 96 |
|
---|
| 97 | # Evaluate any command line switches
|
---|
| 98 |
|
---|
| 99 | while test $# -gt 0 ; do
|
---|
| 100 | case $1 in
|
---|
[40ccddf] | 101 | # Common options for all books
|
---|
[5627958] | 102 | --book | -B )
|
---|
[0170229] | 103 | test $# = 1 && eval "$exit_missing_arg"
|
---|
| 104 | shift
|
---|
| 105 | case $1 in
|
---|
| 106 | dev* | SVN | trunk )
|
---|
| 107 | LFSVRS=development
|
---|
| 108 | ;;
|
---|
[5627958] | 109 | *) if [[ "$PROGNAME" = "lfs" ]]; then
|
---|
| 110 | case $1 in
|
---|
[d95b8f2] | 111 | 6.1.1 )
|
---|
| 112 | echo "For stable 6.1.1 book, please use jhalfs-0.2."
|
---|
| 113 | exit 0
|
---|
| 114 | ;;
|
---|
| 115 | alpha*) LFSVRS=alphabetical ;;
|
---|
| 116 | udev*) LFSVRS=udev_update ;;
|
---|
| 117 | * ) echo "$1 is an unsupported version at this time." ;;
|
---|
[5627958] | 118 | esac
|
---|
| 119 | else
|
---|
| 120 | echo "The requested version, ${L_arrow} ${BOLD}$1${OFF} ${R_arrow}, is undefined in the ${BOLD}$(echo $PROGNAME | tr [a-z] [A-Z])${OFF} series."
|
---|
[d95b8f2] | 121 | exit 0
|
---|
| 122 | fi
|
---|
[0170229] | 123 | ;;
|
---|
| 124 | esac
|
---|
| 125 | ;;
|
---|
| 126 |
|
---|
[c16cedc] | 127 | --directory | -D )
|
---|
[0170229] | 128 | test $# = 1 && eval "$exit_missing_arg"
|
---|
| 129 | shift
|
---|
[e95c26c] | 130 | case $1 in
|
---|
| 131 | -* )
|
---|
| 132 | echo -e "\n$1 isn't a valid build directory\n."
|
---|
| 133 | echo -e "Directory names can't start with - .\n"
|
---|
| 134 | exit 1
|
---|
| 135 | ;;
|
---|
| 136 | * )
|
---|
| 137 | BUILDDIR=$1
|
---|
| 138 | JHALFSDIR=$BUILDDIR/jhalfs
|
---|
| 139 | LOGDIR=$JHALFSDIR/logs
|
---|
| 140 | MKFILE=$JHALFSDIR/Makefile
|
---|
| 141 | ;;
|
---|
| 142 | esac
|
---|
[0170229] | 143 | ;;
|
---|
| 144 |
|
---|
[c16cedc] | 145 | --get-packages | -G ) HPKG=1 ;;
|
---|
| 146 |
|
---|
| 147 | --help | -h )
|
---|
| 148 | if [[ "$PROGNAME" = "blfs" ]]; then
|
---|
| 149 | blfs_usage
|
---|
| 150 | else
|
---|
| 151 | usage
|
---|
| 152 | fi
|
---|
| 153 | ;;
|
---|
| 154 |
|
---|
| 155 | --testsuites | -T )
|
---|
| 156 | test $# = 1 && eval "$exit_missing_arg"
|
---|
| 157 | shift
|
---|
| 158 | case $1 in
|
---|
| 159 | 0 | 1 | 2 | 3 )
|
---|
| 160 | TEST=$1
|
---|
| 161 | ;;
|
---|
| 162 | * )
|
---|
| 163 | echo -e "\n$1 isn't a valid testsuites level value."
|
---|
| 164 | echo -e "You must to use 0, 1, 2, or 3.\n"
|
---|
| 165 | exit 1
|
---|
| 166 | ;;
|
---|
| 167 | esac
|
---|
| 168 | ;;
|
---|
| 169 |
|
---|
| 170 | --version | -V )
|
---|
| 171 | clear
|
---|
| 172 | echo "$version"
|
---|
| 173 | exit 0
|
---|
| 174 | ;;
|
---|
| 175 |
|
---|
[0170229] | 176 | --working-copy | -W )
|
---|
| 177 | test $# = 1 && eval "$exit_missing_arg"
|
---|
| 178 | shift
|
---|
[5627958] | 179 | case $PROGNAME in # Poor checks. We should find better ones.
|
---|
| 180 | lfs)
|
---|
| 181 | if [ -f $1/patches.ent ] ; then
|
---|
| 182 | WC=1
|
---|
| 183 | BOOK=$1
|
---|
| 184 | else
|
---|
| 185 | echo -e "\nLook like $1 isn't a LFS working copy."
|
---|
| 186 | exit 1
|
---|
| 187 | fi
|
---|
| 188 | ;;
|
---|
| 189 | clfs)
|
---|
| 190 | if [ -f $1/patches.ent ] && [ -f $1/packages.ent ]; then
|
---|
| 191 | WC=1
|
---|
| 192 | BOOK=$1
|
---|
| 193 | else
|
---|
| 194 | echo -e "\nLook like $1 isn't a CLFS working copy."
|
---|
| 195 | exit 1
|
---|
| 196 | fi
|
---|
| 197 | ;;
|
---|
| 198 | hlfs)
|
---|
| 199 | if [ -f $1/template.xml ] ; then
|
---|
| 200 | WC=1
|
---|
| 201 | BOOK=$1
|
---|
| 202 | else
|
---|
| 203 | echo -e "\nLook like $1 isn't a HLFS working copy."
|
---|
| 204 | exit 1
|
---|
| 205 | fi
|
---|
| 206 | ;;
|
---|
| 207 | blfs)
|
---|
| 208 | if [ -f $1/use-unzip.xml ] ; then
|
---|
| 209 | WC=1
|
---|
| 210 | BOOK=$1
|
---|
| 211 | else
|
---|
| 212 | echo -e "\nLook like $1 isn't a BLFS working copy."
|
---|
| 213 | exit 1
|
---|
| 214 | fi
|
---|
| 215 | ;;
|
---|
[4532c37] | 216 | esac
|
---|
| 217 | ;;
|
---|
[0170229] | 218 |
|
---|
[40ccddf] | 219 | # Common options for LFS, CLFS and HLFS
|
---|
| 220 | --fstab | -F )
|
---|
| 221 | test $# = 1 && eval "$exit_missing_arg"
|
---|
| 222 | shift
|
---|
| 223 | if [ -f $1 ] ; then
|
---|
| 224 | FSTAB=$1
|
---|
| 225 | else
|
---|
| 226 | echo -e "\nFile $1 not found. Verify your command line.\n"
|
---|
| 227 | exit 1
|
---|
| 228 | fi
|
---|
| 229 | ;;
|
---|
| 230 |
|
---|
| 231 | --kernel-config | -K )
|
---|
| 232 | test $# = 1 && eval "$exit_missing_arg"
|
---|
| 233 | shift
|
---|
| 234 | if [ -f $1 ] ; then
|
---|
| 235 | CONFIG=$1
|
---|
| 236 | else
|
---|
| 237 | echo -e "\nFile $1 not found. Verify your command line.\n"
|
---|
| 238 | exit 1
|
---|
| 239 | fi
|
---|
| 240 | ;;
|
---|
| 241 |
|
---|
[bd99331] | 242 | --make | -M ) RUNMAKE=1 ;;
|
---|
[40ccddf] | 243 |
|
---|
| 244 | --rebuild | -R ) CLEAN=1 ;;
|
---|
| 245 |
|
---|
[bd99331] | 246 | # CLFS options
|
---|
| 247 | --arch | -A )
|
---|
| 248 | test $# = 1 && eval "$exit_missing_arg"
|
---|
| 249 | shift
|
---|
| 250 | case $1 in
|
---|
| 251 | x86 )
|
---|
| 252 | ARCH=x86
|
---|
| 253 | TARGET="i686-pc-linux-gnu"
|
---|
| 254 | ;;
|
---|
| 255 | i486 )
|
---|
| 256 | ARCH=x86
|
---|
| 257 | TARGET="i486-pc-linux-gnu"
|
---|
| 258 | ;;
|
---|
| 259 | i586 )
|
---|
| 260 | ARCH=x86
|
---|
| 261 | TARGET="i586-pc-linux-gnu"
|
---|
| 262 | ;;
|
---|
| 263 | ppc )
|
---|
| 264 | ARCH=ppc
|
---|
| 265 | TARGET="powerpc-unknown-linux-gnu"
|
---|
| 266 | ;;
|
---|
| 267 | mips )
|
---|
| 268 | ARCH=mips
|
---|
| 269 | TARGET="mips-unknown-linux-gnu"
|
---|
| 270 | ;;
|
---|
| 271 | mipsel )
|
---|
| 272 | ARCH=mips
|
---|
| 273 | TARGET="mipsel-unknown-linux-gnu"
|
---|
| 274 | ;;
|
---|
| 275 | sparc )
|
---|
| 276 | ARCH=sparc
|
---|
| 277 | TARGET="sparcv9-unknown-linux-gnu"
|
---|
| 278 | ;;
|
---|
| 279 | sparcv8 )
|
---|
| 280 | ARCH=sparcv8
|
---|
| 281 | TARGET="sparc-unknown-linux-gnu"
|
---|
| 282 | ;;
|
---|
| 283 | x86_64-64 )
|
---|
| 284 | ARCH=x86_64-64
|
---|
| 285 | TARGET="x86_64-unknown-linux-gnu"
|
---|
| 286 | ;;
|
---|
| 287 | mips64-64 )
|
---|
| 288 | ARCH=mips64-64
|
---|
| 289 | TARGET="mips-unknown-linux-gnu"
|
---|
| 290 | ;;
|
---|
| 291 | mipsel64-64 )
|
---|
| 292 | ARCH=mips64-64
|
---|
| 293 | TARGET="mipsel-unknown-linux-gnu"
|
---|
| 294 | ;;
|
---|
| 295 | sparc64-64 )
|
---|
| 296 | ARCH=sparc64-64
|
---|
| 297 | TARGET="sparc64-unknown-linux-gnu"
|
---|
| 298 | ;;
|
---|
| 299 | alpha )
|
---|
| 300 | ARCH=alpha
|
---|
| 301 | TARGET="alpha-unknown-linux-gnu"
|
---|
| 302 | ;;
|
---|
| 303 | x86_64 )
|
---|
| 304 | ARCH=x86_64
|
---|
| 305 | TARGET="x86_64-unknown-linux-gnu"
|
---|
| 306 | TARGET32="i686-pc-linux-gnu"
|
---|
| 307 | ;;
|
---|
| 308 | mips64 )
|
---|
| 309 | ARCH=mips64
|
---|
| 310 | TARGET="mips-unknown-linux-gnu"
|
---|
| 311 | TARGET32="mips-unknown-linux-gnu"
|
---|
| 312 | ;;
|
---|
| 313 | mipsel64 )
|
---|
| 314 | ARCH=mips64
|
---|
| 315 | TARGET="mipsel-unknown-linux-gnu"
|
---|
| 316 | TARGET32="mipsel-unknown-linux-gnu"
|
---|
| 317 | ;;
|
---|
| 318 | sparc64 )
|
---|
| 319 | ARCH=sparc64
|
---|
| 320 | TARGET="sparc64-unknown-linux-gnu"
|
---|
| 321 | TARGET32="sparcv9-unknown-linux-gnu"
|
---|
| 322 | ;;
|
---|
| 323 | ppc64 )
|
---|
| 324 | ARCH=ppc64
|
---|
| 325 | TARGET="powerpc64-unknown-linux-gnu"
|
---|
| 326 | TARGET32="powerpc-unknown-linux-gnu"
|
---|
| 327 | ;;
|
---|
| 328 | * )
|
---|
| 329 | echo -e "\n$1 is an unknown or unsopported arch."
|
---|
| 330 | exit 1
|
---|
| 331 | ;;
|
---|
| 332 | esac
|
---|
| 333 | ;;
|
---|
| 334 |
|
---|
| 335 | --method )
|
---|
| 336 | test $# = 1 && eval "$exit_missing_arg"
|
---|
| 337 | shift
|
---|
| 338 | case $1 in
|
---|
| 339 | chroot | boot )
|
---|
| 340 | METHOD=$1
|
---|
| 341 | ;;
|
---|
| 342 | * )
|
---|
| 343 | echo -e "\n$1 isn't a valid build method."
|
---|
| 344 | exit 1
|
---|
| 345 | ;;
|
---|
| 346 | esac
|
---|
| 347 | ;;
|
---|
| 348 |
|
---|
| 349 | --boot-config )
|
---|
| 350 | test $# = 1 && eval "$exit_missing_arg"
|
---|
| 351 | shift
|
---|
| 352 | if [ -f $1 ] ; then
|
---|
| 353 | BOOT_CONFIG=$1
|
---|
| 354 | else
|
---|
| 355 | echo -e "\nFile $1 not found. Verify your command line.\n"
|
---|
| 356 | exit 1
|
---|
| 357 | fi
|
---|
| 358 | ;;
|
---|
| 359 |
|
---|
[890acc6] | 360 | # HLFS options
|
---|
| 361 | --model )
|
---|
| 362 | test $# = 1 && eval "$exit_missing_arg"
|
---|
| 363 | shift
|
---|
| 364 | case $1 in
|
---|
| 365 | glibc | uclibc )
|
---|
| 366 | MODEL=$1
|
---|
| 367 | ;;
|
---|
| 368 | * )
|
---|
| 369 | echo -e "\n$1 isn't a valid libc model."
|
---|
| 370 | exit 1
|
---|
| 371 | ;;
|
---|
| 372 | esac
|
---|
| 373 | ;;
|
---|
| 374 |
|
---|
| 375 | # BLFS options
|
---|
| 376 | --dependencies )
|
---|
| 377 | test $# = 1 && eval "$exit_missing_arg"
|
---|
| 378 | shift
|
---|
| 379 | case $1 in
|
---|
| 380 | 0 | 1 | 2 )
|
---|
| 381 | DEPEND=$1
|
---|
| 382 | ;;
|
---|
| 383 | * )
|
---|
| 384 | echo -e "\n$1 isn't a valid dependencies level."
|
---|
| 385 | exit 1
|
---|
| 386 | ;;
|
---|
| 387 | esac
|
---|
| 388 | ;;
|
---|
| 389 |
|
---|
[bd99331] | 390 | # Unknown options
|
---|
[0170229] | 391 | * )
|
---|
| 392 | if [[ "$PROGNAME" = "blfs" ]]; then
|
---|
| 393 | blfs_usage
|
---|
| 394 | else
|
---|
| 395 | usage
|
---|
| 396 | fi
|
---|
| 397 | ;;
|
---|
| 398 | esac
|
---|
| 399 | shift
|
---|
| 400 | done
|
---|
| 401 |
|
---|
| 402 | # Find the download client to use, if not already specified.
|
---|
| 403 |
|
---|
| 404 | if [ -z $DL ] ; then
|
---|
| 405 | if [ `type -p wget` ] ; then
|
---|
| 406 | DL=wget
|
---|
| 407 | elif [ `type -p curl` ] ; then
|
---|
| 408 | DL=curl
|
---|
| 409 | else
|
---|
| 410 | eval "$no_dl_client"
|
---|
| 411 | fi
|
---|
| 412 | fi
|
---|
| 413 |
|
---|
| 414 | #===================================================
|
---|
| 415 | # Set the document location...
|
---|
[13e816f] | 416 | # BOOK is either defined in
|
---|
[0170229] | 417 | # xxx.config
|
---|
| 418 | # comand line
|
---|
[13e816f] | 419 | # default
|
---|
[d95b8f2] | 420 | # If set by conf file or cmd line leave it
|
---|
[0170229] | 421 | # alone otherwise load the default version
|
---|
| 422 | #===================================================
|
---|
| 423 | BOOK=${BOOK:=$PROGNAME-$LFSVRS}
|
---|
| 424 | #===================================================
|
---|
| 425 |
|
---|
[13e816f] | 426 |
|
---|
| 427 | # Check for minumum gcc and kernel versions
|
---|
| 428 | #check_requirements 1 # 0/1 0-do not display values.
|
---|
| 429 | check_version "2.6.2" "`uname -r`" "KERNEL"
|
---|
| 430 | check_version "3.0" "$BASH_VERSION" "BASH"
|
---|
| 431 | check_version "3.0" "`gcc -dumpversion`" "GCC"
|
---|
[e1edff3] | 432 | tarVer=`tar --version`
|
---|
| 433 | check_version "1.15.0" "${tarVer##* }" "TAR"
|
---|
[13e816f] | 434 | echo "---------------${nl_}"
|
---|
| 435 |
|
---|
| 436 | validate_config 1 # 0/1 0-do not display values
|
---|
| 437 | echo "---------------${nl_}"
|
---|
| 438 |
|
---|
[164afa2] | 439 | echo -n "Are you happy with that settings? yes/no (no): "
|
---|
[13e816f] | 440 | read ANSWER
|
---|
| 441 | if [ x$ANSWER != "xyes" ] ; then
|
---|
| 442 | echo "${nl_}Fix the configuration options and rerun the script.${nl_}"
|
---|
| 443 | exit 1
|
---|
| 444 | fi
|
---|
| 445 |
|
---|
| 446 | # Prevents setting "-d /" by mistake.
|
---|
| 447 |
|
---|
| 448 | if [ $BUILDDIR = / ] ; then
|
---|
| 449 | echo -ne "\nThe root directory can't be used to build LFS.\n\n"
|
---|
| 450 | exit 1
|
---|
| 451 | fi
|
---|
| 452 |
|
---|
| 453 | # If $BUILDDIR has subdirectories like tools/ or bin/, stop the run
|
---|
| 454 | # and notify the user about that.
|
---|
| 455 |
|
---|
| 456 | if [ -d $BUILDDIR/tools -o -d $BUILDDIR/bin ] && [ -z $CLEAN ] ; then
|
---|
| 457 | eval "$no_empty_builddir"
|
---|
| 458 | fi
|
---|
| 459 |
|
---|
| 460 | # If requested, clean the build directory
|
---|
| 461 | clean_builddir
|
---|
| 462 |
|
---|
[0170229] | 463 | if [[ ! -d $JHALFSDIR ]]; then
|
---|
| 464 | mkdir -pv $JHALFSDIR
|
---|
| 465 | fi
|
---|
| 466 |
|
---|
[13e816f] | 467 | if [[ "$PWD" != "$JHALFSDIR" ]]; then
|
---|
[12a5707] | 468 | cp -v $COMMON_DIR/makefile-functions $JHALFSDIR/
|
---|
[0170229] | 469 | if [[ -n "$FILES" ]]; then
|
---|
[9c90294] | 470 | # pushd/popd necessary to deal with mulitiple files
|
---|
| 471 | pushd $PACKAGE_DIR
|
---|
| 472 | cp -v $FILES $JHALFSDIR/
|
---|
| 473 | popd
|
---|
[0170229] | 474 | fi
|
---|
[12a5707] | 475 | sed 's,FAKEDIR,'$BOOK',' $PACKAGE_DIR/$XSL > $JHALFSDIR/${XSL}
|
---|
[0170229] | 476 | export XSL=$JHALFSDIR/${XSL}
|
---|
| 477 | fi
|
---|
| 478 |
|
---|
| 479 | if [[ ! -d $LOGDIR ]]; then
|
---|
| 480 | mkdir -v $LOGDIR
|
---|
| 481 | fi
|
---|
| 482 | >$LOGDIR/$LOG
|
---|
| 483 | echo "---------------${nl_}"
|
---|
| 484 |
|
---|
| 485 | get_book
|
---|
| 486 | echo "---------------${nl_}"
|
---|
[12a5707] | 487 |
|
---|
[0170229] | 488 | build_Makefile
|
---|
| 489 | echo "---------------${nl_}"
|
---|
[12a5707] | 490 |
|
---|
[386bc75] | 491 | run_make
|
---|
[0170229] | 492 |
|
---|