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