Finish (?) build of biber prereqs
[git/cygwin-packages/biber.git] / fix_names.sh
CommitLineData
37cfe0b3
KB
1#! /bin/bash
2
3for d in *.src
4do
5 if [ -d ${d} ]
6 then
3e7b9897 7 m=$(echo ${d} | sed -e 's/-[-.0-9]*\.src$//')
37cfe0b3
KB
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
3e7b9897 19 echo 'PATCH_URI="achim.patch"' >> ${m}.cygport || exit 1
37cfe0b3
KB
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
3e7b9897 26 echo
37cfe0b3 27 echo "Warning: RELEASE = ${RELEASE}."
3e7b9897 28 echo
37cfe0b3
KB
29 fi
30 echo "Leaving ${m}."
31 cd ..
32 fi
33done
This page took 0.022141 seconds and 5 git commands to generate.