No more -a; no more contrib
This commit is contained in:
parent
e1669c41cd
commit
38307a7e34
2 changed files with 1 additions and 22 deletions
|
@ -18,6 +18,5 @@ su bin -c 'makewhatis /usr/man'
|
||||||
su bin -c 'makewhatis /usr/gnu/man'
|
su bin -c 'makewhatis /usr/gnu/man'
|
||||||
su bin -c 'makewhatis /usr/local/man'
|
su bin -c 'makewhatis /usr/local/man'
|
||||||
mv /usr/src/commands /usr/src.commands
|
mv /usr/src/commands /usr/src.commands
|
||||||
mv /usr/src/contrib /usr/src.contrib
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,6 @@ BS=4096
|
||||||
|
|
||||||
HDEMU=0
|
HDEMU=0
|
||||||
COPY=0
|
COPY=0
|
||||||
ALL=0
|
|
||||||
QUICK=0
|
QUICK=0
|
||||||
|
|
||||||
while getopts "chaq?" c
|
while getopts "chaq?" c
|
||||||
|
@ -86,10 +85,6 @@ do
|
||||||
echo " * Copying, not CVS"
|
echo " * Copying, not CVS"
|
||||||
COPY=1
|
COPY=1
|
||||||
;;
|
;;
|
||||||
a)
|
|
||||||
echo " * Including contrib"
|
|
||||||
ALL=1
|
|
||||||
;;
|
|
||||||
q)
|
q)
|
||||||
echo " * Quick option (skip important bits"
|
echo " * Quick option (skip important bits"
|
||||||
QUICK=1
|
QUICK=1
|
||||||
|
@ -178,28 +173,13 @@ then
|
||||||
if [ "$COPY" -ne 1 ]
|
if [ "$COPY" -ne 1 ]
|
||||||
then
|
then
|
||||||
echo " * Doing new cvs export"
|
echo " * Doing new cvs export"
|
||||||
if [ "$ALL" = 0 ]
|
( cd $RELEASEDIR/usr && mkdir src && cvs export -rHEAD src )
|
||||||
then
|
|
||||||
cvs export -rHEAD src >/dev/null || exit 1
|
|
||||||
srcdir=src
|
|
||||||
# No contrib stuff
|
|
||||||
rm -rf src/contrib
|
|
||||||
echo " * Transfering source to $RELEASEDIR"
|
|
||||||
( cd $srcdir && tar cf - . ) | ( cd $RELEASEDIR/usr && mkdir src && cd src && tar xf - )
|
|
||||||
else
|
|
||||||
( cd $RELEASEDIR/usr && mkdir src && cvs export -rHEAD src )
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
( cd .. && make clean )
|
( cd .. && make clean )
|
||||||
srcdir=/usr/src
|
srcdir=/usr/src
|
||||||
( cd $srcdir && tar cf - . ) | ( cd $RELEASEDIR/usr && mkdir src && cd src && tar xf - )
|
( cd $srcdir && tar cf - . ) | ( cd $RELEASEDIR/usr && mkdir src && cd src && tar xf - )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$ALL" = 0 ]
|
|
||||||
then echo " * Removing temporary cvs source tree"
|
|
||||||
rm -rf src
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo " * Fixups for owners and modes of dirs and files"
|
echo " * Fixups for owners and modes of dirs and files"
|
||||||
chown -R bin $RELEASEDIR/usr/src
|
chown -R bin $RELEASEDIR/usr/src
|
||||||
find $RELEASEDIR/usr/src -type d | xargs chmod 755
|
find $RELEASEDIR/usr/src -type d | xargs chmod 755
|
||||||
|
|
Loading…
Reference in a new issue