annotate contrib/installer/bin/MXD2map-Shell.bat @ 346:ab4e4c4b83c9

Add Install_Linux.txt with all my notes from the installtion this file should be cleaned for publishing
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 16 Nov 2012 17:02:07 +0100
parents 5e7e6d99f997
children
rev   line source
264
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
1 @echo off
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
2 if "%1" == "setenv" goto setenv
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
3
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
4 %comspec% /k MXD2map-Shell.bat setenv %1
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
5 goto exit
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
6
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
7 :setenv
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
8 @echo Setting environment for using MXD2map based on gisinternals.com windows builds.
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
9 @echo See http://mxd2map.org and http://gisinternals.com/sdk/ for details.
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
10
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
11 if "%2"=="hideoci" goto hideoci
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
12
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
13 set ocipath=0
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
14 set _path="%PATH:;=" "%"
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
15 for %%p in (%_path%) do if not "%%~p"=="" if exist %%~p\oci.dll set ocipath=1
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
16
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
17 if "%ocipath%"=="0" goto hideoci
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
18 @echo WARNING: If you encounter problems with missing oci libraries then type:
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
19 @echo MXD2mapShell hideoci
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
20 goto setenv2
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
21
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
22 :hideoci
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
23 @echo Hiding the OCI plugin library.
324
5e7e6d99f997 Make mapserver install location version independent
Andre Heinecke <aheinecke@intevation.de>
parents: 264
diff changeset
24 if not exist %CD%\mapserver\bin\gdal\plugins-optional mkdir %CD%\mapserver\bin\gdal\plugins-optional
5e7e6d99f997 Make mapserver install location version independent
Andre Heinecke <aheinecke@intevation.de>
parents: 264
diff changeset
25 if exist %CD%\mapserver\bin\gdal\plugins\ogr_OCI.dll move %CD%\mapserver\bin\gdal\plugins\ogr_OCI.dll %CD%\mapserver\bin\gdal\plugins-optional\ogr_OCI.dll
5e7e6d99f997 Make mapserver install location version independent
Andre Heinecke <aheinecke@intevation.de>
parents: 264
diff changeset
26 if exist %CD%\mapserver\bin\gdal\plugins\gdal_GEOR.dll move %CD%\mapserver\bin\gdal\plugins\gdal_GEOR.dll %CD%\mapserver\bin\gdal\plugins-optional\gdal_GEOR.dll
264
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
27
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
28 REM SEE Details about the installation of arcobjects.jar!!
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
29 REM http://forums.arcgis.com/threads/17398-Unable-to-initialize-ArcObjects-environment-%28Java-API%29
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
30 REM http://forums.arcgis.com/threads/12833-ArcGIS-Server-initialize-license-%28Java-version%29
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
31 REM SEE Details about the installation of arcobjects.jar!!
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
32 :setenv2
324
5e7e6d99f997 Make mapserver install location version independent
Andre Heinecke <aheinecke@intevation.de>
parents: 264
diff changeset
33 SET PATH=C:\Program Files\ArcGIS\DeveloperKit10.0\java\jre\bin;C:\Program Files\Java\jdk1.6.0_26\bin;C:\Program Files\ArcGIS\Desktop10.0\bin;C:\Program Files\ArcGIS\Desktop10.0\java\lib;C:\Program Files\ArcGIS\DeveloperKit10.0\java\tools\ant\bin;%CD%\mapserver\bin;%CD%\mapserver\bin\gdal\python\osgeo;%CD%\mapserver\bin\proj\apps;%CD%\mapserver\bin\gdal\apps;%CD%\mapserver\bin\ms\apps;%CD%\mapserver\bin\gdal\csharp;%CD%\mapserver\bin\ms\csharp;%CD%\mapserver\bin\curl;%CD%\mapserver\bin\ms\java;%PATH%
5e7e6d99f997 Make mapserver install location version independent
Andre Heinecke <aheinecke@intevation.de>
parents: 264
diff changeset
34 SET GDAL_DATA=%CD%\mapserver\bin\gdal-data
5e7e6d99f997 Make mapserver install location version independent
Andre Heinecke <aheinecke@intevation.de>
parents: 264
diff changeset
35 SET GDAL_DRIVER_PATH=%CD%\mapserver\bin\gdal\plugins
5e7e6d99f997 Make mapserver install location version independent
Andre Heinecke <aheinecke@intevation.de>
parents: 264
diff changeset
36 SET PYTHONPATH=%CD%\mapserver\bin\gdal\python\osgeo
264
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
37 SET PROJ_LIB=%CD%\bin\proj\SHARE
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
38 SET CURL_CA_BUNDLE=C:\ms4w\Apache\conf\ca-bundle\cacert.pem
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
39 SET JAVA_HOME=C:\Program Files\Java\jdk1.6.0_26
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
40 :exit
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)