Commit 96fcaecb authored by Matthieu Boileau's avatar Matthieu Boileau

Use clean_all from common.sh

parent a3f98419
......@@ -70,6 +70,9 @@ envtpl --keep-template -o $MODULE_PATH module.tmpl
if [[ $1 == "module" ]]
then
install_module
elif [[ $1 == "clean" ]]
then
clean_all
else
install_lib
install_module
......
......@@ -120,6 +120,9 @@ install_module()
if [[ $1 == "module" ]]
then
install_module
elif [[ $1 == "clean" ]]
then
clean_all
else
prepare_lib
build_lib
......
......@@ -65,6 +65,9 @@ envtpl --keep-template -o $MODULE_PATH module.tmpl
if [[ $1 == "module" ]]
then
install_module
elif [[ $1 == "clean" ]]
then
clean_all
else
install_lib
install_module
......
......@@ -72,6 +72,9 @@ envtpl --keep-template -o $MODULE_PATH module.tmpl
if [[ $1 == "module" ]]
then
install_module
elif [[ $1 == "clean" ]]
then
clean_all
else
install_lib
install_module
......
......@@ -95,6 +95,9 @@ if [[ $1 == "module" ]]
then
echo ""
# install_module
elif [[ $1 == "clean" ]]
then
clean_all
else
prepare_lib
build_lib
......
......@@ -106,13 +106,7 @@ then
install_module
elif [[ $1 == "clean" ]]
then
if [[ -d $BUILD_DIR ]]
then
rm -rf $BUILD_DIR
else
echo "$BUILD_DIR does not exist"
exit 1
fi
clean_all
else
install_lib
install_module
......
......@@ -68,6 +68,9 @@ envtpl --keep-template -o $MODULE_PATH module.tmpl
if [[ $1 == "module" ]]
then
install_module
elif [[ $1 == "clean" ]]
then
clean_all
else
install_lib
install_module
......
......@@ -99,6 +99,9 @@ install_module()
if [[ $1 == "module" ]]
then
install_module
elif [[ $1 == "clean" ]]
then
clean_all
else
install_lib
install_module
......
......@@ -93,6 +93,9 @@ install_module()
if [[ $1 == "module" ]]
then
install_module
elif [[ $1 == "clean" ]]
then
clean_all
else
prepare_lib
build_lib
......
......@@ -65,13 +65,7 @@ then
install_module
elif [[ $1 == "clean" ]]
then
if [[ -d $BUILD_DIR ]]
then
rm -rf $BUILD_DIR
else
echo "$BUILD_DIR does not exist"
exit 1
fi
clean_all
else
install_lib
install_module
......
......@@ -99,13 +99,7 @@ then
install_module
elif [[ $1 == "clean" ]]
then
if [[ -d $BUILD_DIR ]]
then
rm -rf $BUILD_DIR
else
echo "$BUILD_DIR does not exist"
exit 1
fi
clean_all
else
install_lib
install_module
......
......@@ -79,13 +79,7 @@ then
install_module
elif [[ $1 == "clean" ]]
then
if [[ -d $SRC_DIR ]]
then
rm -rf $SRC_DIR
else
echo "$SRC_DIR does not exist"
exit 1
fi
clean_all
else
install_lib
install_module
......
......@@ -85,6 +85,9 @@ envtpl --keep-template -o $MODULE_PATH module.tmpl
if [[ $1 == "module" ]]
then
install_module
elif [[ $1 == "clean" ]]
then
clean_all
else
install_lib
install_module
......
......@@ -100,6 +100,9 @@ install_module()
if [[ $1 == "module" ]]
then
install_module
elif [[ $1 == "clean" ]]
then
clean_all
else
install_lib
install_module
......
......@@ -76,6 +76,9 @@ install_module()
if [[ $1 == "module" ]]
then
install_module
elif [[ $1 == "clean" ]]
then
clean_all
else
install_lib
install_module
......
......@@ -55,6 +55,9 @@ envtpl --keep-template -o $MODULE_PATH module.tmpl
if [[ $1 == "module" ]]
then
install_module
elif [[ $1 == "clean" ]]
then
clean_all
else
install_lib
# install_module
......
......@@ -94,6 +94,9 @@ install_module()
if [[ $1 == "module" ]]
then
install_module
elif [[ $1 == "clean" ]]
then
clean_all
else
prepare_lib
build_lib
......
......@@ -69,6 +69,9 @@ envtpl --keep-template -o $MODULE_PATH module.tmpl
if [[ $1 == "module" ]]
then
install_module
elif [[ $1 == "clean" ]]
then
clean_all
else
install_lib
install_module
......
......@@ -73,6 +73,9 @@ envtpl --keep-template -o $MODULE_PATH module.tmpl
if [[ $1 == "module" ]]
then
install_module
elif [[ $1 == "clean" ]]
then
clean_all
else
install_lib
install_module
......
......@@ -53,6 +53,9 @@ install_module()
if [[ $1 == "module" ]]
then
install_module
elif [[ $1 == "clean" ]]
then
clean_all
else
install_lib
install_module
......
......@@ -48,13 +48,7 @@ then
install_module
elif [[ $1 == "clean" ]]
then
if [[ -d $SRC_DIR ]]
then
rm -rf $SRC_DIR
else
echo "$SRC_DIR does not exist"
exit 1
fi
clean_all
else
install_lib
install_module
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment