File:  [Research Unix] / researchv10no / cmd / netnews / src / makeactive.sh
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:35 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

: "Create active file and newsgroup heirarchy for new machine"
: "Usage: sh makeactive.sh friends-active-file LIBDIR SPOOLDIR"
cp $1 /tmp/active
cd $2
mv /tmp/active active
ed - active << DONE
g/ /s/ .*//
w /tmp/active
g/$/s/$/ 00000/
w
e /tmp/active
1,$s;\.;/;
w
1,$s;/[^/]*$;;
w /tmp/parents.in
q
DONE
sort -u < /tmp/parents.in > /tmp/parents
cd $3
echo "expect some error messages about dirs that already exist"
: "test is to ignore error exits"
test mkdir `cat /tmp/parents`
test mkdir `cat /tmp/active`

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.