mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-08-08 13:39:25 -04:00
27 lines
637 B
Bash
Executable File
27 lines
637 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Invocation of this script :
|
|
# For a first checkout, supposing your are in the src directory :
|
|
# $ ./netbsd-cvs.sh checkout -A -P -D '2012/10/17 12:00:00 UTC' src
|
|
#
|
|
# For updates (hypotesis, current directory is the git root directory
|
|
# $ ./netbsd-cvs.sh update -A -Pd -D "2012/10/18 12:00:00 UTC"
|
|
|
|
: ${NETBSD_SRC=..}
|
|
|
|
if [ "$#" -lt "1" ]; then
|
|
echo "Wrong number of arguments."
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -d ${NETBSD_SRC} ]; then
|
|
echo "CVS Root dir does not exist or is not a directory : ${NETBSD_SRC}"
|
|
exit 2
|
|
fi
|
|
|
|
cd ${NETBSD_SRC}
|
|
export CVS_RSH="ssh"
|
|
export CVSROOT="anoncvs@anoncvs.netbsd.org:/cvsroot"
|
|
cvs "$@"
|
|
cd -
|