2014-07-20 07:01:22 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
case `uname -s` in
|
|
|
|
Linux)
|
|
|
|
# Builds all of the utilities (not firmware) under Linux.
|
|
|
|
# Requires mingw installed to cross-compile Windows targets.
|
|
|
|
|
2015-02-01 09:13:33 +00:00
|
|
|
(cd scsi2sd-util && ./build.sh)
|
2014-07-20 07:01:22 +00:00
|
|
|
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
mkdir -p build/linux
|
|
|
|
mkdir -p build/windows/64bit
|
|
|
|
mkdir -p build/windows/32bit
|
|
|
|
|
2014-12-05 03:17:06 +00:00
|
|
|
cp scsi2sd-util/build/linux/scsi2sd-util build/linux
|
2014-07-20 07:01:22 +00:00
|
|
|
|
2014-12-05 03:17:06 +00:00
|
|
|
cp scsi2sd-util/build/windows/32bit/scsi2sd-util.exe build/windows/32bit
|
2014-07-20 07:01:22 +00:00
|
|
|
|
2014-12-05 03:17:06 +00:00
|
|
|
cp scsi2sd-util/build/windows/64bit/scsi2sd-util.exe build/windows/64bit
|
2014-07-20 07:01:22 +00:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
|
|
|
Darwin)
|
2015-02-01 09:13:33 +00:00
|
|
|
make -C scsi2sd-util
|
2014-07-20 07:01:22 +00:00
|
|
|
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
mkdir -p build/mac
|
|
|
|
|
2014-12-05 03:17:06 +00:00
|
|
|
cp scsi2sd-util/build/mac/scsi2sd-util build/mac
|
2014-07-20 07:01:22 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
esac
|