Add option to script to make releases from cvs tags/branches.
This commit is contained in:
parent
b929457aef
commit
3e3230fc79
@ -66,12 +66,13 @@ BS=4096
|
|||||||
|
|
||||||
HDEMU=0
|
HDEMU=0
|
||||||
COPY=0
|
COPY=0
|
||||||
|
CVSTAG=HEAD
|
||||||
|
|
||||||
while getopts "chaq?" c
|
while getopts "ch?" c
|
||||||
do
|
do
|
||||||
case "$c" in
|
case "$c" in
|
||||||
\?)
|
\?)
|
||||||
echo "Usage: $0 [-a] [-c] [-h]" >&2
|
echo "Usage: $0 [-c] [-h] [-r <tag>]" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
h)
|
h)
|
||||||
@ -83,6 +84,9 @@ do
|
|||||||
echo " * Copying, not CVS"
|
echo " * Copying, not CVS"
|
||||||
COPY=1
|
COPY=1
|
||||||
;;
|
;;
|
||||||
|
r)
|
||||||
|
CVSTAG=$OPTARG
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -167,7 +171,7 @@ chmod -R u+w $RELEASEDIR/usr/lib
|
|||||||
if [ "$COPY" -ne 1 ]
|
if [ "$COPY" -ne 1 ]
|
||||||
then
|
then
|
||||||
echo " * Doing new cvs export"
|
echo " * Doing new cvs export"
|
||||||
( cd $RELEASEDIR/usr && mkdir src && cvs export -rHEAD src )
|
( cd $RELEASEDIR/usr && mkdir src && cvs export -r$CVSTAG src )
|
||||||
else
|
else
|
||||||
( cd .. && make clean )
|
( cd .. && make clean )
|
||||||
srcdir=/usr/src
|
srcdir=/usr/src
|
||||||
|
Loading…
x
Reference in New Issue
Block a user