Commit 6ca56102 authored by Ophélie Gagnard's avatar Ophélie Gagnard

build-scripts/obs.sh: Fix a bug. Save the path of the local BUILD_DIRECTORY so...

build-scripts/obs.sh: Fix a bug. Save the path of the local BUILD_DIRECTORY so that it can be replaced in the relevant files by the right path in OBS' VM.
dependencies.txt: Add a dependency.
parent b88d8c7a
......@@ -3,14 +3,21 @@ set -e
source build-scripts/configuration_information.sh
# temporary directory for the files needed by OBS
TMP_DIR=$INITIAL_DIR/tmp/
TMP_DIR=`realpath -m $TMP_DIR`
echo TMP_DIR = $TMP_DIR
mkdir -p $TMP_DIR
# clean the build directory for OBS
# copy the Makefile at the root of the tarball
cp $TEMPLATE_DIR/Makefile tarballs/$SOFTWARE/Makefile
# save the local BUILD_DIR to replace it with the BUILD_DIR of OBS' VM
echo $BUILDIR > tarball/$SOFTWARE/cache_creation_build_directory
# clean the parts directory
rm -rf $RUN_BUILDOUT_DIR/parts/
# prepare the files for OBS
## prepare the files for OBS
mkdir -p $TMP_DIR
# -C option allows to give tar an absolute path without archiving the directory from / (i.e. home/user/[...])
tar czf $TMP_DIR/$SOFTWARE.tar.gz -C tarballs/ $SOFTWARE/
tar czf $TMP_DIR/debian.tar.gz -C $DIST_DIR/ debian/
......
bash
python2.7
wget
# required to checkout with osc (command-line for OBS)
python3-m2crypto
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment