/usr/src/gcc-4.4/debian/rename-pkgs.sh is in gcc-4.4-source 4.4.7-8ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #! /bin/bash
rename_pkg()
{
src=$1
dest=$2
for ext in preinst postinst prerm postrm doc-base; do
if [ -f $src.$ext ]; then
if [ -f $dest.ext ]; then
echo already exists: $dest.$ext
else
echo "$src.$ext --> $dest.$ext"
svn rename $src.$ext $dest.$ext
#mv $src.$ext $dest.$ext
fi
fi
done
}
v_new=3.4
v_old=3.3
for p in chill cpp gcc g++ g77 gpc gij gcj gobjc protoize treelang; do
rename_pkg $p-$v_old $p-$v_new
done
for p in cpp gcc g77 gnat; do
rename_pkg $p-$v_old-doc $p-$v_new-doc
done
rename_pkg gcc-$v_old-base gcc-$v_new-base
rename_pkg gcc-$v_old-sparc64 gcc-$v_new-sparc64
|