ptools2cvs 1.53 KB
#!/bin/sh
#
# script to convert original ptools RCS hierarchy to CVS RCS hierarchy
#
# Basically moves all RCS/*,v up one level
#
# Does not do the following things properly
#	symbolic linked directories and file in source_root, need to copy
#	 to dest_root

# Get the environment variables
. ./CHANGEME

# prompt user to make sure we don't do something bad
echo
echo
echo About to convert SGI source tree $PTOOLS_ROOT
echo to CVS source tree $CVSROOT/PR
echo
echo If these are the correct trees, type yes to continue, no to quit
read REPLY
if test $REPLY != "yes"
then
        echo QUIT!!!
        exit 0
fi

cd $PTOOLS_ROOT

echo
echo ========= COPYING ,v file ==============
echo
find . -type f -name '*,v' -exec $TREE_BINS/mvrcsfile {} $PTOOLS_ROOT $CVSROOT/PR \;

echo
echo ========= MAKING symbolic links ========
echo
find . -type l -exec $TREE_BINS/mvlinks {} $PTOOLS_ROOT $CVSROOT/PR \;

echo
echo ========= FIX absolute symbolic links ==
echo
echo Check the list of links in fixabslinks against the ABSOLUTE LINK list
echo echoed by the MAKING symbolic links phase
echo
$TREE_BINS/fixabslinks $CVSROOT/PR

echo
echo ========= FIX DELETED links in iosim that caused mvlinks to fail ==
echo
cd $CVSROOT/PR/iosim/data/dma80long; mkdir SpData; cd SpData; ln -s ../../dma80/SpData/*,v .
cd $CVSROOT/PR/iosim/data/vidither; mkdir SpData; cd SpData; ln -s ../../dma80/SpData/*,v .

echo
echo ========= MOVE hw into HW module, dead source into MISC module =====
echo
cd $CVSROOT/PR; mv cosim hw2 iosim ../HW
cd $CVSROOT/PR; mv hw hw.old apps/walk debugger/rmon ../MISC