Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set "args=--print-compilation-commands"
- if not "%~1"=="" (
- set "copy=%~1"
- set "done=0"
- if "!copy:~0,2!"=="-l" (
- set "libs=!libs! !copy!"
- set "done=1"
- )
- if "!done!"=="0" (
- if "!copy:~0,2!"=="-D" (
- set "libs=!libs! !copy!"
- ) else (
- set "args=!args! !copy!"
- )
- )
- )
- :commandlineloop
- shift /1
- if not "%~1"=="" (
- set "copy=%~1"
- set "done=0"
- if "!copy:~0,2!"=="-l" (
- set "libs=!libs! !copy!"
- set "done=1"
- )
- if "!done!"=="0" (
- if "!copy:~0,2!"=="-D" (
- set "libs=!libs! !copy!"
- ) else (
- set "args=!args! !copy!"
- )
- )
- goto :commandlineloop
- )
- echo libs: %libs% args: %args%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement