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 2 by niro, Fri Oct 10 13:29:42 2008 UTC branches/magellan-next/include/xdg.sminc revision 6654 by niro, Tue Sep 14 16:46:32 2010 UTC
# Line 1  Line 1 
1  # $Header: /magellan-cvs/smage/include/xdg.sminc,v 1.9 2007-11-10 13:05:36 niro Exp $  # $Id$
2  # xdg-utils  # xdg-utils
3    
4  # for a complete list of known categories see:  # for a complete list of known categories see:
# Line 28  Line 28 
28  # Core KDE GNOME GTK Qt Motif Java ConsoleOnly Screensaver  # Core KDE GNOME GTK Qt Motif Java ConsoleOnly Screensaver
29  # TrayIcon Applet Shell  # TrayIcon Applet Shell
30    
31    sminclude mtools
32    
33  # desktop-file-utils are needed  # desktop-file-utils are needed
34  SDEPEND="${SDEPEND}  SDEPEND="${SDEPEND}
35   >= dev-util/desktop-file-utils-0.1"   >= dev-util/desktop-file-utils-0.1"
# Line 126  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 171  minstallxdg() Line 164  minstallxdg()
164   fi   fi
165    
166   # needed directory   # needed directory
167   install -d ${BINDIR}/${destdir} || die   minstalldir ${destdir} || die
168    
169   # install our xdg   # install our xdg
170   install -m 0644 -o root -g root ${file} ${BINDIR}/${destdir}/${destfile} || die   minstallfile ${file} ${destdir}/${destfile} || die
171  }  }

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