summaryrefslogtreecommitdiffstats
path: root/windows/install_hlcexamples.BAT
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2008-04-30 19:23:26 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2008-04-30 19:23:26 (GMT)
commit5773fd34bc5adf59b4530d95ac9f0c0585902803 (patch)
tree456ad239799382e1f083fb7fc74399e43b471912 /windows/install_hlcexamples.BAT
parent0138995d1ce2068db1f790503435a2121132d3ad (diff)
downloadhdf5-5773fd34bc5adf59b4530d95ac9f0c0585902803.zip
hdf5-5773fd34bc5adf59b4530d95ac9f0c0585902803.tar.gz
hdf5-5773fd34bc5adf59b4530d95ac9f0c0585902803.tar.bz2
[svn-r14902] Merged fortran_1_8 branch changes r14505:14901 into the trunk. New fortran wrappers added.
Diffstat (limited to 'windows/install_hlcexamples.BAT')
-rwxr-xr-xwindows/install_hlcexamples.BAT119
1 files changed, 29 insertions, 90 deletions
diff --git a/windows/install_hlcexamples.BAT b/windows/install_hlcexamples.BAT
index 7644ed0..306a340 100755
--- a/windows/install_hlcexamples.BAT
+++ b/windows/install_hlcexamples.BAT
@@ -1,95 +1,34 @@
-@echo OFF
-rem Copyright by The HDF Group.
-rem Copyright by the Board of Trustees of the University of Illinois.
-rem All rights reserved.
-rem
-rem This file is part of HDF5. The full HDF5 copyright notice, including
-rem terms governing use, modification, and redistribution, is contained in
-rem the files COPYING and Copyright.html. COPYING can be found at the root
-rem of the source code distribution tree; Copyright.html can be found at the
-rem root level of an installed copy of the electronic HDF5 document set and
-rem is linked from the top-level documents page. It can also be found at
-rem http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have
-rem access to either file, you may request a copy from help@hdfgroup.org.
+@REM Copyright by The HDF Group.
+@REM Copyright by the Board of Trustees of the University of Illinois.
+@REM All rights reserved.
+@REM
+@REM This file is part of HDF5. The full HDF5 copyright notice, including
+@REM terms governing use, modification, and redistribution, is contained in
+@REM the files COPYING and Copyright.html. COPYING can be found at the root
+@REM of the source code distribution tree; Copyright.html can be found at the
+@REM root level of an installed copy of the electronic HDF5 document set and
+@REM is linked from the top-level documents page. It can also be found at
+@REM http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have
+@REM access to either file, you may request a copy from help@hdfgroup.org.
-rem This batch file is used to install HDF5 High Level C
-rem Examples' executable files.
-rem Written by : Fang GUO
-rem Created on : 07/25/2005
-rem Last Modified: 2/18/2008
+@ECHO OFF
+@:: This batch file is used to install HDF5 High Level C
+@:: Examples' executable files.
+@:: Written by : Fang GUO
+@:: Created on : 07/25/2005
+@:: Last Modified: 03/08/2006
-setlocal enabledelayedexpansion
-pushd %~dp0
+cd hl/examples
-set exdir=hl\examples
-set nerrors=0
-goto main
+mkdir HLCexamplesRELEASE
+mkdir HLCexamplesRELEASEDLL
+mkdir HLCexamplesDEBUG
+mkdir HLCexamplesDEBUGDLL
-rem Simply create the needed directories
-:makedirs
- mkdir %exdir%\HLCexamplesRELEASE
- mkdir %exdir%\HLCexamplesRELEASEDLL
- mkdir %exdir%\HLCexamplesDEBUG
- mkdir %exdir%\HLCexamplesDEBUGDLL
- exit /b
-
-rem This function actally copies the file over, first making sure it exists. If not, we increment nerrors
-rem and print an error message
-rem Expected parameters:
-rem %1 - name of file to copy
-rem %2 - destination to copy to
-:safe_copy
-
- if exist %exdir%\%1 (
- copy /y %exdir%\%1 %exdir%\%2 > nul
- ) else (
- echo.Warning: Cannot find example file: %exdir%\%1
- set /a nerrors=%nerrors%+1
- )
-
- exit /b %nerrors%
-
-
-:main
- if not exist %exdir% (
- echo.Error: Examples directory doesn't exist: %CD%\%exdir%
- set /a nerrors=!nerrors!+1
- goto :end
- )
-
- call :makedirs
-
- rem copy the files
- for %%a in (DEBUG RELEASE) do (
- for %%b in (DLL static) do (
- set ver=%%b
- set ver=!ver:static=!
-
- call :safe_copy ex_ds1!ver!\%%a\ex_ds1!ver!.exe HLCexamples%%a!ver!
-
- for /l %%c in (1,1,2) do (
- call :safe_copy ex_image%%c!ver!\%%a\ex_image%%c!ver!.exe HLCexamples%%a!ver!
- )
-
- for /l %%c in (1,1,3) do (
- call :safe_copy ex_lite%%c!ver!\%%a\ex_lite%%c!ver!.exe HLCexamples%%a!ver!
- )
-
- for /l %%c in (1,1,9) do (
- call :safe_copy ex_table0%%c!ver!\%%a\ex_table0%%c!ver!.exe HLCexamples%%a!ver!
- )
-
- for /l %%c in (10,1,12) do (
- call :safe_copy ex_table%%c!ver!\%%a\ex_table%%c!ver!.exe HLCexamples%%a!ver!
- )
-
- for %%c in (FL VL) do (
- call :safe_copy ptExample%%c!ver!\%%a\ptExample%%c!ver!.exe HLCexamples%%a!ver!
- )
- )
- )
-
-:end
-popd
-endlocal & exit /b %nerrors% \ No newline at end of file
+for %%i in (images lite table ds packet) do (
+copy ex_%%i\debug\ex_%%i.exe HLCexamplesDEBUG\
+copy ex_%%i\release\ex_%%i.exe HLCexamplesRELEASE\
+copy ex_%%idll\debug\ex_%%idll.exe HLCexamplesDEBUGDLL\
+copy ex_%%idll\release\ex_%%idll.exe HLCexamplesRELEASEDLL\
+)