This commit is contained in:
Cristy
2022-12-04 08:29:19 -05:00
parent 303cb62946
commit 814ba996de
3 changed files with 1778 additions and 16096 deletions
+1718 -16079
View File
File diff suppressed because it is too large Load Diff
Executable
+42
View File
@@ -0,0 +1,42 @@
#!/bin/sh
#
# Copyright © 1999 ImageMagick Studio LLC, a non-profit organization
# dedicated to making software imaging solutions freely available.
#
# You may not use this file except in compliance with the License. You may
# obtain a copy of the License at
#
# https://imagemagick.org/script/license.php
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Convenience script to verify the ImageMagick build before you install. For
# example:
#
# magick.sh magick -size 640x480 gradient:black-yellow gradient.png
top_srcdir='/home/cristy/ImageMagick-7'
top_builddir='/home/cristy/ImageMagick-7'
MAGICK_CODER_MODULE_PATH='/home/cristy/ImageMagick-7/coders'
MAGICK_CONFIGURE_SRC_PATH='/home/cristy/ImageMagick-7/config'
MAGICK_CONFIGURE_BUILD_PATH='/home/cristy/ImageMagick-7/config'
MAGICK_FILTER_MODULE_PATH='/home/cristy/ImageMagick-7/filters'
DIRSEP=':'
PATH="${top_builddir}/utilities:${PATH}"
if test -n "$VERBOSE"; then
printf "$@"
fi
env \
LD_LIBRARY_PATH="${top_builddir}/MagickCore/.libs:${top_builddir}/MagickWand/.libs${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" \
MAGICK_CODER_MODULE_PATH="${MAGICK_CODER_MODULE_PATH}" \
MAGICK_CONFIGURE_PATH="${MAGICK_CONFIGURE_BUILD_PATH}${DIRSEP}${MAGICK_CONFIGURE_SRC_PATH}" \
MAGICK_FILTER_MODULE_PATH="${MAGICK_FILTER_MODULE_PATH}" \
PATH="${PATH}" \
"$@"
+18 -17
View File
@@ -17,15 +17,13 @@
# Written by Bob Friesenhahn, June 2002
#
arg="$1"
escapes=0
if test -n "$2"
then
escapes=4
if test -n "$2"; then
escapes="$2"
fi
if test $escapes -gt 3
then
echo "$0: escape level must in range 0 - 3"
exit 1
if test $escapes -gt 3; then
printf "$0: escape level must in range 0 - 3\n"
exit 1
fi
fi
result=''
length=0
@@ -34,9 +32,9 @@ mount | sed -e 's:\\:/:g' | (
IFS="\n"
while read mount_entry
do
win_mount_path=`echo "$mount_entry" | sed -e 's: .*::g'`
unix_mount_path=`echo "$mount_entry" | sed -e 's:.* on ::;s: type .*::'`
temp=`echo "$arg" | sed -e "s!^$unix_mount_path!$win_mount_path/!"`
win_mount_path=`printf "$mount_entry\n" | sed -e 's: .*::g'`
unix_mount_path=`printf "$mount_entry\n" | sed -e 's:.* on ::;s: type .*::'`
temp=`printf "$arg" | sed -e "s!^$unix_mount_path!$win_mount_path!"`
if test "$temp" != "$arg"
then
candidate="$temp"
@@ -50,21 +48,24 @@ mount | sed -e 's:\\:/:g' | (
done
if test -z "$result"
then
echo "$0: path \"$arg\" is not mounted"
printf "$0: path \"$arg\" is not mounted\n"
exit 1
fi
case $escapes in
case "$escapes" in
0)
echo "$result" | sed -e 's:/:\\:g'
printf "${result}" | sed -e 's:/:\\:g'
;;
1)
echo "$result" | sed -e 's:/:\\\\:g'
printf "${result}" | sed -e 's:/:\\\\:g'
;;
2)
echo "$result" | sed -e 's:/:\\\\\\\\:g'
printf "${result}" | sed -e 's:/:\\\\\\\\:g'
;;
3)
echo "$result" | sed -e 's:/:\\\\\\\\\\\\\\\\:g'
printf "${result}" | sed -e 's:/:\\\\\\\\\\\\\\\\:g'
;;
*)
printf "${result}"
;;
esac
exit 0;