File: run.sh

package info (click to toggle)
obs-build 20190710-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,660 kB
  • sloc: perl: 10,153; sh: 3,084; ansic: 284; makefile: 170
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