xref: /minix3/external/bsd/nvi/dist/dist/script (revision 84d9c625bfea59e274550651111ae9edfdc40fbd)
1# setup
2# setenv VERSION 1.79
3setenv VERSION tk
4setenv S /usr/src/nvi
5
6# Make sure everything's checked in.
7cd $S && allout
8
9# Increment the version numbers and dates.
10setenv X version.h
11cd $S/ex && sco $X && echo "go to $VERSION" | sccs delget $X
12setenv X README
13cd $S && sco $X && vi $X && echo "go to $VERSION" | sccs delget $X
14
15# Build the distribution.
16cd $S/dist && sh ./distrib
17cd $S/catalog && make clean all check && rm dump __ck1 __ck2 && \
18    chmod 444 english* *.check
19
20# Build a version.
21cd $S && rm -rf build.local && mkdir build.local && cd build.local && \
22    ~bostic/bin/viconf && (make |& tee mklog)
23what vi | gzip > ../ARCHIVE/history/$VERSION.gz
24chmod 444 ../ARCHIVE/history/$VERSION.gz
25
26# build the documents
27cd $S/build.local && make cleandocs docs
28
29# Clean up the tree.
30cd $S && mv -i {ARCHIVE,TODO,build.local} SCCS/
31find . \! -path '*SCCS*' -type d \! -perm 775
32find . \! -path '*SCCS*' \( -name '*.rej' -o -name '*.orig' \)
33find . \! -path '*SCCS*' -type f \( -perm -200 -o -perm -2 -o -perm -20 \)
34chown -R bin.wsrc .
35
36# Create the release.
37setenv T /var/spool/ftp/pub
38cd $S/.. && mv -i nvi nvi-$VERSION
39tar cFFf - nvi-$VERSION | gzip --best > $T/nvi-$VERSION.tar.gz
40chmod 444 $T/nvi-$VERSION.tar.gz && mv -i nvi-$VERSION nvi
41cd $S && mv -i SCCS/{ARCHIVE,TODO,build.local} .
42