Commit cc125513 authored by Ophélie Gagnard's avatar Ophélie Gagnard

Separate the software files in obs temporary directory. Rename some variables and directories.

parent 4a4b8549
...@@ -3,6 +3,6 @@ set -e ...@@ -3,6 +3,6 @@ set -e
source build-scripts/configuration_information.sh source build-scripts/configuration_information.sh
TMP_DIR=$INITIAL_DIR/tmp/ TMP_TARGET=$INITIAL_DIR/obs-tmp/$SOFTWARE_NAME
TMP_DIR=`realpath -m $TMP_DIR` TMP_TARGET=`realpath -m $TMP_TARGET`
rm -rf $TMP_DIR rm -rf $TMP_TARGET
...@@ -38,7 +38,7 @@ COMPILATION_TEMPLATES_DIR=$INITIAL_DIR/templates/compilation-templates/ ...@@ -38,7 +38,7 @@ COMPILATION_TEMPLATES_DIR=$INITIAL_DIR/templates/compilation-templates/
BUILD_DIR=$TARBALL_DIR/build/ BUILD_DIR=$TARBALL_DIR/build/
# RUN_BUILDOUT_DIR is where the parts/ directory will be ; formerly BUILD_DIRECTORY # RUN_BUILDOUT_DIR is where the parts/ directory will be ; formerly BUILD_DIRECTORY
RUN_BUILDOUT_DIR=$BUILD_DIR/$TARGET_DIR RUN_BUILDOUT_DIR=$BUILD_DIR/$TARGET_DIR
DISTRIB_TEMPLATES_DIR=$INITIAL_DIR/templates/default-distribution-templates DISTRIB_TEMPLATES_DIR=$INITIAL_DIR/templates/distribution-templates
DISTRIB_FILES_DIR=$INITIAL_DIR/distribution-specifics/$SOFTWARE_NAME DISTRIB_FILES_DIR=$INITIAL_DIR/distribution-specifics/$SOFTWARE_NAME
......
...@@ -4,11 +4,11 @@ set -e ...@@ -4,11 +4,11 @@ set -e
source build-scripts/configuration_information.sh source build-scripts/configuration_information.sh
# temporary directory for the files needed by OBS # temporary directory for the files needed by OBS
TMP_DIR=$INITIAL_DIR/tmp/ TMP_TARGET=$INITIAL_DIR/obs-tmp/$SOFTWARE_NAME
TMP_DIR=`realpath -m $TMP_DIR` TMP_TARGET=`realpath -m $TMP_TARGET`
echo TMP_DIR = $TMP_DIR echo TMP_TARGET = $TMP_TARGET
# copy the Makefile at the root of the tarball # copy the generated Makefile at the root of the tarball
cp $COMPILATION_TEMPLATES_DIR/tmp/$SOFTWARE_NAME/Makefile $TARBALL_DIR/Makefile cp $COMPILATION_TEMPLATES_DIR/tmp/$SOFTWARE_NAME/Makefile $TARBALL_DIR/Makefile
# save the local TARBALL_DIR to replace it with the TARBALL_DIR of OBS' VM # save the local TARBALL_DIR to replace it with the TARBALL_DIR of OBS' VM
echo $TARBALL_DIR > $TARBALL_DIR/local_build_directory echo $TARBALL_DIR > $TARBALL_DIR/local_build_directory
...@@ -20,15 +20,15 @@ mv $RUN_BUILDOUT_DIR/bin/backup.buildout $RUN_BUILDOUT_DIR/bin/buildout ...@@ -20,15 +20,15 @@ mv $RUN_BUILDOUT_DIR/bin/backup.buildout $RUN_BUILDOUT_DIR/bin/buildout
rm -rf $RUN_BUILDOUT_DIR/{.installed.cfg,parts/} rm -rf $RUN_BUILDOUT_DIR/{.installed.cfg,parts/}
## prepare the files for OBS ## prepare the files for OBS
mkdir -p $TMP_DIR mkdir -p $TMP_TARGET
# -C option allows to give tar an absolute path without archiving the directory from / (i.e. home/user/[...]) # -C option allows to give tar an absolute path without archiving the directory from / (i.e. home/user/[...])
tar czf $TMP_DIR/${SOFTWARE_AND_VERSION}${ARCHIVE_EXT} -C $INITIAL_DIR/tarballs/ $SOFTWARE_AND_VERSION/ tar czf $TMP_TARGET/${SOFTWARE_AND_VERSION}${ARCHIVE_EXT} -C $INITIAL_DIR/tarballs/ $SOFTWARE_AND_VERSION/
tar czf $TMP_DIR/debian.tar.gz -C $DIST_DIR/ debian/ tar czf $TMP_TARGET/debian.tar.gz -C $DIST_DIR/ debian/
cp $DIST_DIR/*.dsc $TMP_DIR/ cp $DIST_DIR/*.dsc $TMP_TARGET/
# move the files for OBS # move the files for OBS
cp $TMP_DIR/${SOFTWARE_AND_VERSION}${ARCHIVE_EXT} $OBS_DIR cp $TMP_TARGET/${SOFTWARE_AND_VERSION}${ARCHIVE_EXT} $OBS_DIR
cp $TMP_DIR/debian.tar.gz $OBS_DIR cp $TMP_TARGET/debian.tar.gz $OBS_DIR
cp $TMP_DIR/*.dsc $OBS_DIR cp $TMP_TARGET/*.dsc $OBS_DIR
cd $OBS_DIR cd $OBS_DIR
osc commit osc commit
...@@ -6,7 +6,7 @@ Build-Depends: debhelper, ...@@ -6,7 +6,7 @@ Build-Depends: debhelper,
chrpath, chrpath,
python python
Package: mca Package: %SOFTWARE_NAME%
Architecture: any Architecture: any
Depends: ${misc:Depends}, Depends: ${misc:Depends},
${shlibs:Depends}, ${shlibs:Depends},
......
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