blob: c5b23467560136418695e8935bb8fc4f0b5f03fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
for i in "$@"; do
version=`sed -n '/^AC_INIT *(/s/^[^,]*, *\[//p' $i/configure.ac | sed 's/\].*$//'`
name=`echo ${i}_VERSION | tr 'a-z' 'A-Z'`
echo "$name=$version"
echo "AC_SUBST($name)"
for pc in $i/*.pc.in; do
if [ -f "$pc" ]; then
sed -i "s/PACKAGE_VERSION/$name/g" $pc
fi
done
done
|