File: do-build

package info (click to toggle)
gpsd 3.27-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 44,056 kB
  • sloc: ansic: 74,438; python: 16,521; sh: 890; cpp: 848; php: 225; makefile: 197; perl: 111; javascript: 26; xml: 11
file content (19 lines) | stat: -rwxr-xr-x 531 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# This script does a full build and check.  Outputs are saved to files
# BUILD. and CHECK. with the git version appended.  The point is that
# having regression test output from old versions is handy when
# trouble arises.

# This script should be run from the top-level directory.

if [ ! -f gpsd.c ]; then
    echo "do-build: not at top-level of gpsd"
    exit 1
fi

version=`git describe`

scons -c < /dev/null > /dev/null 2>&1
scons $* < /dev/null > BUILD.$version 2>&1
scons check < /dev/null > CHECK.$version 2>&1