Skip to content

Commit

Permalink
Partial revamp of scripts/crosscompile
Browse files Browse the repository at this point in the history
  • Loading branch information
nicowilliams committed Jun 18, 2014
1 parent 8725d9f commit 5d9d1b1
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions scripts/crosscompile
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,21 @@ plat="$1"
[ -z "$plat" ] && exit 1
shift

case "$plat" in
*/*) echo "platform name must not be a path"; exit 1;;
*..*) echo "platform name must not be a path"; exit 1;;
*) plat=$PWD/$plat;;
esac

[ -d "$plat" ] || mkdir "$plat"
rm -rf "$plat/tmp"
mkdir "$plat/tmp"
cd "$plat/tmp"
mkdir install_other
../../../configure \
--prefix="`pwd`/install_other" \
--bindir="`pwd`/.." \
"$@"
make "$jobs" install-binaries
cd ..
../../../configure "$@"
make "$jobs" DESTDIR=$plat install
set -x
for jq in `find . -type f \( -name jq -o -name jq.exe \) -print`; do
cp "$jq" ..
done
rm -rf tmp

0 comments on commit 5d9d1b1

Please sign in to comment.