[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Antiright-devel] antiright/ACE-desktop ACE
From: |
Jeffrey Bedard |
Subject: |
[Antiright-devel] antiright/ACE-desktop ACE |
Date: |
Tue, 20 Mar 2007 18:14:14 +0000 |
CVSROOT: /sources/antiright
Module name: antiright
Changes by: Jeffrey Bedard <jefbed> 07/03/20 18:14:14
Modified files:
ACE-desktop : ACE
Log message:
Reindented case statement handling getopt arguments. Added the -g
option
to launch a static GUI definition.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/antiright/ACE-desktop/ACE?cvsroot=antiright&r1=1.28&r2=1.29
Patches:
Index: ACE
===================================================================
RCS file: /sources/antiright/antiright/ACE-desktop/ACE,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- ACE 19 Mar 2007 10:18:25 -0000 1.28
+++ ACE 20 Mar 2007 18:14:14 -0000 1.29
@@ -640,7 +640,7 @@
exit 2
}
-while getopts :ctp:r:L:V:A: OPT; do
+while getopts :ctp:r:L:V:A:g: OPT; do
case $OPT in
c|+c)
ACE_Check_Configuration_File
@@ -650,7 +650,8 @@
ACE_record_titles
exit 0
;;
- p|+p) # This argument allows executing a configured binding
+ p|+p)
+ # This argument allows executing a configured binding
# while not passing any proceeding arguments.
$(ACE_read_configuration_value "$OPTARG")
exit 0
@@ -659,6 +660,10 @@
ACE_read_configuration_value "$OPTARG"
exit 0
;;
+ g|+g)
+ GUIDL "$OPTARG"
+ exit 0
+ ;;
L|+L)
arguments=$($ARSHELL -al 'Launch Arguments:' -oe -at "echo")
shift $(($OPTIND - 1))
@@ -667,6 +672,7 @@
;;
V|+V)
ACE_Verification "$OPTARG"
+ exit 0
;;
A|+A)
shift $(($OPTIND-2))
@@ -679,19 +685,16 @@
done
shift `expr $OPTIND - 1`
-if [ $# -gt 0 ]; then # This runs a command configured in ~/.antiright
- if grep theme <<EOF
-$1
-EOF
- then
- ACE_set_theme $1
- else
- # This allows parameters to be passed to a configured command.
+if [ $# -gt 0 ]; then
+ # This runs a command configured in ~/.antiright
command="$(ACE_read_configuration_value $1)"
+ # Set the remaining arguments to not include COMMAND.
shift
- $command $@ &
- fi
+ # This allows parameters to be passed to a configured command.
+ $command $* &
else
+ # No getopt-unrecognized parameters passed, so launch the ACE
+ # main panel.
GUIDL ACE_Panel
fi