|
Lines 156-167
if [ -d $TDEDIR/games ]; then
Link Here
|
| 156 |
# search patch is respected. |
156 |
# search patch is respected. |
| 157 |
# Is there a way we can check that $TDEDIR/games is always placed only just before |
157 |
# Is there a way we can check that $TDEDIR/games is always placed only just before |
| 158 |
# /usr/games in the search path? |
158 |
# /usr/games in the search path? |
| 159 |
if [ "`echo $PATH | grep \"^/usr/games:\"`" != "" ]; then |
159 |
if [ "`echo $PATH | grep \"^\\(.*:\\)\\?/usr/games\\(:.*\\)\\?$\"`" != "" ]; then |
| 160 |
export PATH="`echo $PATH | sed \"s|^/usr/games:|$TDEDIR/games:/usr/games:|\"`" |
160 |
export PATH="`echo $PATH | sed \"s|^\\(.*:\\)\\?/usr/games\\(:.*\\)\\?$|\\1$TDEDIR/games:/usr/games\\2|\"`" |
| 161 |
elif [ "`echo $PATH | grep \":/usr/games$\"`" != "" ]; then |
|
|
| 162 |
export PATH="`echo $PATH | sed \"s|:/usr/games$|:$TDEDIR/games:/usr/games|\"`" |
| 163 |
elif [ "`echo $PATH | grep \":/usr/games:\"`" != "" ]; then |
| 164 |
export PATH="`echo $PATH | sed \"s|:/usr/games:|:$TDEDIR/games:/usr/games:|\"`" |
| 165 |
else |
161 |
else |
| 166 |
export PATH=$TDEDIR/games:$PATH |
162 |
export PATH=$TDEDIR/games:$PATH |
| 167 |
fi |
163 |
fi |
|
Lines 175-186
if [ -d $TDEDIR/bin ]; then
Link Here
|
| 175 |
# elsewhere, then they need to ensure the traditional search patch is respected. |
171 |
# elsewhere, then they need to ensure the traditional search patch is respected. |
| 176 |
# Is there a way we can check that $TDEDIR/bin is always placed only just before |
172 |
# Is there a way we can check that $TDEDIR/bin is always placed only just before |
| 177 |
# /usr/bin in the search path? |
173 |
# /usr/bin in the search path? |
| 178 |
if [ "`echo $PATH | grep \"^/usr/bin:\"`" != "" ]; then |
174 |
if [ "`echo $PATH | grep \"^\\(.*:\\)\\?/usr/bin\\(:.*\\)\\?$\"`" != "" ]; then |
| 179 |
export PATH="`echo $PATH | sed \"s|^/usr/bin:|$TDEDIR/bin:/usr/bin:|\"`" |
175 |
export PATH="`echo $PATH | sed \"s|^\\(.*:\\)\\?/usr/bin\\(:.*\\)\\?$|\\1$TDEDIR/bin:/usr/bin\\2|\"`" |
| 180 |
elif [ "`echo $PATH | grep \":/usr/bin$\"`" != "" ]; then |
|
|
| 181 |
export PATH="`echo $PATH | sed \"s|:/usr/bin$|:$TDEDIR/bin:/usr/bin|\"`" |
| 182 |
elif [ "`echo $PATH | grep \":/usr/bin:\"`" != "" ]; then |
| 183 |
export PATH="`echo $PATH | sed \"s|:/usr/bin:|:$TDEDIR/bin:/usr/bin:|\"`" |
| 184 |
else |
176 |
else |
| 185 |
export PATH=$TDEDIR/bin:$PATH |
177 |
export PATH=$TDEDIR/bin:$PATH |
| 186 |
fi |
178 |
fi |