Const issue for C++ include.
[m6w6/libmemcached] / memcached / version.sh
1 #!/bin/sh
2
3 if git describe | sed s/-/_/g > version.num.tmp
4 then
5 mv version.num.tmp version.num
6 echo "m4_define([VERSION_NUMBER], [`tr -d '\n' < version.num`])" \
7 > version.m4
8 sed s/@VERSION@/`cat version.num`/ < memcached.spec.in > memcached.spec
9 else
10 rm version.num.tmp
11 fi