1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-18 22:45:23 +02:00
cdt/releng/org.eclipse.rse.build/bin/fix_cvs_root.sh

25 lines
993 B
Bash
Raw Normal View History

2011-01-03 21:12:03 +00:00
#!/bin/sh
#*******************************************************************************
# Copyright (c) 2011 Wind River Systems, Inc. and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Martin Oberhuber (Wind River) - initial API and implementation
#*******************************************************************************
2011-01-03 21:12:03 +00:00
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