Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/idesk/idesk-generate-icon-info.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2403 by niro, Wed Aug 26 11:03:13 2015 UTC revision 2404 by niro, Mon Aug 31 08:57:10 2015 UTC
# Line 21  do Line 21  do
21   --command|-c) shift; command="$1" ;;   --command|-c) shift; command="$1" ;;
22   --icon|-i) shift; icon="$1" ;;   --icon|-i) shift; icon="$1" ;;
23   --filename|-f) shift; filename="$1" ;;   --filename|-f) shift; filename="$1" ;;
24   --xres|-x) shift; xres="$1" ;;   --xpos|-x) shift; xpos="$1" ;;
25   --yres|-y) shift; yres="$1" ;;   --ypos|-y) shift; ypos="$1" ;;
26   --icon-width|-w) shift; iwidth="$1" ;;   --icon-width|-w) shift; iwidth="$1" ;;
27   --icon-height|-h) shift; iheight="$1" ;;   --icon-height|-h) shift; iheight="$1" ;;
28   --default-icon) shift; deficon="$1" ;;   --default-icon) shift; deficon="$1" ;;
# Line 41  case ${method} in Line 41  case ${method} in
41    
42   [[ -z ${filename} ]] && filename="${name}"   [[ -z ${filename} ]] && filename="${name}"
43    
44   # use some defaults for icon, dest, {x,y}res   # use some defaults for icon, dest, {x,y}pos
45   [[ -z ${xres} ]] && xres=50   [[ -z ${xpos} ]] && xpos=50
46   [[ -z ${yres} ]] && yres=50   [[ -z ${ypos} ]] && ypos=50
47   if [[ -z ${icon} ]]   if [[ -z ${icon} ]]
48   then   then
49   # if no default icon is given use default.png   # if no default icon is given use default.png
# Line 59  case ${method} in Line 59  case ${method} in
59   addconfig "command=\"${command}\""   addconfig "command=\"${command}\""
60   addconfig "icon=\"${icon}\""   addconfig "icon=\"${icon}\""
61   addconfig "deficon=\"${deficon}\""   addconfig "deficon=\"${deficon}\""
62   addconfig "xres=\"${xres}\""   addconfig "xpos=\"${xpos}\""
63   addconfig "yres=\"${yres}\""   addconfig "ypos=\"${ypos}\""
64   if [[ ! -z ${iwidth} ]]   if [[ ! -z ${iwidth} ]]
65   then   then
66   addconfig "iwidth=\"${iwidth}\""   addconfig "iwidth=\"${iwidth}\""

Legend:
Removed from v.2403  
changed lines
  Added in v.2404