diff options
author | Roy Marples <roy@marples.name> | 2007-09-26 09:16:41 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-09-26 09:16:41 +0000 |
commit | 675d0a94c725e60afa25f7da372148cceedb4d60 (patch) | |
tree | 9011040aaff437c0a11103508f8ec4e505d3c877 /src | |
parent | 5f5302ef64b5248302053937db36ef65d0366707 (diff) |
No need for bash here
Diffstat (limited to 'src')
-rwxr-xr-x | src/test/symbols.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/symbols.sh b/src/test/symbols.sh index 850ab122..9d1138f1 100755 --- a/src/test/symbols.sh +++ b/src/test/symbols.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh top_srcdir=${top_srcdir:-../..} srcdir=${builddir:-..} @@ -6,15 +6,15 @@ top_builddir=${top_srcdir:-../..} builddir=${builddir:-..} export LD_LIBRARY_PATH=${builddir}:${LD_LIBRARY_PATH} +. ${top_srcdir}/sh/functions.sh export PATH=${builddir}:${PATH} -source ${top_srcdir}/sh/functions.sh checkit() { local base=$1 ; shift echo "$@" | tr ' ' '\n' > ${base}.out diff -u ${base}.list ${base}.out eend $? - ((ret+=$?)) + ret=$(($ret + $?)) } ret=0 @@ -60,9 +60,9 @@ readelf -Wr $(grep -l '#include[[:space:]]"librc\.h"' ${builddir}/*.c | sed 's:\ | sort -u \ | egrep -v '^rc_environ_fd$' \ > librc.funcs.hidden.out -syms=$(diff -u librc.funcs.hidden.{list,out} | sed -n '/^+[^+]/s:^+::p') -[[ -z ${syms} ]] +syms=$(diff -u librc.funcs.hidden.list librc.funcs.hidden.out | sed -n '/^+[^+]/s:^+::p') +[ -z "${syms}" ] eend $? "Missing hidden defs:"$'\n'"${syms}" -((ret+=$?)) +ret=$(($ret + $?)) exit ${ret} |