~launchpad-pqm/launchpad/devel

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
33
#! /bin/sh

if [[ ! "$1" ]]; then
  echo "Usage: launch \"commit message\""
  exit 1
fi

# move into position
cd ~/projects/ubuntu/launchpad

# check for loose files
baz status --lint --untagged-files --strict
if [ $? -gt 0 ]; then
  echo "You have untagged files. Please add and commit before refueling."
  exit 1
fi

# then check if there are unmerged changes
baz diff --quiet
if [ $? -gt 0 ]; then
    echo "You've got changes! Please commit them before refueling"
    exit 1
fi;


# run tests
make check
if [ $? -gt 0 ]; then
  echo "Page tests failed, cannot launch."
  exit 1
fi

/home/mark/projects/ubuntu/arch-pqm/bin/arch-submit-merge "$1" pqm@pqm.ubuntu.com