Commit e0a65da0 authored by GAUGRY Thierry's avatar GAUGRY Thierry

Remove unused scripts

parent 32b1cb51
#!/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
#!/bin/bash
wc=`which wc`
common_base_search=".. ( -name dist -o -name dependencies -o -name local-tmp ) -prune -o -print"
echo collecting .dox files ... && dox___files=`find $common_base_search | grep ".*\.dox$"`
echo collecting .dox-part files ... && doxp__files=`find $common_base_search | grep ".*\.dox-part$"`
echo collecting .cmake files ... && cmake_files=`find $common_base_search | grep ".*\.cmake$"`
echo collecting .glade files ... && glade_files=`find $common_base_search | grep ".*\.glade$"`
echo counting lines in .dox .cmake .glade ...
$wc -l $doxp__files $dox___files $cmake_files $glade_files
echo collecting .h files ... && h_____files=`find $common_base_search | grep ".*\.h$"`
echo collecting .c files ... && c_____files=`find $common_base_search | grep ".*\.c$"`
echo collecting .hpp files ... && hpp___files=`find $common_base_search | grep ".*\.hpp$"`
echo collecting .cpp files ... && cpp___files=`find $common_base_search | grep ".*\.cpp$"`
echo collecting .inl files ... && inl___files=`find $common_base_search | grep ".*\.inl$"`
echo counting lines in .c .h .hpp .cpp .inl ...
$wc -l $h_____files $c_____files $hpp___files $cpp___files $inl___files
#!/bin/bash
./openvibe-acquisition-server.sh $*
./openvibe-designer.sh $*
./openvibe-id-generator.sh $*
./openvibe-plugin-inspector.sh $*
./openvibe-skeleton-generator.sh $*
./openvibe-vr-demo-spaceship.sh $*
./openvibe-vrpn-simulator.sh $*
@echo off
REM this script just deletes all the resulting build folders.
REM You should do make clean manually in VS or make if that is what you want.
SET ARGFOUND=0
SET CLEAR_DIST=0
SET CLEAR_DEPENDENCIES=0
SET CLEAR_ARTIFACTS=0
:loop
if "%~1" NEQ "" (
IF /i "%~1"=="--all" (
SET ARGFOUND=1
SET CLEAR_DIST=1
SET CLEAR_DEPENDENCIES=1
SET CLEAR_ARTIFACTS=1
goto found:
)
IF /i "%~1"=="--local-tmp" (
SET ARGFOUND=1
SET CLEAR_ARTIFACTS=1
goto found:
)
IF /i "%~1"=="--dist" (
SET ARGFOUND=1
SET CLEAR_DIST=1
goto found:
)
IF /i "%~1"=="--dependencies" (
SET ARGFOUND=1
SET CLEAR_DEPENDENCIES=1
goto found:
)
:found
SHIFT
goto loop:
)
if "%ARGFOUND%" == "0" (
echo Usage: win32-clean.bat [--all --local-tmp --dist --dependencies]
exit /B
)
if "%CLEAR_DIST%" == "1" (
echo Deleting
rmdir /S ..\dist
)
if "%CLEAR_ARTIFACTS%" == "1" (
echo Deleting
rmdir /S ..\local-tmp
)
if "%CLEAR_DEPENDENCIES%" == "1" (
echo Deleting
rmdir /S ..\dependencies
)
@echo off
call "win32-build.cmd" --vsproj %*
\ No newline at end of file
@echo off
setlocal EnableDelayedExpansion
setlocal enableextensions
SET InitEnvScript="win32-init_env_command.cmd"
call "!InitEnvScript!"
REM needed for debugging in VS ...
SET "OV_PATH_ROOT=%CD%\..\dist"
SET "OV_PATH_BIN=%OV_PATH_ROOT%\bin"
SET "OV_PATH_DATA=%OV_PATH_ROOT%\share\openvibe"
SET "OV_PATH_LIB=%OV_PATH_ROOT%\bin"
SET "PATH=%OV_PATH_ROOT%\bin;%PATH%"
REM Choose Visual Studio
REM Try the non-free version first ...
IF EXIST "%VSINSTALLDIR%\Common7\IDE\devenv.exe" (
"%VSINSTALLDIR%\Common7\IDE\devenv.exe" ..\local-tmp\visual\OpenViBE.sln
goto terminate
)
REM VS2012 Express
IF EXIST "%VSINSTALLDIR%\Common7\IDE\WDExpress.exe" (
"%VSINSTALLDIR%\Common7\IDE\WDExpress.exe" ..\local-tmp\visual\OpenViBE.sln
goto terminate
)
REM Default, e.g. 2010 Express
"%VSINSTALLDIR%\Common7\IDE\VCExpress.exe" ..\local-tmp\visual\OpenViBE.sln
:terminate
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