1
1

Use more portable syntax for functions.

Этот коммит содержится в:
Pavel Roskin 2003-11-20 22:07:06 +00:00
родитель 22d0061e4d
Коммит bc89c5fb10
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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