aboutsummaryrefslogtreecommitdiff
path: root/version.sh
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-05-17 15:31:45 +0200
committerThomas White <taw@physics.org>2018-05-17 15:39:22 +0200
commita9f48b6507b0326a34b84d7600f5eb791993eeb1 (patch)
treeb89b6e73477125336c35c6d7d9996bd8ebae7fd7 /version.sh
parent87fd650abf11da75e7abd2ff90821cf7cb041b91 (diff)
parenta9f4c0ff4376267d90d6e8f9a0b6c012ec0588a4 (diff)
Merge branch 'tom/cmake'
Diffstat (limited to 'version.sh')
-rwxr-xr-xversion.sh25
1 files changed, 0 insertions, 25 deletions
diff --git a/version.sh b/version.sh
deleted file mode 100755
index 1be14f69..00000000
--- a/version.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/bash
-
-top_srcdir=$1
-
-CRYSTFEL_BASE_VERSION=$( cf=( `grep PACKAGE_VERSION config.h` ); echo ${cf[2]} | sed -n 's/"//gp' )
-sed 's/\$u\$/'${CRYSTFEL_BASE_VERSION}'/g' $top_srcdir/version.h.in > version1.tmp
-command -v git > /dev/null 2>&1
-if [ $? -eq 0 ]; then
- if [ -d ".git" ]; then
- git log -1 --pretty=%B | grep 'This is CrystFEL' > /dev/null
- if [ $? -eq 0 ]; then
- CRYSTFEL_GIT_COMMIT=""
- else
- CRYSTFEL_GIT_COMMIT="+"`git rev-parse HEAD`
- fi
- fi
-fi
-sed 's/\$e\$/'${CRYSTFEL_GIT_COMMIT}'/g' version1.tmp > version2.tmp
-diff version.h version2.tmp > /dev/null
-if [ $? -ne 0 ]; then
- mv version2.tmp version.h
- rm version1.tmp
-else
- rm version1.tmp version2.tmp
-fi