summaryrefslogtreecommitdiffstats
path: root/version.sh
diff options
context:
space:
mode:
Diffstat (limited to 'version.sh')
-rw-r--r--version.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/version.sh b/version.sh
new file mode 100644
index 0000000..5f6c91d
--- /dev/null
+++ b/version.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+if [ "x$1" = "xLIBTOOL" ]; then
+ grep -m 1 libcaldav ChangeLog | awk '{print $2}' | \
+ cut -c2-4 | sed 's/\./:/g'
+else
+ grep -m 1 libcaldav ChangeLog | awk '{print $2}' | cut -c2-6
+fi
+
+exit 0