[PC-BSD Commits] r2237 - pbibuild/pbi-source/PBCsource

svn at pcbsd.org svn at pcbsd.org
Wed Jul 2 08:43:15 PDT 2008


Author: kris
Date: 2008-07-02 08:43:11 -0700 (Wed, 02 Jul 2008)
New Revision: 2237

Modified:
   pbibuild/pbi-source/PBCsource/addpbimime.sh
Log:

Updated addpbimime.sh to fix some bugs with spaces in program names



Modified: pbibuild/pbi-source/PBCsource/addpbimime.sh
===================================================================
--- pbibuild/pbi-source/PBCsource/addpbimime.sh	2008-07-02 15:42:13 UTC (rev 2236)
+++ pbibuild/pbi-source/PBCsource/addpbimime.sh	2008-07-02 15:43:11 UTC (rev 2237)
@@ -87,11 +87,11 @@
 Icon=${ICON}
 InitialPreference=1
 MimeType=${MIMESTRING}
-Name=${PROGNAME}" > /usr/local/share/applnk/.hidden/${PROGNAME}-${i}a.desktop
+Name=${PROGNAME}" > "/usr/local/share/applnk/.hidden/${PROGNAME}-${i}a.desktop"
 
     if [ "$TERMINAL" = "1" ]
     then
-      echo "Terminal=true" >>/usr/local/share/applnk/.hidden/${PROGNAME}-${i}a.desktop
+      echo "Terminal=true" >>"/usr/local/share/applnk/.hidden/${PROGNAME}-${i}a.desktop"
     fi
 
     # Check if we have a mimeapps.list file and append to it now
@@ -130,7 +130,7 @@
          <glob pattern=\"${EXTNOGLOB[${i}]}\"/>
          <desktop>${PROGNAME}-${i}b.desktop</desktop>
   </mime-type>
-</mime-info>" >/usr/local/share/mime/packages/${PROGNAME}-${i}b.xml
+</mime-info>" >"/usr/local/share/mime/packages/${PROGNAME}-${i}b.xml"
     
     # Create the .hidden/ desktop file
     echo "[Desktop Entry]
@@ -138,11 +138,11 @@
 Icon=${ICON}
 InitialPreference=1
 MimeType=application/${PROGNAME}${i}
-Name=${PROGNAME}" >/usr/local/share/applnk/.hidden/${PROGNAME}-${i}b.desktop
+Name=${PROGNAME}" >"/usr/local/share/applnk/.hidden/${PROGNAME}-${i}b.desktop"
 
     if [ "$TERMINAL" = "1" ]
     then
-      echo "Terminal=true" >>/usr/local/share/applnk/.hidden/${PROGNAME}-${i}b.desktop
+      echo "Terminal=true" >>"/usr/local/share/applnk/.hidden/${PROGNAME}-${i}b.desktop"
     fi
 
     i="`expr ${i} + 1`"



More information about the Commits mailing list