Permalink
Browse files

WHISTLE-42: remove any remaining empty lib folders on startup

  • Loading branch information...
1 parent ca6fad3 commit b8257eacc6ec1b021ad9cd6c6a5709da877f7a15 @k-anderson k-anderson committed Dec 11, 2012
Showing with 21 additions and 4 deletions.
  1. +13 −0 bin/clean_moved_libs.sh
  2. +4 −2 whistle_apps/start-dev.sh
  3. +4 −2 whistle_apps/start.sh
View
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+cd `dirname $0`
+
+for path in ../whistle_apps/lib/*
+do
+ folder=$(basename $path);
+ if [ "$folder" != "Makefile" ]
+ then
+ echo "# rm -rf lib/$folder";
+ rm -rf lib/$folder;
+ fi
+done
@@ -2,6 +2,8 @@
cd `dirname $0`
-export ERL_LIBS=$PWD/../lib:$PWD/lib
+export ERL_LIBS=$PWD/../lib:$PWD/lib:$PWD/apps/*/lib
export ERL_CRASH_DUMP=$(date +%s)_erl_crash.dump
-exec erl -args_file $PWD/conf/vm.args -pa $PWD/deps/*/ebin $PWD/ebin $PWD/apps/*/ebin -s reloader -s whistle_apps
+
+for path in $PWD/lib/*; do folder=$(basename $path); if [ "$folder" != "Makefile" ]; then echo "# rm -rf $PWD/../lib/$folder"; rm -rf $PWD/../lib/$folder; fi; done
+exec erl -args_file $PWD/conf/vm.args -pa $PWD/deps/*/ebin $PWD/ebin $PWD/apps/*/ebin $PWD/apps/*/lib/*/ebin -s reloader -s whistle_apps
View
@@ -2,6 +2,8 @@
cd `dirname $0`
-export ERL_LIBS=$PWD/../lib:$PWD/lib
+export ERL_LIBS=$PWD/../lib:$PWD/lib:$PWD/apps/*/lib
export ERL_CRASH_DUMP=$(date +%s)_erl_crash.dump
-exec erl -args_file $PWD/conf/vm.args -pa $PWD/deps/*/ebin $PWD/ebin $PWD/apps/*/ebin -detached -s whistle_apps
+
+for path in $PWD/lib/*; do folder=$(basename $path); if [ "$folder" != "Makefile" ]; then echo "# rm -rf $PWD/../lib/$folder"; rm -rf $PWD/../lib/$folder; fi; done
+exec erl -args_file $PWD/conf/vm.args -pa $PWD/deps/*/ebin $PWD/ebin $PWD/apps/*/ebin $PWD/apps/*/lib/*/ebin -detached -s whistle_apps

0 comments on commit b8257ea

Please sign in to comment.