Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SpectrumIM/spectrum2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcamlafit <cam.lafit@azerttyu.net>2015-12-15 16:39:54 +0300
committercamlafit <cam.lafit@azerttyu.net>2015-12-15 16:39:54 +0300
commitc262cc075ae15f869434abfd4fe1550ac4ad5a73 (patch)
tree24478dea893764d5492a8e6afcc4cb4ec5a2f4f5 /packaging
parenta72b2a6c6410e4a7395299eaf73a28592a46229d (diff)
Check debuild presence
Can't package if missing devscripts deb
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/debian/build_spectrum2.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/packaging/debian/build_spectrum2.sh b/packaging/debian/build_spectrum2.sh
index d0ce4a80..b90c31d4 100755
--- a/packaging/debian/build_spectrum2.sh
+++ b/packaging/debian/build_spectrum2.sh
@@ -2,6 +2,11 @@
set -x
+#Check functions required
+hash debuild 2>/dev/null || ( echo >&2 "apt-get install devscripts"; exit 1; )
+
+
+
vercount=$(git rev-list --all | wc -l)
gitrev=$(git rev-parse --short HEAD | sed 's/\(^[0-9\.]*\)-/\1~/')
version=$vercount-$gitrev