Save /etc/sysconfig from destruction.

Don't put termcap.db and vgrinddefs.db in the tarballs when they are so
easy to generate and take up so much space...
This commit is contained in:
Poul-Henning Kamp 1995-03-28 18:14:10 +00:00
parent a01bd386af
commit 286e783f03
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7445
2 changed files with 19 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.124 1995/03/24 04:20:35 phk Exp $
# $Id: Makefile,v 1.125 1995/03/24 08:10:53 phk Exp $
#
# How to roll a release:
#
@ -211,6 +211,7 @@ release.5:
${RD}/trees/proflibs/usr/lib ; \
fi ; \
done
cd ${RD}/usr/share/misc && rm -f termcap.db vgrindefs.db
-cd ${RD}/trees ; \
find bin ${EXPORT_DISTS} -depth -type d -print | xargs rmdir

View File

@ -1,9 +1,12 @@
#!/bin/sh
# $Id: extract_bin.sh,v 1.2 1995/01/28 09:04:09 jkh Exp $
# $Id: extract_bin.sh,v 1.3 1995/01/28 09:11:32 jkh Exp $
PATH=/stand:$PATH
DDIR=/
# Temporary kludge for pathological bindist.
if [ -f $DDIR/etc/sysconfig ]; then
mv $DDIR/etc/sysconfig $DDIR/etc/sysconfig.save
fi
if [ -f $DDIR/etc/myname ]; then
cp $DDIR/etc/hosts $DDIR/etc/myname $DDIR/stand/etc
fi
@ -19,4 +22,17 @@ fi
if [ -f $DDIR/stand/etc/defaultrouter ]; then
cp $DDIR/stand/etc/defaultrouter $DDIR/etc
fi
if [ -f $DDIR/etc/sysconfig.save ]; then
mv $DDIR/etc/sysconfig.save $DDIR/etc/sysconfig
fi
# Save some space in the tarballs by not sending these bloated files...
cd /usr/share/misc
for i in termcap vgrindefs
do
/usr/bin/cap_mkdb $i
/usr/sbin/chown bin.bin $i.db
/bin/chmod 444 $i.db
done
chmod 1777 /tmp