mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-26 15:29:19 +00:00
Fix Android native build script on Mac
- Darwin/BSD 'wc' utility injects extra whitespace, so strip it out
This commit is contained in:
parent
838bf0496a
commit
1a6c1292f3
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
package_id="org.deadc0de.apple2ix.basic"
|
package_id="org.deadc0de.apple2ix.basic"
|
||||||
apple2_src_path=apple2ix-src
|
apple2_src_path=apple2ix-src
|
||||||
@ -161,12 +161,12 @@ if test "x$do_build" = "x1" -o "x$do_release" = "x1" ; then
|
|||||||
|
|
||||||
# strip to the just the numeric id in the .sym header and verify it makes sense
|
# strip to the just the numeric id in the .sym header and verify it makes sense
|
||||||
sym_id=$(head -1 $SYMFILE | cut -d ' ' -f 4)
|
sym_id=$(head -1 $SYMFILE | cut -d ' ' -f 4)
|
||||||
sym_id_check=$(echo $sym_id | wc -c)
|
sym_id_check=$(echo $sym_id | wc -c | tr -d ' ' )
|
||||||
if test "x$sym_id_check" != "x34" ; then
|
if test "x$sym_id_check" != "x34" ; then
|
||||||
echo "OOPS symbol header not expected size, meat-space intervention needed =P"
|
echo "OOPS symbol header not expected size, meat-space intervention needed =P"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
sym_id_check=$(echo $sym_id | tr -d 'A-Fa-f0-9' | wc -c)
|
sym_id_check=$(echo $sym_id | tr -d 'A-Fa-f0-9' | wc -c | tr -d ' ' )
|
||||||
if test "x$sym_id_check" != "x1" ; then
|
if test "x$sym_id_check" != "x1" ; then
|
||||||
echo "OOPS unexpected characters in symbol header, meat-space intervention needed =P"
|
echo "OOPS unexpected characters in symbol header, meat-space intervention needed =P"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user