Skip to content

Commit

Permalink
modify configure for 32-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Anime4000 committed Jun 28, 2017
1 parent 64722b1 commit 15eff49
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions configure
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
#!/bin/bash

MAKE32=""

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

for args in "$@"
do
if [ $args == "--make-32bit" ]; then
MAKE32="$args"
fi
done

cd "$DIR"

echo "Checking xz utils"
Expand Down Expand Up @@ -94,22 +85,16 @@ if [ -f "plugin.tar.xz" ]; then
sleep 1
else
echo " Plugin not found, downloading..."
if [ ! -z $MAKE32 ]; then
echo " 32-bit builds"
wget --no-check-certificate https://sourceforge.net/projects/ifme/files/plugin/plugin-basic-x86_2017-06-25.tar.xz -O plugin.tar.xz
if [ $(uname -m | grep '64') ]; then
echo " 64-bit OS"
wget --no-check-certificate https://sourceforge.net/projects/ifme/files/plugin/plugin-basic_2017-06-28_amd64.tar.xz -O plugin.tar.xz
else
echo " 64-bit builds"
wget --no-check-certificate https://sourceforge.net/projects/ifme/files/plugin/plugin-basic-amd64_2017-06-25.tar.xz -O plugin.tar.xz
echo " 32-bit OS"
wget --no-check-certificate https://sourceforge.net/projects/ifme/files/plugin/plugin-basic-2017-06-28_x86.tar.xz -O plugin.tar.xz
cp "$DIR/sources/ffmpeg64_32layer.cmd" "$DIR/ifme/bin/Release"
cp "$DIR/sources/ffmpeg64_32layer.sh" "$DIR/ifme/bin/Release"
fi
fi

if [ $(uname -m | grep '64') ]; then
echo "64-bit OS, noting to do..."
else
echo "32-bit OS, do something..."
cp "$DIR/sources/ffmpeg64_32layer.cmd" "$DIR/ifme/bin/Release"
cp "$DIR/sources/ffmpeg64_32layer.sh" "$DIR/ifme/bin/Release"
fi

echo "Done, now you can make"
exit 0

0 comments on commit 15eff49

Please sign in to comment.