Magellan Linux

Diff of /branches/R11-stable/include/mozilla_i18n.sminc

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

revision 9880 by niro, Sat Jan 14 01:48:34 2012 UTC revision 11031 by niro, Sat Feb 11 19:35:45 2012 UTC
# Line 34  mozilla_i18n_src_prepare() Line 34  mozilla_i18n_src_prepare()
34  {  {
35   install -d ${SRCDIR}   install -d ${SRCDIR}
36   munpack ${SRCFILE} ${SRCDIR} || die   munpack ${SRCFILE} ${SRCDIR} || die
  cd ${SRCDIR}  
   
  # fix location in manifest file  
  sed -i "s|jar:chrome/${MOZ_LANG}.jar|jar:${MOZ_LANG}.jar|" chrome.manifest || die  
37  }  }
38    
39  mozilla_i18n_src_install()  mozilla_i18n_src_install()
40  {  {
41   cd ${SRCDIR}   cd ${SRCDIR}
42    
43   # needed directories   # get install id for the extension
44   minstalldir ${MOZ_HOME}/chrome || die   local id="$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' install.rdf)"
45    
46   minstallfile chrome/${MOZ_LANG}.jar ${MOZ_HOME}/chrome/ || die   # needed directories
47   minstallfile chrome.manifest ${MOZ_HOME}/chrome/${MOZ_LANG}.manifest || die   minstalldir ${MOZ_HOME}/extensions/${id} || die
48     cp -Rv ${SRCDIR}/* ${BINDIR}/${MOZ_HOME}/extensions/${id} || die
49  }  }
50    
51  export_inherits mozilla_i18n src_prepare src_install  export_inherits mozilla_i18n src_prepare src_install

Legend:
Removed from v.9880  
changed lines
  Added in v.11031