Mentions légales du service

Skip to content
Snippets Groups Projects

Remove unused scripts

Merged GAUGRY Thierry requested to merge wip-thga-remove-unused-script into wip-all-openvibe20-base
6 files
+ 0
192
Compare changes
  • Side-by-side
  • Inline
Files
6
+ 0
66
#!/bin/bash
OV_DIST=../dist
OV_LOCALTMP=../local-tmp
OV_DEP=../../dependencies
if [ `basename $PWD` != "scripts" ] ; then
echo This only works when run in the \"scripts\" of the Openvibe source tree. Exiting.
exit 1
fi
for optName in $* ; do
if [ $optName == "--all" ]; then
# With full, we delete all artifacts. Even non-native dependencies.
echo Deleting $OV_DIST ...
rm -R $OV_DIST
echo Deleting $OV_LOCALTMP ...
rm -R $OV_LOCALTMP
echo Deleting $OV_DEP ...
rm -R $OV_DEP
exit
elif [ $optName == "--local-tmp" ]; then
# Delete files created by compiler as well as by cmake
echo Deleting $OV_LOCALTMP ...
rm -R $OV_LOCALTMP
elif [ $optName == "--dist" ]; then
# Delete the installation folder
echo Deleting $OV_DIST ...
rm -R $OV_DIST
elif [ $optName == "--dependencies" ]; then
# Delete non-native software dependencies
echo Deleting $OV_DEP ...
rm -R $OV_DEP
else
echo Usage: $0 [ --local-tmp --dist --dependencies --all ]
exit
fi
done
# The default is to just clean what was created by the compiler
if [ $[$BASH_ARGC] -eq 0 ] ; then
echo No command-line switches given, doing \"make clean\" under ../local-tmp/
dirDebug="$OV_LOCALTMP/linux-Debug"
dirRelease="$OV_LOCALTMP/linux-Release"
dirRelWithDebInfo="$OV_LOCALTMP/linux-RelWithDebInfo"
if [ -e "$dirDebug" ]; then
pushd "$dirDebug" 1> /dev/null
make clean
popd 1> /dev/null
fi
if [ -e "$dirRelease" ]; then
pushd "$dirRelease" 1> /dev/null
make clean
popd 1> /dev/null
fi
if [ -e "$dirRelWithDebInfo" ]; then
pushd "$dirRelWithDebInfo" 1> /dev/null
make clean
popd 1> /dev/null
fi
fi
Loading