Changeset af63ee2 for install-blfs-tools.sh
- Timestamp:
- 01/01/2014 09:49:25 AM (11 years ago)
- Branches:
- ablfs
- Parents:
- f5337a9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
install-blfs-tools.sh
rf5337a9 raf63ee2 2 2 # $Id$ 3 3 set -e 4 5 : << inline_doc 6 Installs a set-up to build BLFS packages. 7 You can set these variables: 8 TRACKING_DIR : where the installed package file is kept. 9 (default /var/lib/jhalfs/BLFS) 10 BLFS_ROOT : where the installed tools will be installed, relative to $HOME. 11 Must start with a '/' (default /blfs_root) 12 BLFS_BRANCH_ID: development, branch-xxx, xxx (where xxx is a valid tag) 13 (default development) 14 Examples: 15 1 - If you plan to use the tools to build BLFS on top of LFS, but you did not 16 use jhalfs, or forgot to include the jhalfs-blfs tools: 17 (as root) mkdir -p /var/lib/jhalfs/BLFS && chown -R user /var/lib/jhalfs 18 (as user) ./install-blfs-tools 19 2 - To install with only user privileges: 20 TRACKING_DIR=/home/user/blfs_root/trackdir ./install-blfs-tools 21 inline_doc 22 4 23 5 24 # VT100 colors … … 36 55 BLFS_TOOL='y' 37 56 BUILDDIR=$(cd ~;pwd) 38 BLFS_ROOT=" /blfs_root"39 TRACKING_DIR=" /var/lib/jhalfs/BLFS"57 BLFS_ROOT="${BLFS_ROOT:=/blfs_root}" 58 TRACKING_DIR="${TRACKING_DIR:=/var/lib/jhalfs/BLFS}" 40 59 41 60 [[ $VERBOSITY > 0 ]] && echo "${SD_BORDER}${nl_}" … … 59 78 # Check for build prerequisites. 60 79 echo 61 check_prerequisites 80 check_alfs_tools 81 check_blfs_tools 62 82 echo "${SD_BORDER}${nl_}" 63 83 … … 82 102 sed -i s@tracking-dir@$TRACKING_DIR@ \ 83 103 ${BUILDDIR}${BLFS_ROOT}/{Makefile,gen-makefile.sh} 104 105 # Ensures the tracking directory exists. 106 # Throws an error if it does not exist and the user does not 107 # have write permission to create it. 108 # If it exists, does nothing. 109 mkdir -p $TRACKING_DIR 84 110 [[ $VERBOSITY > 0 ]] && echo "... OK" 85 111
Note:
See TracChangeset
for help on using the changeset viewer.