mirror of
https://github.com/fhgwright/SCSI2SD.git
synced 2024-12-31 23:31:20 +00:00
33 lines
654 B
Bash
Executable File
33 lines
654 B
Bash
Executable File
#!/bin/sh
|
|
|
|
case `uname -s` in
|
|
Linux)
|
|
# Builds all of the utilities (not firmware) under Linux.
|
|
# Requires mingw installed to cross-compile Windows targets.
|
|
|
|
(cd scsi2sd-util && ./build.sh)
|
|
|
|
if [ $? -eq 0 ]; then
|
|
mkdir -p build/linux
|
|
mkdir -p build/windows/64bit
|
|
mkdir -p build/windows/32bit
|
|
|
|
cp scsi2sd-util/build/linux/scsi2sd-util build/linux
|
|
|
|
cp scsi2sd-util/build/windows/32bit/scsi2sd-util.exe build/windows/32bit
|
|
|
|
cp scsi2sd-util/build/windows/64bit/scsi2sd-util.exe build/windows/64bit
|
|
fi
|
|
;;
|
|
|
|
Darwin)
|
|
make -C scsi2sd-util
|
|
|
|
if [ $? -eq 0 ]; then
|
|
mkdir -p build/mac
|
|
|
|
cp scsi2sd-util/build/mac/scsi2sd-util build/mac
|
|
fi
|
|
|
|
esac
|