minix/external/bsd/nvi/dist/dist/script
Lionel Sambuc 84d9c625bf Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC)
- Fix for possible unset uid/gid in toproto
 - Fix for default mtree style
 - Update libelf
 - Importing libexecinfo
 - Resynchronize GCC, mpc, gmp, mpfr
 - build.sh: Replace params with show-params.
     This has been done as the make target has been renamed in the same
     way, while a new target named params has been added. This new
     target generates a file containing all the parameters, instead of
     printing it on the console.
 - Update test48 with new etc/services (Fix by Ben Gras <ben@minix3.org)
     get getservbyport() out of the inner loop

Change-Id: Ie6ad5226fa2621ff9f0dee8782ea48f9443d2091
2014-07-28 17:05:06 +02:00

42 lines
1.3 KiB
Plaintext

# setup
# setenv VERSION 1.79
setenv VERSION tk
setenv S /usr/src/nvi
# Make sure everything's checked in.
cd $S && allout
# Increment the version numbers and dates.
setenv X version.h
cd $S/ex && sco $X && echo "go to $VERSION" | sccs delget $X
setenv X README
cd $S && sco $X && vi $X && echo "go to $VERSION" | sccs delget $X
# Build the distribution.
cd $S/dist && sh ./distrib
cd $S/catalog && make clean all check && rm dump __ck1 __ck2 && \
chmod 444 english* *.check
# Build a version.
cd $S && rm -rf build.local && mkdir build.local && cd build.local && \
~bostic/bin/viconf && (make |& tee mklog)
what vi | gzip > ../ARCHIVE/history/$VERSION.gz
chmod 444 ../ARCHIVE/history/$VERSION.gz
# build the documents
cd $S/build.local && make cleandocs docs
# Clean up the tree.
cd $S && mv -i {ARCHIVE,TODO,build.local} SCCS/
find . \! -path '*SCCS*' -type d \! -perm 775
find . \! -path '*SCCS*' \( -name '*.rej' -o -name '*.orig' \)
find . \! -path '*SCCS*' -type f \( -perm -200 -o -perm -2 -o -perm -20 \)
chown -R bin.wsrc .
# Create the release.
setenv T /var/spool/ftp/pub
cd $S/.. && mv -i nvi nvi-$VERSION
tar cFFf - nvi-$VERSION | gzip --best > $T/nvi-$VERSION.tar.gz
chmod 444 $T/nvi-$VERSION.tar.gz && mv -i nvi-$VERSION nvi
cd $S && mv -i SCCS/{ARCHIVE,TODO,build.local} .