1#!/bin/sh 2 3# This file is free software; the Free Software Foundation 4# gives unlimited permission to copy, distribute and modify it. 5 6AWK=awk 7 8if test "X_`uname`" = "X_SunOS"; then 9 if test -x /usr/xpg4/bin/awk ; then 10 AWK=/usr/xpg4/bin/awk 11 fi 12fi 13 14EXECDIR=`dirname $0` 15$AWK -v string=`(cd $EXECDIR && cd .. && basename $PWD)` \ 16 'BEGIN {\ 17 sub("wdune","",string);\ 18 sub("white_dune","",string);\ 19 sub("-", "",string);\ 20 print string}' 21