diff --git a/dependencies/edepcleanplatform b/dependencies/edepcleanplatform new file mode 100755 --- /dev/null +++ b/dependencies/edepcleanplatform @@ -0,0 +1,25 @@ +#! /bin/bash + +echo "-====================================-" +echo "Echo automated dependency platform clean script" +echo "-====================================-" + +if [ "$1" = "" ] ; then + echo "You must specify a target platform." + echo "" + echo "$0 targetName" + echo "" + echo "This script cleans the default platform locations." + echo "" + echo "-====================================-" + exit 1; +fi + +ECHO_PLATFORM=$1 +echo "Removing build/$ECHO_PLATFORM" +rm -R "build/$ECHO_PLATFORM" +echo "Removing opt/$ECHO_PLATFORM" +rm -R "opt/$ECHO_PLATFORM" +echo "Done" + + diff --git a/dependencies/edepcleanx b/dependencies/edepcleanx new file mode 100755 --- /dev/null +++ b/dependencies/edepcleanx @@ -0,0 +1,31 @@ +#! /bin/bash + +echo "-====================================-" +echo "Echo automated dependency X clean script" +echo "-====================================-" + +if [ "$1" = "?" ] ; then + echo "$0 [library]" + echo "" + echo "If you specify a 'library' then only that library is removed." + echo "" + echo "-====================================-" + exit 1; +fi + +ONLY_LIB=$1 + +if [ "$ONLY_LIB" = "" ] ; then + # Clean all + echo "Removing X folder" + rm -R "X" + echo "Creating new X folder" + mkdir "X" +else + # Clean one + echo "Removing X/$ONLY_LIB" + rm -R "X/$ONLY_LIB" + echo "Removing X/$ONLY_LIB.tar.gz" + rm -R "X/$ONLY_LIB.tar.gz" +fi +echo "Done"