Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/script/hmake-config

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/sh
# hmake-config - adjust the configuration of hmake
# Author: Malcolm Wallace, 2002, [email protected] 

INSTALLVER="3.13 (2006-11-01)"
SCRIPTDIR=${SCRIPTDIR-/home/fernan/w/nhc98-1.20/script}
MACHINE=${MACHINE-"`$SCRIPTDIR/harch`"}
HMAKEDIR=${HMAKEDIR-/home/fernan/w/nhc98-1.20/lib}
HMAKECONFDIR=${HMAKECONFDIR-/home/fernan/w/nhc98-1.20/lib}
TMP=${TMP-/tmp}
export MACHINE HMAKEDIR HMAKECONFDIR

if [ ! -d $HMAKEDIR/$MACHINE ]
then
  echo "`basename $0` is not installed/configured for $MACHINE."
  echo "  See your system administrator, or install it yourself from"
  echo "  http://www.cs.york.ac.uk/fp/hmake/"
  exit 1
fi

usage() {
  echo "Usage: `basename $0` [config-file] new"
  echo "       `basename $0` [config-file] list [compiler]"
  echo "       `basename $0` [config-file] [add|delete|default] [compiler]"
  exit 0
}

case $1 in
  --version) echo "$0: $INSTALLVER"
             exit 0;;
  --help)    usage ;;
esac

map() { f=$1; shift; for item in $*; do $f $item; done; }
cygfix() { cygpath -w $1 | tr '\\' '/'; }

case $MACHINE in
  ix86-CYGWIN*) ARGS=`map cygfix "$@"` ;;
  *) ARGS="$@" ;;
esac

exec $HMAKEDIR/$MACHINE/MkConfig $ARGS

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].