[Ultrapossum-cvs 1025] ultrapossum 1.2,1.3,service

アーカイブの一覧に戻る

Masato Taruishi taru****@users*****
2004年 10月 26日 (火) 21:30:10 JST


===================================================================
RCS file: ultrapossum/service,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ultrapossum/service	2004/10/26 11:52:12	1.2
+++ ultrapossum/service	2004/10/26 12:30:10	1.3
@@ -21,7 +21,7 @@
 trap "eval `ultrapossum-config term`" 0
 
 usage() {
-  echo "$0 <protocol>" 1>&2
+  echo "$0 protocol|provider [<protocol>...]" 1>&2
   exit 1
 }
 
@@ -37,7 +37,27 @@
       done | tr ' ' '\n' | sort | uniq
     fi
     ;;
-  x)
+  xprovider)
+    if test "x$2" != "x"; then
+      shift
+      ss="$@"
+    else
+      ss=`$0 protocol`
+    fi
+    for s in $ss
+    do
+      eval "`echo $s | tr 'a-z' 'A-Z'`_PROVIDER=\"$s://$FQDN/\""
+    done
+    if test -f $SYSCONFDIR/service.cf; then
+      source_shell $SYSCONFDIR/service.cf
+    fi
+    for s in $ss
+    do
+      v="`echo $s | tr 'a-z' 'A-Z'`_PROVIDER"
+      echo "$v=\"${!v}\""
+    done
+    ;;
+  x*)
     usage
     exit 1
     ;;



Ultrapossum-cvs メーリングリストの案内
アーカイブの一覧に戻る