Remove DOS/Windows path shenanigans from Unix script utilities

This commit is contained in:
Michaelangel007 2016-08-25 08:19:29 -07:00
parent dbd872ad43
commit 40b4ea1a34
6 changed files with 63 additions and 11 deletions

View File

@ -7,8 +7,8 @@
# MAGICK="c:/IM/convert"
# IDENTIFY="c:/IM/identify"
# for ImageMagick version 7 use the following
MAGICK="c:/IM/magick"
IDENTIFY="c:/IM/magick identify"
#MAGICK="c:/IM/magick"
#IDENTIFY="c:/IM/magick identify"
# For most modern Linux distributions, all ImageMagick binaries are located in: /usr/bin/ (see below)
# for ImageMagick version 6.9 use the following
@ -17,11 +17,23 @@ IDENTIFY="c:/IM/magick identify"
# for ImageMagick version 7 use the following
# MAGICK="/usr/bin/magick"
# IDENTIFY="/usr/bin/magick identify"
MAGICK=`which magick`
IDENTIFY=`which magick` identify
if [ ! -z "${MAGICK}" ]; then
echo "ERROR: Image Magick isn't installed."
exit 1
fi
# set path to A2B converter below
A2B="C:/SHR/A2B2016/a2b"
#A2B="C:/SHR/A2B2016/a2b"
# For most modern Linux distributions, consider locating A2B in: /usr/bin/ (see below)
# A2B="/usr/bin/a2b"
A2B="/usr/local/bin/a2b"
if [ ! -z "${A2B}" ]; then
echo "ERROR: Couldn't find path to 'a2b'"
exit 1
fi
# default usage
method="a43s"

View File

@ -2,9 +2,15 @@
# cvt.sh - creates 6 variations of 320 x 200 SHR files using A2B and external segmented palettes
# set path to A2B converter below
A2B="F:/SHR/A2B2015/a2b"
#A2B="F:/SHR/A2B2015/a2b"
# For most modern Linux distributions, consider locating A2B in: /usr/bin/ (see below)
# A2B="/usr/bin/a2b"
A2B="/usr/local/bin/a2b"
if [ ! -z "${A2B}" ]; then
echo "ERROR: Couldn't find path to 'a2b'"
exit 1
fi
if [ ! -e SH30709 ]; then
mkdir SH30709

View File

@ -5,13 +5,19 @@
# for ImageMagick version 6.9 use the following
# MAGICK="c:/IM/convert"
# for ImageMagick version 7 use the following
MAGICK="c:/IM/magick"
#MAGICK="c:/IM/magick"
# For most modern Linux distributions, all ImageMagick binaries are located in: /usr/bin/ (see below)
# for ImageMagick version 6.9 use the following
# MAGICK="/usr/bin/convert"
# for ImageMagick version 7 use the following
# MAGICK="/usr/bin/magick"
MAGICK=`which magick`
if [ ! -z "${MAGICK}" ]; then
echo "ERROR: Image Magick isn't installed."
exit 1
fi
if [ ! -e BMP320 ]; then
mkdir BMP320

View File

@ -9,12 +9,19 @@
# for ImageMagick version 6.9 use ImageMagick's convert utility
# MAGICK="C:/IM/convert"
# for ImageMagick version 7 use the following
MAGICK="C:/IM/magick"
#MAGICK="C:/IM/magick"
# For most modern Linux distributions, all ImageMagick binaries are located in: /usr/bin/ (see below)
# for ImageMagick version 6.9
# MAGICK="/usr/bin/convert"
# for ImageMagick version 7
# MAGICK="/usr/bin/magick"
MAGICK=`which magick`
if [ ! -z "${MAGICK}" ]; then
echo "ERROR: Image Magick isn't installed."
exit 1
fi
cd SH30709raw
if [ ! -e png ]; then

View File

@ -7,8 +7,8 @@
# MAGICK="c:/IM/convert"
# IDENTIFY="c:/IM/identify"
# for ImageMagick version 7 use the following
MAGICK="c:/IM/magick"
IDENTIFY="c:/IM/magick identify"
#MAGICK="c:/IM/magick"
#IDENTIFY="c:/IM/magick identify"
# For most modern Linux distributions, all ImageMagick binaries are located in: /usr/bin/ (see below)
# for ImageMagick version 6.9 use the following
@ -17,11 +17,24 @@ IDENTIFY="c:/IM/magick identify"
# for ImageMagick version 7 use the following
# MAGICK="/usr/bin/magick"
# IDENTIFY="/usr/bin/magick identify"
MAGICK=`which magick`
IDENTIFY=`which magick` identify
if [ ! -z "${MAGICK}" ]; then
echo "ERROR: Image Magick isn't installed."
exit 1
fi
# set path to A2B converter below
A2B="C:/SHR/A2B2016/a2b"
#A2B="C:/SHR/A2B2016/a2b"
# For most modern Linux distributions, consider locating A2B in: /usr/bin/ (see below)
# A2B="/usr/bin/a2b"
A2B="/usr/local/bin/a2b"
if [ ! -z "${A2B}" ]; then
echo "ERROR: Couldn't find path to 'a2b'"
exit 1
fi
# default usage
method="p43s"

View File

@ -5,12 +5,20 @@
# for ImageMagick version 6.9 use ImageMagick's convert utility
# MAGICK="C:/IM/convert"
# for ImageMagick version 7 use the following
MAGICK="C:/IM/magick"
#MAGICK="C:/IM/magick"
# For most modern Linux distributions, all ImageMagick binaries are located in: /usr/bin/ (see below)
# for ImageMagick version 6.9
# MAGICK="/usr/bin/convert"
# for ImageMagick version 7
# MAGICK="/usr/bin/magick"
MAGICK=`which magick`
IDENTIFY=`which magick` identify
if [ ! -z "${MAGICK}" ]; then
echo "ERROR: Image Magick isn't installed."
exit 1
fi
# create directory structure for 16 color image segments
if [ ! -e sh0pcx ]; then