Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 07ca3c09da5c98b6bf6f222290a2f298 > files > 39

lib64edit-devel-2.10-0.20070831.1mdv2008.1.x86_64.rpm

#!/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