File: antRun

package info (click to toggle)
cocoon 1.8-1
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 12,016 kB
  • ctags: 3,793
  • sloc: xml: 16,682; java: 8,089; sh: 174; makefile: 61
file content (13 lines) | stat: -rw-r--r-- 124 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /bin/sh

# Args: DIR command
cd $1
CMD=$2
shift
shift

if test -f $CMD.sh; then
  CMD="sh $CMD.sh"
fi

echo $CMD $@ | sh