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