Skip to content
Snippets Groups Projects
Commit 106a7800 authored by Thomas Owen James's avatar Thomas Owen James
Browse files

rpm picks up tag name

parent c39e84a3
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,7 @@ BASEDIR=$PWD
PARAMCACHE="paramcache"
NLINES=1
ASK="1"
TAG=$(git describe --tags)
if [ -n "$1" ]; then
if [ "$1" = "--batch" ]; then
......@@ -104,7 +105,7 @@ echo "working in $PWD"
# we are done here, write the specs and make the fu***** rpm
cat >scoutdaq.spec <<EOF
Name: $PACKAGENAME$pkgsuffix
Version: 0.1.0
Version: $TAG
Release: 0%{?dist}
Summary: scouting daq
License: gpl
......@@ -125,9 +126,7 @@ scouting daq
%prep
echo "PIPPPPPPPPO"
echo $RPM_SOURCE_DIR
echo "PIPPOOOOOOOOO"
echo $BASEDIR
cp -R $BASEDIR/src SOURCES/
......@@ -163,7 +162,6 @@ echo "Copying files to their destination"
cp $BASEDIR/init.d/runSCdaq.service usr/lib/systemd/system/runSCdaq.service
cp $BASEDIR/init.d/scoutboardResetServer.service usr/lib/systemd/system/scoutboardResetServer.service
cp -R $BASEDIR/* opt/scdaq
echo "PIPPOOOOOOOOOOO"
pwd
cp $TOPDIR/RPMBUILD/BUILD/SOURCES/scdaq opt/scdaq/bin/
cp -R $BASEDIR/etc/scdaq/scdaq.conf etc/scdaq/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment