summaryrefslogtreecommitdiff
path: root/buildtools/gen-pmdinfo-cfile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/gen-pmdinfo-cfile.sh')
-rwxr-xr-xbuildtools/gen-pmdinfo-cfile.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/buildtools/gen-pmdinfo-cfile.sh b/buildtools/gen-pmdinfo-cfile.sh
index 565e089..0b6dc2c 100755
--- a/buildtools/gen-pmdinfo-cfile.sh
+++ b/buildtools/gen-pmdinfo-cfile.sh
@@ -6,7 +6,8 @@ arfile=$1
output=$2
pmdinfogen=$3
-tmp_o=${output%.c.pmd.c}.tmp.o
-
-ar p $arfile > $tmp_o && \
- $pmdinfogen $tmp_o $output
+echo > $output
+for ofile in `ar t $arfile` ; do
+ ar p $arfile $ofile | $pmdinfogen - - >> $output 2> /dev/null
+done
+exit 0