mirror of
https://github.com/Michaelangel007/apple2gs_shr_converter.git
synced 2024-12-21 11:29:25 +00:00
Remove DOS/Windows path shenanigans from Unix script utilities
This commit is contained in:
parent
dbd872ad43
commit
40b4ea1a34
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user