Commit 87b38114 authored by Ophélie Gagnard's avatar Ophélie Gagnard

build-scripts/configuration_informaition.sh: Automatically detect the osc...

build-scripts/configuration_informaition.sh: Automatically detect the osc user. Deduce the osc project.
parent a5a8b911
...@@ -9,7 +9,7 @@ INITIAL_DIR="$(pwd)"/ ...@@ -9,7 +9,7 @@ INITIAL_DIR="$(pwd)"/
SOFTWARE_VERSION=1 SOFTWARE_VERSION=1
#RECIPE_VERSION=1 #RECIPE_VERSION=1
DEBIAN_REVISION=1 DEBIAN_REVISION=1
SOFTWARE_NAME=example SOFTWARE_NAME=dep--mca--static
# For the version format, see: https://www.debian.org/doc/manuals/debian-faq/pkg-basics.en.html#pkgname # For the version format, see: https://www.debian.org/doc/manuals/debian-faq/pkg-basics.en.html#pkgname
# here, in <foo>_<VersionNumber>-<DebianRevisionNumber>_<DebianArchitecture>.deb # here, in <foo>_<VersionNumber>-<DebianRevisionNumber>_<DebianArchitecture>.deb
...@@ -24,7 +24,10 @@ ARCHIVE_EXT=.tar.gz ...@@ -24,7 +24,10 @@ ARCHIVE_EXT=.tar.gz
TARGET_DIR=/opt/$SOFTWARE_AND_VERSION TARGET_DIR=/opt/$SOFTWARE_AND_VERSION
# OBS AND DISTRIBUTIONS INFORMATION # OBS AND DISTRIBUTIONS INFORMATION
OBS_DIR=$INITIAL_DIR/home:oph.nxd/$SOFTWARE_NAME/ # get the user from osc configuration file
OBS_USER=$(cat ~/.config/osc/oscrc | grep user= | cut -d'=' -f2)
OBS_PROJECT=home:$OBS_USER
OBS_DIR=$INITIAL_DIR/$OBS_PROJECT/$SOFTWARE_NAME/
DIST_DIR=$INITIAL_DIR/distribution-specifics/$SOFTWARE_NAME/ DIST_DIR=$INITIAL_DIR/distribution-specifics/$SOFTWARE_NAME/
TARBALL_DIR=$INITIAL_DIR/tarballs/$SOFTWARE_AND_VERSION TARBALL_DIR=$INITIAL_DIR/tarballs/$SOFTWARE_AND_VERSION
......
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