ptools2cvs
1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/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