summaryrefslogtreecommitdiff
path: root/devel/bmake/import-bmake-sh
blob: dd28be72fe5022ee8152cf087825f1b25a9d7d1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
:
# $Id: import-bmake-sh,v 1.2 2007/10/09 19:19:08 martti 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
eval `sed -n "/^[A-Z]*AKE_VER/s/^\([A-Z][A-Z_]*\)[ :=][ :=]*\([^ ][^ ]*\).*/\1='\2'/p" Makefile.in`
version=`eval echo $MAKE_VERSION`
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