summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2017-02-24 12:15:09 +0100
committervarac <varacanero@zeromail.org>2017-03-02 10:10:38 +0100
commitebc4ce4d0497c43a25c21195fe120212972e5274 (patch)
tree0d33bdbedefaf0db63f2c3ddcebc77638d5c3a00
parent489b5614f8c9ca635b9b70330fd966f5a3371fcf (diff)
Move freeze_python_version.sh to gitlab-buildpackage repo
-rwxr-xr-xdebian/freeze_python_version.sh17
1 files changed, 0 insertions, 17 deletions
diff --git a/debian/freeze_python_version.sh b/debian/freeze_python_version.sh
deleted file mode 100755
index dcdffab..0000000
--- a/debian/freeze_python_version.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-VERSION_FILE="src/leap/mx/_version.py"
-rm ${VERSION_FILE}
-echo y | python setup.py freeze_debianver
-
-# Add the number of commits after last tag to the version string
-add_commits=$(git describe | cut -d'-' -f2)
-rev=$(git describe | cut -d'-' -f3)
-sed -i "/ \"version/s/\"$/.${add_commits}.${rev}\"/" ${VERSION_FILE}
-
-# Remove the -dirty tag
-sed -i 's/-dirty//g' ${VERSION_FILE}
-
-git commit -m "[pkg] freeze debian version" ${VERSION_FILE}
-
-python setup.py version