summaryrefslogtreecommitdiffstats
path: root/version.sh
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-16 14:59:26 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-16 14:59:26 -0600
commit60733179a9153d05f1a66b12bc889d8abe449b49 (patch)
tree994b1566d85231edeed3e28d4fd1c162234b1d78 /version.sh
downloadlibcarddav-60733179a9153d05f1a66b12bc889d8abe449b49.tar.gz
libcarddav-60733179a9153d05f1a66b12bc889d8abe449b49.zip
Initial import of libcarddav
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..cf0ea68
--- /dev/null
+++ b/version.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+if [ "x$1" = "xLIBTOOL" ]; then
+ grep -m 1 libcarddav ChangeLog | awk '{print $2}' | \
+ cut -c2-4 | sed 's/\./:/g'
+else
+ grep -m 1 libcarddav ChangeLog | awk '{print $2}' | cut -c2-6
+fi
+
+exit 0