Magellan Linux

Diff of /trunk/include/xdg.sminc

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

trunk/core/include/xdg.sminc revision 1934 by niro, Wed Jun 10 17:02:30 2009 UTC branches/magellan-next/include/xdg.sminc revision 6654 by niro, Tue Sep 14 16:46:32 2010 UTC
# Line 128  minstallxdg() Line 128  minstallxdg()
128    
129   [[ -z "$1" ]] && die "No xdg desktop file given"   [[ -z "$1" ]] && die "No xdg desktop file given"
130    
131   # if no fullpath given use file from sourcedir   # if -s given use file from sourcedir
  if [[ $1 = -s ]]  
  then  
  file="${SOURCEDIR}/${PNAME}/$2"  
  destfile="$3"  
   
  else  
  file="$1"  
  fi  
   
132   if [[ $1 = -s ]]   if [[ $1 = -s ]]
133   then   then
134   file="${SOURCEDIR}/${PNAME}/$2"   file="${SOURCEDIR}/${PNAME}/$2"
# Line 176  minstallxdg() Line 167  minstallxdg()
167   minstalldir ${destdir} || die   minstalldir ${destdir} || die
168    
169   # install our xdg   # install our xdg
170   minstallfile ${file} ${BINDIR}/${destdir}/${destfile} || die   minstallfile ${file} ${destdir}/${destfile} || die
171  }  }

Legend:
Removed from v.1934  
changed lines
  Added in v.6654