1 |
#!/bin/sh |
#!/bin/sh |
2 |
|
|
3 |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/env-rebuild.sh,v 1.11 2005-12-01 12:37:47 niro Exp $ |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/env-rebuild.sh,v 1.12 2007-04-01 01:26:34 niro Exp $ |
4 |
# |
# |
5 |
# rebuilds /etc/{ld.so.conf,profile.env} with given files from /etc/env.d |
# rebuilds /etc/{ld.so.conf,profile.env} with given files from /etc/env.d |
6 |
# |
# |
43 |
# reads content of every file |
# reads content of every file |
44 |
while read path |
while read path |
45 |
do |
do |
46 |
# abort if empty |
# abort if empty or an comment |
47 |
[[ -z ${path} ]] && continue |
case "${path}" in |
48 |
|
\#*|"") continue ;; |
49 |
|
esac |
50 |
|
|
51 |
# writes LDPATH to ${P}/etc/ld.so.conf, |
# writes LDPATH to ${P}/etc/ld.so.conf, |
52 |
# anything else to ${P}/etc/profile.env |
# anything else to ${P}/etc/profile.env |