mail-uplift fix lines before and after message separator
[ipreg/sccs2rcs2cvs2git.git] / ipreg-archive-uplift
CommitLineData
27b0439a
TF
1#!/bin/sh
2
3fdea381 3# A special case to avoid cluttering sccs2cvs
27b0439a 4
e43beec2
TF
5# WARNING this script takes about two hours to run. There are nearly
6# 20,000 revisions in the hosts.131.111 history, and commits to the
7# RCS file take longer the larger it gets...
d92a9def 8
3fdea381 9set -e -x
27b0439a 10
3fdea381
TF
11mkdir -p ipreg-archive
12cd ipreg-archive
27b0439a 13
b51de266 14: ARCHIVE-UPLIFT START $(date +%Y-%m-%d.%H:%M:%S)
cba75e22 15
3fdea381
TF
16for d in ../ip-register/archive/archive/DB \
17 ../ip-register/archive/archive/Hosts
27b0439a 18do
3fdea381
TF
19 first=true
20 for sfile in $d/s.*
21 do
b51de266 22 : uplift $sfile $(date +%Y-%m-%d.%H:%M:%S)
1e40fde3 23 [ -f "$sfile" ] || break
3fdea381
TF
24 file="${sfile#*/s.}"
25 filev="${file},v"
26 basev="${file%.????????},v"
3fdea381
TF
27 if $first
28 then
3487b448 29 sccs2rcs1 "$sfile"
72ab8631 30 mv "$filev" "$basev"
3fdea381
TF
31 first=false
32 else
3487b448 33 sccs2rcs1 -a"$basev" "$sfile"
3fdea381 34 fi
425fb748 35 rm "$sfile"
3fdea381 36 done
27b0439a 37done
cba75e22 38
792e5bc2
TF
39sccs2rcs1 -aDB.cam,v ../ip-register/DNS/SCCS/s.DB.cam
40sccs2rcs1 -ahosts.131.111,v ../ip-register/adm/SCCS/s.hosts.131.111
41
b51de266 42: ARCHIVE-UPLIFT DONE $(date +%Y-%m-%d.%H:%M:%S)