File: cgsystem.bat

package info (click to toggle)
libcgns 2.5.4-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,740 kB
  • ctags: 4,493
  • sloc: ansic: 46,717; fortran: 1,341; sh: 368; makefile: 259
file content (39 lines) | stat: -rw-r--r-- 712 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@echo off
setlocal

set config=0
set help=0
set system=WIN32

:next
if "%1" == "" goto doit
if "%1" == "conf" set config=1
if "%1" == "-conf" set config=1
if "%1" == "configure" set config=1
if "%1" == "-configure" set config=1
if "%1" == "64" set system=WIN64
if "%1" == "-64" set system=WIN64
if "%1" == "64bit" set system=WIN64
if "%1" == "-64bit" set system=WIN64
if "%1" == "help" set help=1
if "%1" == "-help" set help=1
shift
goto next
:doit

if %help% == 0 goto getsys
echo usage: cgsystem [[-]conf[igure]] [[-]64[bit]]
goto done

:getsys
if %config% == 1 goto config
echo %system%
goto done

:config
echo modifying make.system to set SYSTEM=%systen%
echo SYSTEM = %system%> make.system

:done
endlocal