Masato Taruishi
taru****@users*****
2004年 4月 6日 (火) 13:31:45 JST
=================================================================== RCS file: ultrapossum/ultrapossum-config.in,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- ultrapossum/ultrapossum-config.in 2004/04/05 18:07:12 1.11 +++ ultrapossum/ultrapossum-config.in 2004/04/06 04:31:45 1.12 @@ -43,8 +43,14 @@ if test -f "$MODULEDIR/$m/variable-$m"; then cat "$MODULEDIR/$m/variable-$m" else - echo "E: No such module: $m" 1>&2 - exit 1 + if test -d "$MODULEDIR/$m/"; then + /bin/ls $MODULEDIR/$m/[0-9][0-9]$m | while read f; do + egrep "[A-Z_][A-Z_]*=" $(module_DATA) | cut -d= -f1 | grep -v IFS | tr -d ' ' | sort | uniq + done + else + echo "E: No such module: $m" 1>&2 + exit 1 + fi fi done if test "x$1" = "x"; then cat $SHAREDIR/variable; fi @@ -123,8 +129,8 @@ xmodule) /bin/ls -1 $MODULEDIR/ | while read f do - if test -f $MODULEDIR/$f; then - echo $f | sed -e 's/^[0-9][0-9]//' + if test -d $MODULEDIR/$f; then + echo $f fi done ;;