Magellan Linux

Diff of /trunk/include/mozilla.sminc

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

trunk/core/include/mozilla.sminc revision 2867 by niro, Sun Jul 12 17:40:30 2009 UTC trunk/include/mozilla.sminc revision 20234 by niro, Tue Nov 26 11:58:19 2013 UTC
# Line 70  makemake2() Line 70  makemake2()
70  msetpref()  msetpref()
71  {  {
72   : ${MOZILLA_PREF_CONFIG="01-magellan.js"}   : ${MOZILLA_PREF_CONFIG="01-magellan.js"}
73   : ${MOZILLA_PREF_PATH="/usr/$(mlibdir)/mozilla-firefox/defaults/pref"}   case ${PNAME} in
74     *firefox*) : ${MOZILLA_PREF_PATH="/usr/$(mlibdir)/${PNAME}/browser/defaults/preferences"} ;;
75     *thunderbird*) : ${MOZILLA_PREF_PATH="/usr/$(mlibdir)/${PNAME}/defaults/preferences"} ;;
76     esac
77   local pref="$1"   local pref="$1"
78   local value="$2"   local value="$2"
79    
# Line 79  msetpref() Line 82  msetpref()
82   if [[ ${pref} = --init ]]   if [[ ${pref} = --init ]]
83   then   then
84   # only create an empty config   # only create an empty config
85     if [[ ! -d ${BINDIR}/${MOZILLA_PREF_PATH} ]]
86     then
87     install -d ${BINDIR}/${MOZILLA_PREF_PATH} || die
88     fi
89   :> ${BINDIR}/${MOZILLA_PREF_PATH}/${MOZILLA_PREF_CONFIG} || die   :> ${BINDIR}/${MOZILLA_PREF_PATH}/${MOZILLA_PREF_CONFIG} || die
90   else   else
91   # write a pref value   # write a pref value
# Line 105  msetpref() Line 112  msetpref()
112    
113   # eg:   # eg:
114   # pref("general.useragent.vendor","Magellan-Linux");   # pref("general.useragent.vendor","Magellan-Linux");
115   echo "pref(\"${pref}\",${value});" >> ${BINDIR}/${MOZILLA_PREF_PATH}/${MOZILLA_PREF_CONFIG} || die   echo "pref(\"${pref}\", ${value});" >> ${BINDIR}/${MOZILLA_PREF_PATH}/${MOZILLA_PREF_CONFIG} || die
116   fi   fi
117  }  }

Legend:
Removed from v.2867  
changed lines
  Added in v.20234