Update for biber 2.12
[git/cygwin-packages/biber.git] / fix_names.sh
1 #! /bin/bash
2
3 for d in *.src
4 do
5 if [ -d ${d} ]
6 then
7 m=$(echo ${d} | sed -e 's/-[-.0-9]*\.src$//')
8 mv ${d} ${m} || exit 1
9 echo "Entering ${m}..."
10 cd ${m} || exit 1
11 eval $(grep '^VERSION=' *.cygport)
12 if [ -f ${m}-${VERSION}-1.cygport ]
13 then
14 mv ${m}-${VERSION}-1.cygport ${m}.cygport || exit 1
15 fi
16 if [ -f ${m}-${VERSION}-1.src.patch ]
17 then
18 mv ${m}-${VERSION}-1.src.patch achim.patch || exit 1
19 echo 'PATCH_URI="achim.patch"' >> ${m}.cygport || exit 1
20 fi
21 eval $(grep '^RELEASE=' *.cygport)
22 if [ ${RELEASE} = 1 ]
23 then
24 sed -i -e 's/^RELEASE=.*/RELEASE=2/' ${m}.cygport
25 else
26 echo
27 echo "Warning: RELEASE = ${RELEASE}."
28 echo
29 fi
30 echo "Leaving ${m}."
31 cd ..
32 fi
33 done
This page took 0.032982 seconds and 5 git commands to generate.