Use more portable syntax for functions.
Этот коммит содержится в:
родитель
22d0061e4d
Коммит
bc89c5fb10
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
function one_test () {
|
one_test() {
|
||||||
"$@" >/dev/null 2>doctest.err
|
"$@" >/dev/null 2>doctest.err
|
||||||
if test -s doctest.err; then
|
if test -s doctest.err; then
|
||||||
echo "ERROR messages follow:" 2>&1
|
echo "ERROR messages follow:" 2>&1
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
|
|
||||||
# $1 - file to upload, $2 - shell mask to erase
|
# $1 - file to upload, $2 - shell mask to erase
|
||||||
function upload() {
|
upload() {
|
||||||
echo "Uploading $1 to $SITE"
|
echo "Uploading $1 to $SITE"
|
||||||
name="`basename $1`"
|
name="`basename $1`"
|
||||||
scp "$1" "$SITE:$DIR/.in.$name"
|
scp "$1" "$SITE:$DIR/.in.$name"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
function distcheck () {
|
distcheck() {
|
||||||
id="$1"
|
id="$1"
|
||||||
shift
|
shift
|
||||||
make distcheck MSGMERGE="msgmerge -q" "$@" >test-$id.out 2>test-$id.err
|
make distcheck MSGMERGE="msgmerge -q" "$@" >test-$id.out 2>test-$id.err
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user