Sophie

Sophie

distrib > Mandriva > 2010.2 > x86_64 > by-pkgid > 9d70214adc1436f851b829e058769c88 > files > 36

lib64edit-devel-3.0-0.20090923.1mdv2010.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