forked from Mirrors/freeswitch
16d6e9901c
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7502 d0543943-73ff-0310-b7d9-9358b9ac24b2
18 lines
292 B
Bash
Executable File
18 lines
292 B
Bash
Executable File
#!/bin/bash
|
|
|
|
## increment LT_VERSION in ../configure.ac
|
|
|
|
f=../configure.ac
|
|
|
|
grep LT_VERSION $f
|
|
|
|
i=$(awk '/LT_VERSION/ {n=gensub(/.*:([0-9]+):.*/,"\\1",1);print n}' $f)
|
|
((i++))
|
|
|
|
ed $f <<EOF
|
|
1,\$s/AC_SUBST(LT_VERSION, \[0:[0-9]*:0\])/AC_SUBST(LT_VERSION, \[0:$i:0\])/
|
|
w
|
|
EOF
|
|
|
|
grep LT_VERSION $f
|