summaryrefslogtreecommitdiff
path: root/devel/bmake/import-bmake-sh
blob: f4bc5a7338a4868f070a07548188ecd198e8b771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
:
# $Id: import-bmake-sh,v 1.3 2015/05/19 21:48:58 joerg Exp $

# Nice and simple, but make sure it is done consistently...
# Simply unpack bmake-<version>.tar.gz
# cd bmake
# then run this script.

[ -s make-conf.h -a ! -d CVS ] || {
    echo "Must be in top level dir of bmake distribution" >&2
    exit 1
}

# what version are we importing
version=`awk '/^MAKE_VERSION=/ { print "bmake-" $2; }' Makefile`
version_tag=`echo $version | tr '.' '-'`

CVSROOT=cvs.netbsd.org:/cvsroot
set -x
$ECHO ${CVS:-cvs} -d $CVSROOT import -m "Import $version" \
	pkgsrc/devel/bmake/files BMAKE $version_tag