summaryrefslogtreecommitdiffstats
path: root/windows/install_dll.BAT
diff options
context:
space:
mode:
authorScott Wegner <swegner@hdfgroup.org>2007-09-10 19:14:08 (GMT)
committerScott Wegner <swegner@hdfgroup.org>2007-09-10 19:14:08 (GMT)
commit43bb1ba8e53c3eb23448baba68485222514ab992 (patch)
treee32be74f0faad61cb3c3b29ead9849be5dc59a4d /windows/install_dll.BAT
parent33efca34cb30bcf7e17f6e3aa580233bd58a0075 (diff)
downloadhdf5-43bb1ba8e53c3eb23448baba68485222514ab992.zip
hdf5-43bb1ba8e53c3eb23448baba68485222514ab992.tar.gz
hdf5-43bb1ba8e53c3eb23448baba68485222514ab992.tar.bz2
[svn-r14138]
Diffstat (limited to 'windows/install_dll.BAT')
-rwxr-xr-xwindows/install_dll.BAT114
1 files changed, 84 insertions, 30 deletions
diff --git a/windows/install_dll.BAT b/windows/install_dll.BAT
index de46271..8a133c3 100755
--- a/windows/install_dll.BAT
+++ b/windows/install_dll.BAT
@@ -1,34 +1,88 @@
-@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.
+@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 helphdfgroup.org.
+rem
+rem
+rem File name: install_dll.bat
+rem This batch file is used to copy ALL HDF5 DLLs into system folder.
+rem By Xuan Bai
+rem Created: Aug. 12, 2004
+rem Last Scott Wegner, 9/10/07
+setlocal enabledelayedexpansion
+pushd %~dp0
-@rem File name: install_dll.bat
-@rem This batch file is used to copy HDF5 c library DLLs into system folder.
-@rem By Xuan Bai
-@rem Created: Aug. 12, 2004
-@rem Last Updated: Aug. 16, 2004
+set install_dir=%systemroot%\system
-@ ECHO OFF
-copy proj\hdf5dll\debug\hdf5ddll.dll %SystemRoot%\system >temp.txt
-copy proj\hdf5dll\release\hdf5dll.dll %SystemRoot%\system >temp.txt
+goto :main
+
+rem This function actally copies the DLL over, and prints a status message
+rem Expected parameters:
+rem %1 - name of DLL to copy
+:copy_dll
+
+ if exist %1 (
+ echo.Installing %~nx1
+ copy /y %1 %install_dir% > nul
+ )
+
+ exit /b
+
+
+rem Add the DLLS to be copied here.
+:main
+
+ rem HDF5 Library
+ call :copy_dll proj\hdf5dll\debug\hdf5ddll.dll
+ call :copy_dll proj\hdf5dll\release\hdf5dll.dll
+ rem We need this conditional because vs6 uses libtestD rather than libtestdll,
+ rem Remove later when we fix the VS6 project name.
+ if exist test\libtestdll\debug\libtestddll.dll (
+ call :copy_dll test\libtestdll\debug\libtestddll.dll
+ call :copy_dll test\libtestdll\release\libtestdll.dll
+ ) else (
+ call :copy_dll test\libtestD\debug\libtestDd.dll
+ call :copy_dll test\libtestD\release\libtestD.dll
+ )
+
+ rem C++
+ call :copy_dll proj\hdf5_cppdll\debug\hdf5_cppddll.dll
+ call :copy_dll proj\hdf5_cppdll\release\hdf5_cppdll.dll
+
+ rem Fortran
+ call :copy_dll proj\hdf5_f90cstubdll\debug\hdf5_f90cstubddll.dll
+ call :copy_dll proj\hdf5_f90cstubdll\release\hdf5_f90cstubdll.dll
+ call :copy_dll proj\hdf5_fortrandll\debug\hdf5_fortranddll.dll
+ call :copy_dll proj\hdf5_fortrandll\release\hdf5_fortrandll.dll
+ call :copy_dll fortran\test\libtest_cstubdll\debug\libtest_cstubddll.dll
+ call :copy_dll fortran\test\libtest_cstubdll\release\libtest_cstubdll.dll
+ call :copy_dll fortran\test\libtest_fortrandll\debug\libtest_fortranddll.dll
+ call :copy_dll fortran\test\libtest_fortrandll\release\libtest_fortrandll.dll
+
+ rem HL
+ call :copy_dll proj\hdf5_hldll\Debug\hdf5_hlddll.dll
+ call :copy_dll proj\hdf5_hldll\Release\hdf5_hldll.dll
+
+ rem HL C++
+ call :copy_dll proj\hdf5_hl_cppdll\Release\hdf5_hl_cppdll.dll
+ call :copy_dll proj\hdf5_hl_cppdll\Debug\hdf5_hl_cppddll.dll
+
+ rem HL Fortran
+ call :copy_dll proj\hdf5_hl_fortrandll\Debug\hdf5_hl_fortranddll.dll
+ call :copy_dll proj\hdf5_hl_f90cstubdll\Debug\hdf5_hl_f90cstubddll.dll
+ call :copy_dll proj\hdf5_hl_fortrandll\Release\hdf5_hl_fortrandll.dll
+ call :copy_dll proj\hdf5_hl_f90cstubdll\Release\hdf5_hl_f90cstubdll.dll
+
+ popd
+ endlocal & exit /b
-rem We need this conditional because vs6 uses libtestD rather than libtestdll,
-rem Remove later when we fix the VS6 project name.
-if exist copy test\libtestdll\debug\libtestddll.dll (
- copy test\libtestdll\debug\libtestddll.dll %SystemRoot%\system >temp.txt
- copy test\libtestdll\release\libtestdll.dll %SystemRoot%\system >temp.txt
-) else (
- copy test\libtestD\debug\libtestDd.dll %SystemRoot%\system >temp.txt
- copy test\libtestD\release\libtestD.dll %SystemRoot%\system >temp.txt
-)
-del temp.txt