aboutsummaryrefslogtreecommitdiffhomepage
path: root/compile.sh
diff options
context:
space:
mode:
authorGravatar Allen Porter <allen.porter@gmail.com>2015-04-21 18:04:28 +0000
committerGravatar Laurent Le Brun <laurentlb@google.com>2015-04-22 12:42:24 +0000
commite93638335955ff8d7e948f2d385319e458ee0ca4 (patch)
tree0f7da3a712955db1421f745fee40f42fc27f4940 /compile.sh
parent9e51f22c522fa8425f4b3ca5d7c488460bd49d22 (diff)
Fix compile.sh for macports
Add a newline to compile.sh so that the archive_dir variable is preserved when building with macports. Without this, we see the following: $ ./compile.sh cp: /include/archive.h: No such file or directory cp: /include/archive_entry.h: No such file or directory -- Change-Id: c03f3ba7070339ad2e9a0373f98135f780484431 MOS_MIGRATED_REVID=91703218
Diffstat (limited to 'compile.sh')
-rwxr-xr-xcompile.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/compile.sh b/compile.sh
index 09d26d405a..d4fcfba1f0 100755
--- a/compile.sh
+++ b/compile.sh
@@ -99,7 +99,8 @@ EOF
elif [[ -e $macports_header ]]; then
# For use with Macports.
- archive_dir=$(dirname $(dirname $macports_header)) rm -f fromhost/*.[ah]
+ archive_dir=$(dirname $(dirname $macports_header))
+ rm -f fromhost/*.[ah]
touch fromhost/empty.c
cp "${archive_dir}"/include/{archive.h,archive_entry.h} fromhost/
cp "${archive_dir}"/lib/{libarchive,liblzo2,liblzma,libcharset,libbz2,libxml2,libz,libiconv}.a \