Magellan Linux

Diff of /branches/mage-next/src/env-rebuild.sh

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

trunk/mage/usr/lib/mage/env-rebuild.sh revision 1570 by niro, Wed Dec 28 10:26:01 2011 UTC branches/mage-next/src/env-rebuild.sh revision 2538 by niro, Wed Jan 29 10:57:41 2014 UTC
# Line 39  do Line 39  do
39   esac   esac
40    
41   variable="${line%%=*}"   variable="${line%%=*}"
  # substitudes " from $line if exists  
  path="${line//\"}" #}" <--- make code readable again :)  
42   value="${line##*=}"   value="${line##*=}"
43    
44     # substitudes " or ' from $value if exists
45     value="${value//\"}" #}" <--- make code readable again :)
46     value="${value//\'}"
47    
48   # writes LDPATH to ${MROOT}/etc/ld.so.conf,   # writes LDPATH to ${MROOT}/etc/ld.so.conf,
49   # anything else to ${MROOT}/etc/profile.env   # anything else to ${MROOT}/etc/profile.env
50   if [[ ${variable} = LDPATH ]]   if [[ ${variable} = LDPATH ]]
# Line 58  do Line 60  do
60   if [[ ${SPECVAR} = yes ]]   if [[ ${SPECVAR} = yes ]]
61   then   then
62   case ${variable} in   case ${variable} in
63   CONFIG_PROTECT*|XDG*)   CONFIG_PROTECT*)
64   # CONFIG_PROTECT*|XDG* have as delimiter  not ':'  but ' '   # CONFIG_PROTECT** have as delimiter  not ':'  but ' '
65   echo -n "${value} " >> ${TMPDIR}/${variable}   echo -n "${value} " >> ${TMPDIR}/${variable}
66   unset SPECVAR   unset SPECVAR
67   ;;   ;;

Legend:
Removed from v.1570  
changed lines
  Added in v.2538