Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
fix libffi build.sh shellcheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Feb 22, 2016
1 parent 910bde6 commit fb23667
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions libffi/build.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
./configure --prefix=$PREFIX || exit 1
make || exit 1
make install || exit 1
#!/bin/bash

cd $PREFIX
./configure --prefix="$PREFIX"
make
make install

cd "$PREFIX"
rm -rf share
mv lib/libffi-*/include include

if [ `uname -m` == x86_64 ]; then
if [ "$(uname -m)" == x86_64 ]; then
mv lib64/* lib/
rmdir lib64
fi

# shellcheck disable=SC2016
sed -i s/'includedir=.*'/'includedir=\${exec_prefix}\/include'/g lib/pkgconfig/libffi.pc

0 comments on commit fb23667

Please sign in to comment.