mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-08-04 11:39:39 -04:00
Utils to retrieve NetBSD sources
This commit is contained in:
commit
7a24ee7b94
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
CVS
|
25
netbsd-cvs.sh
Executable file
25
netbsd-cvs.sh
Executable file
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Invocation of this script :
|
||||
# $ ./netbsd-cvs.sh checkout -A -P -D "2012/10/17 12:00:00 UTC" src -d .
|
||||
# $ ROOT=/some/path ./netbsd-cvs.sh checkout -A -P -D "2012/10/17 12:00:00 UTC" src -d .
|
||||
# $ NETBSD_SRC=/some/absolute/path ./netbsd-cvs.sh checkout -A -P -D "2012/10/17 12:00:00 UTC" src -d .
|
||||
|
||||
: ${ROOT=.}
|
||||
: ${NETBSD_SRC=${ROOT}/netbsd}
|
||||
|
||||
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 -
|
Loading…
x
Reference in New Issue
Block a user