Skip to content
Permalink
Browse files

Fix install dir with correct prefix #205

  • Loading branch information...
DamirPorobic committed Sep 8, 2019
1 parent 4d42cad commit a0832dd904c78447a5c7116e5393120023e409d8
Showing with 2 additions and 3 deletions.
  1. +1 −1 ci/scripts/rpm/setup_spec_file.sh
  2. +1 −2 ci/scripts/setup.sh
@@ -13,4 +13,4 @@ cat changelog >> ksnip.spec

echo "--> Update version"
sed -i "s/Version: X.X.X/Version: ${VERSION_NUMBER}/" ksnip.spec
sed -i "s;cmake .;cmake . -DVERSION_SUFIX=${VERSION_SUFFIX} -DBUILD_NUMBER=${BUILD_NUMBER} -DCMAKE_INSTALL_PREFIX=${RPM_INSTALL_PREFIX} -DCMAKE_BUILD_TYPE=${BUILD_TYPE};" ksnip.spec # ; is the delimiter
sed -i "s;cmake .;cmake . -DVERSION_SUFIX=${VERSION_SUFFIX} -DBUILD_NUMBER=${BUILD_NUMBER} -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DCMAKE_BUILD_TYPE=${BUILD_TYPE};" ksnip.spec # ; is the delimiter
@@ -4,8 +4,7 @@ export BUILD_TIME=$(date +"%a, %d %b %Y %T %z")
export BUILD_DATE=$(date +"%a %b %d %Y")
export BUILD_NUMBER=$(git rev-list --count HEAD)-$(git rev-parse --short HEAD)
export VERSION_NUMBER=$(grep "project.*" CMakeLists.txt | egrep -o "([0-9]{1,}\.)+[0-9]{1,}")
export INSTALL_PREFIX="/usr/share"
export RPM_INSTALL_PREFIX="/usr"
export INSTALL_PREFIX="/usr"
export BUILD_TYPE="Release"

if [[ -z "${TRAVIS_TAG}" ]]; then

0 comments on commit a0832dd

Please sign in to comment.
You can’t perform that action at this time.