summaryrefslogtreecommitdiffstats
path: root/version.sh
blob: 5f6c91d79295231765a3d7ae04c98bc4619b87d1 (plain)
1
2
3
4
5
6
7
8
9
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