mzs: adjust relative paths to match ipreg repo
[ipreg/sccs2rcs2cvs2git.git] / ipreg-mid-uplift
1 #!/bin/sh
2
3 # some fixes to do after populating the CVS tree
4
5 B="\e[32m"
6 D="\e[0m"
7
8 set -e -x
9
10 : $B deadify ancient tarballs $D
11 (
12         cd ipreg-tarballs
13         find ip-register -name '*.tar.gz' |
14         while read tarfile
15         do
16                 mtime="$(stat -t '%Y/%m/%d %H:%M:%S' -f '%Sm' $tarfile)"
17                 subdir=${tarfile%.tar.gz}
18                 : $B deadify $subdir $D
19                 find ../ipreg-cvs/$subdir -name '*,v' |
20                 while read cvspath
21                 do
22                         owd=$(pwd)
23                         cvsdir=$(dirname $cvspath)
24                         filev=$(basename $cvspath)
25                         cd $cvsdir
26                         rcsdeadify $filev "$mtime" ipreg
27                         cd $owd
28                 done
29         done
30 )
31
32 : $B incorporate archived history $D
33 rm -f ipreg-cvs/ip-register/adm/hosts.131.111,v
34 cp    ipreg-archive/hosts.131.111,v \
35       ipreg-cvs/ip-register/adm/hosts.131.111,v
36 rm -f ipreg-cvs/ip-register/DNS/DB.cam,v
37 cp    ipreg-archive/DB.cam,v \
38       ipreg-cvs/ip-register/DNS/DB.cam,v
39
40 : $B clean empty log messages $D
41 find ipreg-cvs/ip-register -name '*,v' |
42 xargs rcsmtlogmsg
43
44 : $B MID-UPLIFT DONE $D