File: run.sh

package info (click to toggle)
obs-build 20141024-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,528 kB
  • ctags: 280
  • sloc: perl: 7,019; sh: 2,357; ansic: 255; makefile: 92
file content (32 lines) | stat: -rwxr-xr-x 475 bytes parent folder | download | duplicates (4)
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
#!/bin/bash

function fail
{
    echo "$1: FAIL"
    exit 1
}
function run
{
    rm -rf out
    mkdir out
    ERROR=0
    PATH=..:$PATH ../debtransform $1 $1/$2 out || ERROR=1
    if [ "$ERROR" != "$3" ]; then
	fail $1
    fi
    echo "$1: OK"
    if [ "$ERROR" = 0 ]; then
	for a in out/*
	do
	    NAME="`basename "$a"`"
	    case $NAME in
		*.dsc)
		    debdiff $4/$NAME out/$NAME
		    ;;
	    esac
	done
    fi
}

run 1 grandorgue.dsc 0 1-out
run 2 grandorgue.dsc 0 2-out