From 39f979dbef20f0ac311624cb115bd29bc38acec2 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 22 May 2007 18:21:25 +0000 Subject: Add BUILD define which tells the install script what to build git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7111 e03df62e-2008-0410-955e-edbf42e46eb7 --- win/inspircd.nsi | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'win') diff --git a/win/inspircd.nsi b/win/inspircd.nsi index 25b97cd92..40c15053d 100644 --- a/win/inspircd.nsi +++ b/win/inspircd.nsi @@ -1,4 +1,10 @@ -; Script generated by the HM NIS Edit Script Wizard. +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + + ;;;; SET THE BUILD TO BE PACKAGED HERE ;;;; + +!define BUILD "release" + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; HM NIS Edit Wizard helper defines !define PRODUCT_NAME "InspIRCd" @@ -118,12 +124,12 @@ Section "Binary Executable" SEC01 Call IsDotNetInstalled SetOutPath "$INSTDIR" SetOverwrite ifnewer - File "..\bin\debug\InspGUI.exe" + File "..\bin\${BUILD}\InspGUI.exe" CreateDirectory "$SMPROGRAMS\InspIRCd" CreateShortCut "$SMPROGRAMS\InspIRCd\InspIRCd.lnk" "$INSTDIR\InspGUI.exe" SetOutPath "$INSTDIR\bin" SetOverwrite ifnewer - File "..\bin\debug\bin\inspircd.exe" + File "..\bin\${BUILD}\bin\inspircd.exe" SectionEnd Section "Config Files" SEC02 @@ -140,12 +146,12 @@ SectionEnd Section "Command Handlers" SEC03 SetOutPath "$INSTDIR\lib" - File "..\bin\debug\lib\cmd_*.so" + File "..\bin\${BUILD}\lib\cmd_*.so" SectionEnd Section "Modules" SEC04 SetOutPath "$INSTDIR\modules" - File "..\bin\debug\modules\*.so" + File "..\bin\${BUILD}\modules\*.so" SectionEnd Section -AdditionalIcons -- cgit v1.2.3