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 2358 by niro, Tue Aug 25 09:51:46 2015 UTC revision 2365 by niro, Tue Aug 25 10:27:47 2015 UTC
# Line 10  LOCAL_PIXMAPS_PATH="${MCORE_CONFIG_PATH} Line 10  LOCAL_PIXMAPS_PATH="${MCORE_CONFIG_PATH}
10  ICON_INFO_PATH="${MCORE_CONFIG_PATH}/icons/info"  ICON_INFO_PATH="${MCORE_CONFIG_PATH}/icons/info"
11  ICON_INFO_SUFFIX="@@ICON_INFO_SUFFIX@@"  ICON_INFO_SUFFIX="@@ICON_INFO_SUFFIX@@"
12    
13    die() { echo "ERROR: $@"; exit 1; }
14    
15  # very basic getops  # very basic getops
16  for i in $*  for i in $*
17  do  do
# Line 37  done Line 39  done
39    
40  # use some defaults for icon, dest, {x,y}res  # use some defaults for icon, dest, {x,y}res
41  [[ -z ${xres} ]] && xres=50  [[ -z ${xres} ]] && xres=50
42  [[ -z ${yres} ]] && xres=50  [[ -z ${yres} ]] && yres=50
43  if [[ -z ${icon} ]]  if [[ -z ${icon} ]]
44  then  then
45   # if no default icon is given use default.png   # if no default icon is given use default.png
# Line 49  CONFIG="${ICON_INFO_PATH}/${filename}.${ Line 51  CONFIG="${ICON_INFO_PATH}/${filename}.${
51  clearconfig  clearconfig
52    
53  addconfig "name=\"${name}\""  addconfig "name=\"${name}\""
54    addconfig "filename=\"${filename}\""
55  addconfig "command=\"${command}\""  addconfig "command=\"${command}\""
56  addconfig "icon=\"${icon}\""  addconfig "icon=\"${icon}\""
57  addconfig "deficon=\"${deficon}\""  addconfig "deficon=\"${deficon}\""
58  addconfig "xres=\"${xres}\""  addconfig "xres=\"${xres}\""
59  addconfig "yres=\"${yres}\""  addconfig "yres=\"${yres}\""
60  if [[ -z ${iwidth} ]]  if [[ ! -z ${iwidth} ]]
61  then  then
  addconfig "iwidth=0"  
 else  
62   addconfig "iwidth=\"${iwidth}\""   addconfig "iwidth=\"${iwidth}\""
63  fi  fi
64    
65  if [[ ! -z ${iheight} ]]  if [[ ! -z ${iheight} ]]
66  then  then
  addconfig="iheight=0"  
 else  
67   addconfig "iheight=\"${iheight}\""   addconfig "iheight=\"${iheight}\""
68  fi  fi

Legend:
Removed from v.2358  
changed lines
  Added in v.2365