mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 03:45:35 +02:00
[releng] add cvsroot conversion tool
This commit is contained in:
parent
d502f6ded3
commit
afe52ff1bb
1 changed files with 14 additions and 0 deletions
14
releng/org.eclipse.rse.build/bin/fix_cvs_root.sh
Executable file
14
releng/org.eclipse.rse.build/bin/fix_cvs_root.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
echo ""
|
||||
echo "Replace /cvsroot/dsdp -> /cvsroot/tools in all CVS/Root files below current directory"
|
||||
echo ""
|
||||
if [ "$1" != "-go" ]; then
|
||||
echo "use -go to actually perform the operation."
|
||||
exit 0
|
||||
fi
|
||||
for file in `find . -name Root -print | grep 'CVS/Root$'` ; do
|
||||
echo $file :
|
||||
if [ -f "$file.new" ]; then rm -rf "$file.new"; fi
|
||||
sed -e 's,/cvsroot/dsdp,/cvsroot/tools,g' "$file" > "$file.new"
|
||||
mv -f "$file.new" "$file"
|
||||
done
|
Loading…
Add table
Reference in a new issue