Simplify file specs for devel+doc by using File /r.
[yaz-moved-to-github.git] / win / yaz.nsi
index eb42098..9c73245 100644 (file)
@@ -1,6 +1,7 @@
-; $Id: yaz.nsi,v 1.69 2005-06-07 19:31:40 adam Exp $
+; $Id: yaz.nsi,v 1.80 2006-04-20 13:45:20 adam Exp $
 
-!define VERSION "2.1.8"
+!define VERSION "2.1.18"
+!define VS_RUNTIME_LOCATION "c:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin"
 
 !include "MUI.nsh"
 
@@ -83,7 +84,7 @@ Section "YAZ Runtime" YAZ_Runtime
        ExecWait '"$INSTDIR\bin\yaz-ztest.exe" -remove'
 Noservice:
        SetOutPath $INSTDIR\bin
-       File c:\winnt\system32\msvcr71.dll
+       File "${VS_RUNTIME_LOCATION}\msvcr71.dll"
        File ..\bin\iconv.dll
        File ..\bin\zlib1.dll
        File ..\bin\libxml2.dll
@@ -107,19 +108,23 @@ Section "YAZ Development" YAZ_Development
        File ..\include\yaz\*.h
        SetOutPath $INSTDIR\lib
        File ..\lib\yaz.lib
+       File ..\lib\yazd.lib
+       SetOutPath $INSTDIR\bin
+       File ..\bin\yazd.dll
 SectionEnd
 
 Section "YAZ Documentation" YAZ_Documentation
        SectionIn 1 2
        SetOutPath $INSTDIR\doc
-       File ..\doc\*.html
-       File ..\doc\*.png
-       File ..\doc\*.pdf
-       File ..\doc\*.xml
-       File ..\doc\*.in
-       File ..\doc\*.dsl
-       File ..\doc\*.xsl
-       File ..\doc\*.css
+       File /r ..\doc\*.css
+       File /r ..\doc\*.dcl
+       File /r ..\doc\*.dsl
+       File /r ..\doc\*.ent
+       File /r ..\doc\*.html
+       File /r ..\doc\*.pdf
+       File /r ..\doc\*.xml
+       File /r ..\doc\*.png
+       File /r ..\doc\*.xsl
        SetOutPath $SMPROGRAMS\YAZ
        CreateShortCut "$SMPROGRAMS\YAZ\HTML Documentation.lnk" \
                  "$INSTDIR\doc\yaz.html"
@@ -129,29 +134,26 @@ SectionEnd
 
 Section "YAZ Source" YAZ_Source
        SectionIn 1
+       SetOutPath $INSTDIR
+       File /r ..\*.c
+       File /r /x yaz ..\*.h
        SetOutPath $INSTDIR\util
-       File ..\util\*.c
        File ..\util\yaz-asncomp
        SetOutPath $INSTDIR\src
-       File ..\src\*.c
-       File ..\src\*.h
        File ..\src\*.y
        File ..\src\*.tcl
        File ..\src\*.csv
        File ..\src\*.asn
        File ..\src\codetables.xml
-       SetOutPath $INSTDIR\zoom
-       File ..\zoom\*.c
-       SetOutPath $INSTDIR\ztest
-       File ..\ztest\*.c
-       SetOutPath $INSTDIR\client
-       File ..\client\*.c
-       File ..\client\*.h
+       SetOutPath $INSTDIR\test
+       File ..\test\marc*.*
+       File ..\test\*.sh
+       File ..\test\*.xml
+       File ..\test\*.asn
        SetOutPath $INSTDIR\win
        File makefile
        File *.nsi
        File *.rc
-       File *.h
 SectionEnd
 
 ; begin uninstall settings/section