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 ]] |