summaryrefslogtreecommitdiffstats
path: root/release/scripts/extract_bin.sh
blob: d6e7664b16ef91d15f80b1db007b8859661c2ae4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
# $Id: extract_bin.sh,v 1.5 1995/04/09 03:44:03 jkh Exp $
set -e
PATH=/stand:$PATH
DDIR=/


# Temporary kludge for pathological bindist.
if [ -f $DDIR/etc/sysconfig ]; then
	mv $DDIR/etc/sysconfig $DDIR/etc/sysconfig.save
fi
cat bin.?? | gzip -c -d | ( cd $DDIR; cpio -H tar -imdu )
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
	echo "running cap_mkdb $i"
	/usr/bin/cap_mkdb $i
	/usr/sbin/chown bin.bin $i.db
	/bin/chmod 444 $i.db
done

chmod 1777 /tmp
OpenPOWER on IntegriCloud