mirror of https://github.com/CGAL/cgal
29 lines
654 B
Bash
Executable File
29 lines
654 B
Bash
Executable File
#!/bin/sh
|
|
|
|
for h in $@ ; do
|
|
if [ -d $h ]; then
|
|
cd $h;
|
|
echo "In " $h;
|
|
if [ -e text ]; then
|
|
rm -r text;
|
|
fi
|
|
mkdir text;
|
|
|
|
for i in *.C ; do
|
|
if [ ! $i = "*.C" ]; then
|
|
jp=`echo $i|sed -e "s/\.C/\.vcproj/"`;
|
|
ofn=`echo $i|sed -e "s/\.C/\.exe/"`;
|
|
k=`echo $i|sed -e "s/\.C//"`;
|
|
sed -e"s/master/$k/g" ../../developer_scripts/examples/master.vcproj > ./text/temp.txt;
|
|
sed -e"s/test_msvc7.exe/$ofn/g" ./text/temp.txt > ./text/temp2.txt;
|
|
sed -e"s/test_msvc7/$k/g" ./text/temp2.txt > ./text/$jp;
|
|
mv ./text/$jp ./;
|
|
rm -rf ./text/temp.txt ./text/temp2.txt
|
|
fi
|
|
done
|
|
|
|
rm -r text
|
|
cd ..;
|
|
fi
|
|
done
|