#!/bin/bash
-set -o errexit
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
+source ../functions/main
# Some programs hard-wire paths to programs which don't exist yet. In order to
# satisfy these programs, we create a number of symbolic links which will be
# replaced by real files when we're installing all the software.
-# We must not use "-sf" to force the creation of a symlink, because we don't want
-# to write over a valid program if the install script needs to be re-started.
+# We must not use "-sf" to force the creation of a symlink, because we don't
+# want to write over a valid program if the install script needs to be
+# re-started.
source=/tools/bin
target=${LFS}/bin
fi
done
+# 'env' symlink is for glib
source=/tools/bin
target=${LFS}/usr/bin
-link=${source}/file
-if [ ! -L ${target}/$(basename ${link}) ]; then
- ln -sv ${link} ${target}
-fi
+for link in ${source}/{env,file}; do
+ if [ ! -L ${target}/$(basename ${link}) ]; then
+ ln -sv ${link} ${target}
+ fi
+done
source=/tools/lib
target=${LFS}/usr/lib