[Ultrapossum-cvs 740] ultrapossum/init.d 1.9, 1.10, 10config 1.2, 1.3, Makefile.am

Back to archive index

Masato Taruishi taru****@users*****
2004年 10月 9日 (土) 15:40:13 JST


===================================================================
RCS file: ultrapossum/init.d/10config,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- ultrapossum/init.d/10config	2004/09/27 09:07:56	1.9
+++ ultrapossum/init.d/10config	2004/10/09 06:40:13	1.10
@@ -162,17 +162,31 @@
     if test -f "$MODULEDIR/$m/variable-$m"; then
       cat "$MODULEDIR/$m/variable-$m"
     else
-      if test -d "$MODULEDIR/$m/"; then
-        /bin/ls $MODULEDIR/[0-9][0-9]$m | while read f; do
-          egrep "[A-Z_][A-Z_]*=" $f | cut -d= -f1 | grep -v IFS | tr -d ' ' | sort | uniq
-        done
-      else
-        echo "E: No such module: $m" 1>&2
-        return 1
-      fi
+      echo "E: No such module: $m" 1>&2
     fi
   done
   cat $SHAREDIR/variable ) | sort | uniq
+}
+
+getlogical() {
+  if test "x$1" = "x"; then
+    modules=`ultrapossum-config module`
+  else
+    modules="$@"
+  fi
+  getlogical_shell $modules
+}
+
+getlogical_shell() {
+ ( for m in "$@"; do
+     if test -f "$MODULEDIR/$m/logical-$m"; then
+       cat "$MODULEDIR/$m/logical-$m"
+     else
+       echo "E: No such module: $m" 1>&2
+     fi
+   done
+   cat $SHAREDIR/logical
+ ) | sort | uniq
 }
 
 # retrieve current values of the specified variables
===================================================================
RCS file: ultrapossum/init.d/Makefile.am,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ultrapossum/init.d/Makefile.am	2004/09/17 07:30:45	1.2
+++ ultrapossum/init.d/Makefile.am	2004/10/09 06:40:13	1.3
@@ -6,5 +6,8 @@
 variable: $(init_DATA) Makefile
 	egrep -h "[A-Z_][A-Z_]*=" $(init_DATA) | cut -d= -f1 | grep -v IFS | tr -d '# ' | sort | uniq > $@
 
+pysical: $(init_DATA) Makefile
+	egrep -h "[A-Z_][A-Z_]*=" $(init_DATA) | grep ultrapossum_getconf | cut -d= -f1 | grep -v IFS | tr -d '# ' | sort | uniq > $@
+
 EXTRA_DIST = $(init_DATA)
 



Ultrapossum-cvs メーリングリストの案内
Back to archive index