source: gs2-extensions/imagemagick/trunk/src/setup.bat

Last change on this file was 28167, checked in by ak19, 9 years ago

Need to export MAGICK_HOME from the setup scripts for gs2build/bin/script/gs_magick.pl to work in tandem with this

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1@echo off
2pushd "%CD%"
3CD /D "%~dp0"
4set GSDLLANG=en
5set extdesc="the ImageMagick extension"
6
7if "%OS%" == "Windows_NT" goto WinNT
8if "%OS%" == "" goto Win95
9if "%GSDLLANG%" == "en" echo Setup failed - your PATH has not been set
10if "%GSDLLANG%" == "es" echo No se pudo realizar la configuraci¢n - no se ha establecido la RUTA.
11if "%GSDLLANG%" == "fr" echo Ech‚c de l'installation - votre variable PATH n'a pas ‚t‚ ajust‚e
12if "%GSDLLANG%" == "ru" echo “áâ ­®¢ª  ­¥ 〠« áì - “’œ ­¥ ¡ë« ãáâ ­®¢«¥­
13goto End
14
15:WinNT
16set GEXTIMAGEMAGICK=%CD%
17set GEXTIMAGEMAGICK_INSTALLED=%GEXTIMAGEMAGICK%\windows
18
19set MAGICK_HOME=%GEXTIMAGEMAGICK_INSTALLED%
20set PATH=%GEXTIMAGEMAGICK_INSTALLED%\bin;%PATH%
21set GS_CP_SET=yes
22goto Success
23
24:Win95
25if "%1" == "SetEnv" goto Win95Env
26REM We'll invoke a second copy of the command processor to make
27REM sure there's enough environment space
28COMMAND /E:2048 /K %0 SetEnv
29goto End
30
31:Win95Env
32set GEXTIMAGEMAGICK=%CD%
33set PATH="%GEXTIMAGEMAGICK_INSTALLED%\bin";"%PATH%"
34set GS_CP_SET=yes
35goto Success
36
37:Success
38
39set fulldir=%~dp0
40
41:: strip off everything up to (and including) ext dir
42set extdir=%fulldir:*ext\=%
43
44:: remove trailing slash
45set extdir=%extdir:\=%
46
47
48if "x%GSDLEXTS%" == "x" (
49 set GSDLEXTS=%extdir%
50) else (
51 set GSDLEXTS=%GSDLEXTS%:%extdir%
52)
53
54echo +Your environment is now setup for %extdesc%
55
56:End
57
58popd
Note: See TracBrowser for help on using the repository browser.