Browse CVS Repository
Contents of /canna/canna/confwrapper
Parent Directory
| Revision Log
| Revision Graph
Revision 1.7 -
( show annotations)
( download)
Wed May 19 15:06:37 2004 UTC
(19 years, 11 months ago)
by aida_s
Branch: MAIN
CVS Tags: before_new_zipcode, after_new_zipcode, HEAD
Changes since 1.6: +5 -5 lines
* confwrapper: "." bashism. Many shells don't searches the current
directory.
* Imakefile: $(CC) -> env $(CC) in case $(CC) is
"LD_LIBRARY_PATH=/usr/X11R6/lib cc".
* canuum/Imakefile: ditto
| 1 |
#! /bin/sh |
| 2 |
# $Id$ |
| 3 |
# vim: set sw=2 ts=8: |
| 4 |
|
| 5 |
set -e |
| 6 |
case "$1" in |
| 7 |
run) |
| 8 |
shift |
| 9 |
if test ! -f cwenv.sh; then |
| 10 |
make cwenv.sh |
| 11 |
fi |
| 12 |
. ./cwenv.sh |
| 13 |
if test -f cwlocal.sh; then |
| 14 |
. ./cwlocal.sh |
| 15 |
fi |
| 16 |
export CPPFLAGS CC CFLAGS |
| 17 |
echo "CPPFLAGS=\"$CPPFLAGS\"" |
| 18 |
echo "CC=\"$CC\"" |
| 19 |
echo "CFLAGS=\"$CFLAGS\"" |
| 20 |
echo "$@" |
| 21 |
exec "$@" |
| 22 |
;; |
| 23 |
|
| 24 |
mkenv) |
| 25 |
envname="$2" |
| 26 |
shift |
| 27 |
shift |
| 28 |
for p in "$@"; do |
| 29 |
case "$p" in |
| 30 |
*" "*|*" "*|*"'"*|*'"'*) |
| 31 |
echo 'confwrapper: warning: removing "'"$p"'" from '"$envname" >&2 |
| 32 |
;; |
| 33 |
*) args=$args${args+" "}$p ;; |
| 34 |
esac |
| 35 |
done |
| 36 |
cat << EOF |
| 37 |
$envname="$args" |
| 38 |
EOF |
| 39 |
;; |
| 40 |
|
| 41 |
*) |
| 42 |
echo "confwrapper.sub: Bad argument" >&2 |
| 43 |
exit 1 |
| 44 |
;; |
| 45 |
esac |
|