]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authoranthony <anthony@git.imagemagick.org>
Tue, 8 May 2012 00:15:24 +0000 (00:15 +0000)
committeranthony <anthony@git.imagemagick.org>
Tue, 8 May 2012 00:15:24 +0000 (00:15 +0000)
MagickWand/script-token.c

index 036a2c30fd857313fe260292c08c5910626e073a..fe49c71e30088bcb303cd0d83e86ff84125e3227 100644 (file)
 %  script 'launcher' to be used for magick scripts.
 %
 %    #!/bin/sh
-%    #
 %    : echo "This part is run in the shell, but ignored by Magick"
 %    : exec magick -script "$0" "$@"; exit 10
 %    #
 %  DOS script launcher...
 %
 %  Similarly for DOS, any '@' at the start of the line (outside of quotes)
-%  will also be treated as comment. To allow the same DOS script launcher
-%  code
+%  will also be treated as comment. This allow you to create a DOS script
+%  launcher, to turn ".bat" DOS scripts into "magick" scripts.
 %
 %    @echo This line is DOS executed but ignored by Magick
 %    @magick -script %~dpnx0 %*
 %    -read label:"This is a Magick Script!"
 %    -write show: -exit
 %
+% But this can also be used as a shell script launhers
+%
+%    @() { exec magick -script "$@"; }
+%    @ "$0" "$@"; exit
+%    #
+%    # The rest of the file is magick script
+%    -read label:"This is a Magick Script!"
+%    -write show: -exit
+%
 */
 \f
 /*