Sto, mio malgrado, nel fantastico mondo del MS Dos (

) e dovrei fare un controllo che il parametro immesso sia "all" OR "jrtplib" per non scrivere 2 volte lo stesso codice (come faccio in questa funzione).
Codice:
rem ##########################
rem # START internal autobuild
:internalAutobuild
if [%param%] EQU [all] (
cd %workingPath%\%debugDir%
echo Building debug of rtp wrapper ...
devenv /build debug RTP_WRAPPER.sln
cd %workingPath%\%releaseDir%
echo Building release of speex and pcm wrapper ...
devenv /build release RTP_WRAPPER.sln
)
if [%param%] EQU [jrtplib] (
cd %workingPath%\%debugDir%
echo Building debug of rtp wrapper ...
devenv /build debug RTP_WRAPPER.sln
cd %workingPath%\%releaseDir%
echo Building release of speex and pcm wrapper ...
devenv /build release RTP_WRAPPER.sln
)
goto :INTERNAL_FUNC_EOF
rem # END internal autobuild
rem ##########################
Come minkia si fa ? non riesco a trovare niente in rete.
Ho trovato
questa soluzione ma è a pagamento
