diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-07-09 09:31:45 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-07-09 09:31:45 +0000 |
commit | b4c719086d833d665c78a5c6ba8ba157786a0baf (patch) | |
tree | 06c14a3864c90e571296672f5cb75f282830b8d4 /macosx-setup.sh | |
parent | 5967dc68203852e0c4660e4a8cbecd63bb6390d9 (diff) |
Fix missing $ before variable name.
Look at the lua-*-done file to get the version number of the version of
Lua we installed.
svn path=/trunk/; revision=50460
Diffstat (limited to 'macosx-setup.sh')
-rwxr-xr-x | macosx-setup.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/macosx-setup.sh b/macosx-setup.sh index 4ac60ed594..1701fcdaf8 100755 --- a/macosx-setup.sh +++ b/macosx-setup.sh @@ -100,7 +100,7 @@ uninstall() { $DO_MAKE_UNINSTALL || exit 1 make distclean || exit 1 cd .. - rm geoip-installed_geoip_version-done + rm geoip-$installed_geoip_version-done fi if [ "$PORTAUDIO_VERSION" -a -f portaudio-done ] ; then @@ -112,7 +112,8 @@ uninstall() { rm portaudio-done fi - if [ "$LUA_VERSION" -a -f lua-$LUA_VERSION-done ] ; then + installed_lua_version=`ls lua-*-done 2>/dev/null | sed 's/lua-\(.*\)-done/\1/'` + if [ ! -z "$installed_lua_version" ] ; then echo "Uninstalling Lua:" # # Lua has no "make uninstall", so just remove stuff manually. @@ -123,10 +124,10 @@ uninstall() { (cd /usr/local/include; $DO_RM -f lua.h luaconf.h lualib.h lauxlib.h lua.hpp) (cd /usr/local/lib; $DO_RM -f liblua.a) (cd /usr/local/man/man1; $DO_RM -f lua.1 luac.1) - cd lua-$LUA_VERSION + cd lua-$installed_lua_version make clean || exit 1 cd .. - rm lua-$LUA_VERSION-done + rm lua-$installed_lua_version-done fi installed_gnutls_version=`ls gnutls-*-done 2>/dev/null | sed 's/gnutls-\(.*\)-done/\1/'` |