diff options
author | Jonathan Bauer | 2013-06-20 00:17:23 +0200 |
---|---|---|
committer | Jonathan Bauer | 2013-06-20 00:17:23 +0200 |
commit | e2e77e7cb056f353a6189a53df6e10952d2036d4 (patch) | |
tree | fabb8fac0e233edbe2cb1afa7feccade99099230 /remote/setup_target | |
parent | [pam] TODO suse krb5 mounts (diff) | |
download | tm-scripts-e2e77e7cb056f353a6189a53df6e10952d2036d4.tar.gz tm-scripts-e2e77e7cb056f353a6189a53df6e10952d2036d4.tar.xz tm-scripts-e2e77e7cb056f353a6189a53df6e10952d2036d4.zip |
new option for remote mode '-n' to mount local builds (remote/builds/) to /export/builds
Diffstat (limited to 'remote/setup_target')
-rwxr-xr-x | remote/setup_target | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/remote/setup_target b/remote/setup_target index 54ed0cb0..d193638a 100755 --- a/remote/setup_target +++ b/remote/setup_target @@ -53,7 +53,7 @@ # MODE_DIR="${ROOT_DIR}/remote" MODULES_DIR="${MODE_DIR}/modules" - +EXPORT_DIR="/export/build" # Keep track of processed modules PROCESSED_MODULES="" @@ -93,6 +93,13 @@ read_build () { . "${BUILD_SCRIPT}" || perror "Sourcing '${BUILD_SCRIPT}' failed." } +export_builds() { + [ ! -d "${MODE_DIR}/builds" ] && perror "No ${MODE_DIR}/builds, nothing to export." + pinfo "Mounting ${MODE_DIR}/builds to ${EXPORT_DIR}. This will make the local builds syncable from another machine." + [ ! -d "${EXPORT_DIR}" ] && mkdir -p "${EXPORT_DIR}" + mount --bind ${MODE_DIR}/builds ${EXPORT_DIR} || perror "Failed to bind mount ${MODE_DIR}/builds to ${EXPORT_DIR}" +} + # # main function which copies all files, directories, binaries and external libraries to TARGET_BUILD_DIR # |