Rev | Line | |
---|
[732] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
| 3 | BUILD_CMD=build
|
---|
| 4 |
|
---|
| 5 | if [ $# -eq 1 ]; then
|
---|
| 6 | # Datei mit den Variablen fuer den build-Prozess einlesen
|
---|
| 7 | if [ -r $1 ]; then
|
---|
| 8 | . $1
|
---|
| 9 | [ -n "$BUILD_ROOT" ] && export BUILD_ROOT
|
---|
| 10 | [ -n "$BUILD_DIST" ] && export BUILD_DIST
|
---|
| 11 | [ -n "$BUILD_RPMS" ] && export BUILD_RPMS
|
---|
| 12 | [ -n "$BUILD_PLACE" ] && [ -d $BUILD_PLACE ] && cd $BUILD_PLACE
|
---|
| 13 | if [ -n "$EXTRA_RPMS" ]; then
|
---|
| 14 | $BUILD_CMD $BUILD_MODE -X "$EXTRA_RPMS"
|
---|
| 15 | else
|
---|
| 16 | $BUILD_CMD $BUILD_MODE
|
---|
| 17 | fi
|
---|
| 18 | else
|
---|
| 19 | echo "File $1 not readable"
|
---|
[734] | 20 | exit 3
|
---|
[732] | 21 | fi
|
---|
| 22 | else
|
---|
| 23 | echo "usage: `basename $0` <file for build-definitions>"
|
---|
[734] | 24 | exit 2
|
---|
[732] | 25 | fi
|
---|
| 26 |
|
---|
| 27 | # vim: sw=4 ts=4 noautoindent
|
---|
Note:
See
TracBrowser
for help on using the repository browser.