1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-13 20:15:22 +02:00

Add rename_build.sh

This commit is contained in:
Martin Oberhuber 2009-09-26 21:32:10 +00:00
parent 10a246c329
commit 883eb2d9b8

View file

@ -34,7 +34,7 @@ if [ ! -f RSE-runtime-${srcVer}.zip ]; then
echo ERROR: RSE-runtime-${srcVer}.zip not found, incorrect source? echo ERROR: RSE-runtime-${srcVer}.zip not found, incorrect source?
exit 1 exit 1
fi fi
echo "Renameing Release: ${srcVer} --> ${tgtVer} into ../${tgtDir}" echo "Renaming Release: ${srcVer} --> ${tgtVer} into ../${tgtDir}"
mkdir ../${tgtDir} mkdir ../${tgtDir}
for x in `ls` ; do for x in `ls` ; do
@ -47,9 +47,9 @@ for x in `ls` ; do
cp ${x} ../${tgtDir}/${y} cp ${x} ../${tgtDir}/${y}
;; ;;
index.php|buildNotes.php) index.php|buildNotes.php)
cat ${x} | sed -e "s,/${srcVer},/${tgtDir}," \ cat ${x} | sed -e "s,/${srcVer},/${tgtDir},g" \
-e "s,${srcVer},${tgtVer}," \ -e "s,${srcVer},${tgtVer},g" \
-e "s,Integration|Maintenance,${tgtBuild}," \ -e "/Build/s,Integration|Maintenance,${tgtBuild},g" \
> ../${tgtDir}/${x} > ../${tgtDir}/${x}
;; ;;
package.count) package.count)