File: module.cmd

package info (click to toggle)
modules 5.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,996 kB
  • sloc: exp: 79,667; sh: 6,142; tcl: 5,895; makefile: 1,478; ansic: 474; python: 272; csh: 202; perl: 47; ruby: 44; lisp: 13
file content (13 lines) | stat: -rw-r--r-- 331 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
@echo off

:: initialize Modules if not already done
if not defined MODULES_CMD (
   call "%~dp0..\init\cmd.cmd"
)

set OUTPUT=
:: execute each output line in cmd shell
for /f "tokens=*" %%I in ('call tclsh "%MODULES_CMD%" cmd %*') do %%I

:: quit with error code produced by modulecmd
if %errorlevel% NEQ 0 (exit /b %errorlevel%)