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