Mentions légales du service

Skip to content
Snippets Groups Projects
Commit c74731ac authored by testcdash Nicolas Bellot's avatar testcdash Nicolas Bellot Committed by hhakim
Browse files

header matlab bat file and delete useless bat file

parent eec19046
Branches
Tags
No related merge requests found
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::: Description: ::::
:::: batch script that will find where matlab is on your computer ::::
:::: ::::
:::: For more information on the FAuST Project, please visit the website ::::
:::: of the project : <http://faust.gforge.inria.fr> ::::
:::: ::::
:::: License: ::::
:::: Copyright (2016): Nicolas Bellot, Adrien Leman, Thomas Gautrais, ::::
:::: Luc Le Magoarou, Remi Gribonval ::::
:::: INRIA Rennes, FRANCE ::::
:::: http://www.inria.fr/ ::::
:::: ::::
:::: The FAuST Toolbox is distributed under the terms of the GNU Affero ::::
:::: General Public License. ::::
:::: This program is free software: you can redistribute it and/or modify ::::
:::: it under the terms of the GNU Affero General Public License as ::::
:::: published by the Free Software Foundation. ::::
:::: ::::
:::: This program is distributed in the hope that it will be useful, but ::::
:::: WITHOUT ANY WARRANTY; without even the implied warranty of ::::
:::: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ::::
:::: See the GNU Affero General Public License for more details. ::::
:::: ::::
:::: You should have received a copy of the GNU Affero General Public ::::
:::: License along with this program. ::::
:::: If not, see <http://www.gnu.org/licenses/>. ::::
:::: ::::
:::: Contacts: ::::
:::: Nicolas Bellot : nicolas.bellot@inria.fr ::::
:::: Adrien Leman : adrien.leman@inria.fr ::::
:::: Thomas Gautrais : thomas.gautrais@inria.fr ::::
:::: Luc Le Magoarou : luc.le-magoarou@inria.fr ::::
:::: Remi Gribonval : remi.gribonval@inria.fr ::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@echo off
set "find_exe=matlab.exe"
......
@echo off
set "find_exe=matlab.exe"
set MATLAB_DIR_TMP=
(for /f "delims=" %%i in ('where %find_exe%') do set MATLAB_DIR_TMP=%%i)>NUL 2>&1
rem echo %MATLAB_DIR_TMP%
setlocal enableDelayedExpansion
set ^"str=%MATLAB_DIR_TMP%"
for /F "delims=" %%a in (^"!str:\bin^=^
!^") do (
set "MATLAB_ROOT_DIR=%%a"
goto :break
)
:break
rem echo "MATLAB" %MATLAB_ROOT_DIR%
echo|set /p=%MATLAB_ROOT_DIR%
@echo on
\ No newline at end of file
@echo off
rem set "find_exe=jgtjio.exe"
set "find_exe=matlab.exe"
setlocal enableDelayedExpansion
(for /f "delims=" %%i in ('where %find_exe%') do set MATLAB_DIR_TMP=%%i)>NUL 2>&1
rem echo %MATLAB_DIR_TMP%
rem set MATLAB_DIR_TMP="fbfbezbf"
rem echo MATLAB : %MATLAB_DIR_TMP%
if "%MATLAB_DIR_TMP%" == "" (
rem echo VIDE
echo|set /p=0
) else (
rem echo PAS VIDE
rem enleve les espaces
set "MATLAB_DIR_TMP=!MATLAB_DIR_TMP: =!"
rem enleve bin
set "MATLAB_DIR_WITHOUT_BIN=!MATLAB_DIR_TMP:\bin\=!"
rem echo MATLAB = !MATLAB_DIR_TMP!
rem echo MATLAB_without BIN = !MATLAB_DIR_WITHOUT_BIN!
if "!MATLAB_DIR_TMP!" == "!MATLAB_DIR_WITHOUT_BIN!" (
echo|set /p=0
) else (
echo|set /p=1
rem echo bin present
)
)
@echo on
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::: Description: ::::
:::: batch file is useful to find the extension of the mexfile used by Matlab::::
:::: This script takes 2 arguments in input : ::::
:::: -1st : the number of the method that will be used ::::
:::: 0 : use the Matlab command compute('arch') ::::
:::: and write the result in a file specified by arg2 ::::
:::: 1 : use the Matlab variable mexext ::::
:::: and write the result in a file specified by arg2 ::::
:::: 2 : use the name of a directory specified in arg2 ::::
:::: which is equal to MATLABROOT ::::
:::: -2nd : depending on the method used ::::
:::: ::::
:::: For more information on the FAuST Project, please visit the website ::::
:::: of the project : <http://faust.gforge.inria.fr> ::::
:::: ::::
:::: License: ::::
:::: Copyright (2016): Nicolas Bellot, Adrien Leman, Thomas Gautrais, ::::
:::: Luc Le Magoarou, Remi Gribonval ::::
:::: INRIA Rennes, FRANCE ::::
:::: http://www.inria.fr/ ::::
:::: ::::
:::: The FAuST Toolbox is distributed under the terms of the GNU Affero ::::
:::: General Public License. ::::
:::: This program is free software: you can redistribute it and/or modify ::::
:::: it under the terms of the GNU Affero General Public License as ::::
:::: published by the Free Software Foundation. ::::
:::: ::::
:::: This program is distributed in the hope that it will be useful, but ::::
:::: WITHOUT ANY WARRANTY; without even the implied warranty of ::::
:::: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ::::
:::: See the GNU Affero General Public License for more details. ::::
:::: ::::
:::: You should have received a copy of the GNU Affero General Public ::::
:::: License along with this program. ::::
:::: If not, see <http://www.gnu.org/licenses/>. ::::
:::: ::::
:::: Contacts: ::::
:::: Nicolas Bellot : nicolas.bellot@inria.fr ::::
:::: Adrien Leman : adrien.leman@inria.fr ::::
:::: Thomas Gautrais : thomas.gautrais@inria.fr ::::
:::: Luc Le Magoarou : luc.le-magoarou@inria.fr ::::
:::: Remi Gribonval : remi.gribonval@inria.fr ::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@echo off
if "%~1"=="" goto end
if "%~2"=="" goto end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment