summaryrefslogtreecommitdiff
path: root/openbabel.sh
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-03-29 11:21:27 +0200
committerAndreas Maunz <andreas@maunz.de>2011-03-29 11:21:27 +0200
commit580c6204ea78e5fa261fff262d207f1651b3b06f (patch)
tree9ff5f847701d2bf450d8fde3249db30065622cc6 /openbabel.sh
parent6d5500ff01f83b006656ea39771f91cfcc844df6 (diff)
Fixed variable expansion in bash conf
Diffstat (limited to 'openbabel.sh')
-rwxr-xr-xopenbabel.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/openbabel.sh b/openbabel.sh
index e233410..6eb2e5c 100755
--- a/openbabel.sh
+++ b/openbabel.sh
@@ -96,17 +96,17 @@ echo
echo "Preparing Openbabel..."
if [ ! -f $OB_CONF ]; then
echo "PATH=$PREFIX/bin:\$PATH" >> "$OB_CONF"
- echo "if [ -z \"$LD_LIBRARY_PATH\" ]; then \
+ echo "if [ -z \"\$LD_LIBRARY_PATH\" ]; then \
export LD_LIBRARY_PATH=\"$PREFIX/lib\"; \
else \
- export LD_LIBRARY_PATH=\"$PREFIX/lib:$LD_LIBRARY_PATH\"; \
+ export LD_LIBRARY_PATH=\"$PREFIX/lib:\$LD_LIBRARY_PATH\"; \
fi" >> "$OB_CONF"
- echo "if [ -z \"$BABEL_LIBDIR\" ]; then \
+ echo "if [ -z \"\$BABEL_LIBDIR\" ]; then \
export BABEL_LIBDIR=\"$PREFIX/lib/openbabel/2.3.0\"; \
fi" >> "$OB_CONF"
- echo "if [ -z \"$BABEL_DATADIR\" ]; then \
+ echo "if [ -z \"\$BABEL_DATADIR\" ]; then \
export BABEL_DATADIR=\"$PREFIX/share/openbabel/2.3.0\"; \
- fi" >> "$OB_CONF"
+ fi" >> "\$OB_CONF"
echo "if [ -z \"$RUBYLIB\" ]; then \
export RUBYLIB=\"$PREFIX_BINDINGS\"; \
fi" >> "$RUBY_CONF"