~drgeo-developers/drgeo/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
#
# To rename DrGeoCanvas to DrGeoSketch
# in script or documentation
#
# Invoke in mass with bash code as:
# for i in *.st; do ./renameDrGeoCanvas.sh "$i"; done
#

filename="$1"
tmpFilename="$filename-tmp"
backup="$filename~"

echo -n Converting $filename...
cp "$filename" "$backup"
sed 's/DrGeoCanvas/DrGeoSketch/' "$filename" >> "$tmpFilename"
cp -f "$tmpFilename" "$filename"
rm "$tmpFilename"
echo converted.