|
|
1.1 root 1: : "Create active file and newsgroup heirarchy for new machine"
2: : "Usage: sh makeactive.sh friends-active-file LIBDIR SPOOLDIR"
3: cp $1 /tmp/active
4: cd $2
5: mv /tmp/active active
6: ed - active << DONE
7: g/ /s/ .*//
8: w /tmp/active
9: g/$/s/$/ 00000/
10: w
11: e /tmp/active
12: 1,$s;\.;/;
13: w
14: 1,$s;/[^/]*$;;
15: w /tmp/parents.in
16: q
17: DONE
18: sort -u < /tmp/parents.in > /tmp/parents
19: cd $3
20: echo "expect some error messages about dirs that already exist"
21: : "test is to ignore error exits"
22: test mkdir `cat /tmp/parents`
23: test mkdir `cat /tmp/active`
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.