d2b4328792fd3f53129c80dc6093f164e6cb796f
3 x
="$(readlink -f "$BASH_SOURCE")"; source "${x%/*}/bash-trace"
8 Usage: ${0##*/} [-h|--help] [mk-basefile_args]
9 Wrap fai's mk-basefile so output dir is $BASEFILE_DIR if it exists.
11 And fix things for trisquel. mk-basefile has a trisquel mirror added.
13 fai-project maintains ubuntu and debian basefiles, but it doesn't update
14 them often. Better to build our all our own.
17 Args I've used before:
26 -h|--help Print help and exit.
28 Note: Uses GNU getopt options parsing style.
33 $script_dir/fai
/config
/basefiles
/mk-basefile
-h
43 if [[ $EUID != 0 ]]; then
47 cd /usr
/share
/debootstrap
/scripts
48 for d
in belenos flidas
; do
49 if [[ ! -L $d && ! -e $d ]]; then
54 if [[ ! -L $d && ! -e $d ]]; then
55 $s ln -sf trisquel etiona
;
58 if [[ $BASEFILE_DIR ]]; then
62 $s $script_dir/fai
/config
/basefiles
/mk-basefile
"$@"