File: b12-update.sh

package info (click to toggle)
tup 0.8-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,076 kB
  • sloc: ansic: 256,651; sh: 19,101; perl: 184; python: 67; lisp: 63; makefile: 56
file content (13 lines) | stat: -rwxr-xr-x 291 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /bin/sh -e

cp ../testTupfile.tup ./Tupfile
for i in `seq 1 $1`; do echo "void foo$i(void) {}" > $i.c; done
seq 1 $1 | sed 's/$/.c/' | xargs touch
echo "int main(void) {}" >> 1.c
tup upd
if nm prog.exe | grep main > /dev/null; then
	:
else
	echo "Main program not built!" 1>&2
	exit 1
fi