add build_spectrum2.sh for debian/ubuntu
This commit is contained in:
parent
bb7455e9ca
commit
54ae28e483
1 changed files with 24 additions and 0 deletions
24
packaging/debian/build_spectrum2.sh
Executable file
24
packaging/debian/build_spectrum2.sh
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
vercount=$(git rev-list --all | wc -l)
|
||||
gitrev=$(git rev-parse --short HEAD | sed 's/\(^[0-9\.]*\)-/\1~/')
|
||||
version=$vercount-$gitrev
|
||||
|
||||
sed -i "1s/\((.*)\)/(1:$version-1)/" debian/changelog
|
||||
|
||||
rm -rf spectrum2_*
|
||||
|
||||
git clone ../../.git spectrum2-$version
|
||||
|
||||
tar -czf spectrum2_$version.orig.tar.gz spectrum2-$version
|
||||
|
||||
cp -r debian spectrum2-$version/debian
|
||||
|
||||
cd spectrum2-$version
|
||||
debuild -i -us -uc -S
|
||||
|
||||
cd ..
|
||||
|
||||
rm -rf spectrum2-$version
|
Loading…
Add table
Reference in a new issue