Update Prebuild.exe with Prebuild r323 + an existing OpenSim specific nant hack to correctly clean up chosen OpenSim exes and dlls in bin/ on a "nant clean"

Source code is included for reference.  This can go away again once Prebuild is updated with a more general mechanism for cleaning up files.
The Prebuild source code here can be built with nant, or regnerated for other tools using the prebuild at {root}/bin/Prebuild.exe
This commit is contained in:
Justin Clark-Casey (justincc)
2010-09-11 01:13:08 +01:00
parent 220f82a0f0
commit 7e65590a55
319 changed files with 44002 additions and 0 deletions

View File

@@ -0,0 +1,125 @@
K 25
svn:wc:ra_dav:version-url
V 49
/svnroot/dnpb/!svn/ver/316/trunk/Prebuild/scripts
END
makefile.bat
K 25
svn:wc:ra_dav:version-url
V 62
/svnroot/dnpb/!svn/ver/240/trunk/Prebuild/scripts/makefile.bat
END
SharpDevelop2.bat
K 25
svn:wc:ra_dav:version-url
V 67
/svnroot/dnpb/!svn/ver/205/trunk/Prebuild/scripts/SharpDevelop2.bat
END
makefile.sh
K 25
svn:wc:ra_dav:version-url
V 61
/svnroot/dnpb/!svn/ver/240/trunk/Prebuild/scripts/makefile.sh
END
Clean.bat
K 25
svn:wc:ra_dav:version-url
V 59
/svnroot/dnpb/!svn/ver/205/trunk/Prebuild/scripts/Clean.bat
END
Clean.sh
K 25
svn:wc:ra_dav:version-url
V 58
/svnroot/dnpb/!svn/ver/240/trunk/Prebuild/scripts/Clean.sh
END
Help.bat
K 25
svn:wc:ra_dav:version-url
V 58
/svnroot/dnpb/!svn/ver/205/trunk/Prebuild/scripts/Help.bat
END
autotools.bat
K 25
svn:wc:ra_dav:version-url
V 63
/svnroot/dnpb/!svn/ver/205/trunk/Prebuild/scripts/autotools.bat
END
Prebuild.nsi
K 25
svn:wc:ra_dav:version-url
V 62
/svnroot/dnpb/!svn/ver/116/trunk/Prebuild/scripts/Prebuild.nsi
END
VS2010.bat
K 25
svn:wc:ra_dav:version-url
V 60
/svnroot/dnpb/!svn/ver/316/trunk/Prebuild/scripts/VS2010.bat
END
MonoDevelop.sh
K 25
svn:wc:ra_dav:version-url
V 64
/svnroot/dnpb/!svn/ver/205/trunk/Prebuild/scripts/MonoDevelop.sh
END
VS2002.bat
K 25
svn:wc:ra_dav:version-url
V 60
/svnroot/dnpb/!svn/ver/205/trunk/Prebuild/scripts/VS2002.bat
END
SharpDevelop.bat
K 25
svn:wc:ra_dav:version-url
V 66
/svnroot/dnpb/!svn/ver/205/trunk/Prebuild/scripts/SharpDevelop.bat
END
autotools.sh
K 25
svn:wc:ra_dav:version-url
V 62
/svnroot/dnpb/!svn/ver/256/trunk/Prebuild/scripts/autotools.sh
END
VS2003.bat
K 25
svn:wc:ra_dav:version-url
V 60
/svnroot/dnpb/!svn/ver/196/trunk/Prebuild/scripts/VS2003.bat
END
VS2005.bat
K 25
svn:wc:ra_dav:version-url
V 60
/svnroot/dnpb/!svn/ver/205/trunk/Prebuild/scripts/VS2005.bat
END
nant.bat
K 25
svn:wc:ra_dav:version-url
V 58
/svnroot/dnpb/!svn/ver/205/trunk/Prebuild/scripts/nant.bat
END
VS2008.bat
K 25
svn:wc:ra_dav:version-url
V 60
/svnroot/dnpb/!svn/ver/288/trunk/Prebuild/scripts/VS2008.bat
END
xcode.bat
K 25
svn:wc:ra_dav:version-url
V 59
/svnroot/dnpb/!svn/ver/240/trunk/Prebuild/scripts/xcode.bat
END
nant.sh
K 25
svn:wc:ra_dav:version-url
V 57
/svnroot/dnpb/!svn/ver/205/trunk/Prebuild/scripts/nant.sh
END
xcode.sh
K 25
svn:wc:ra_dav:version-url
V 58
/svnroot/dnpb/!svn/ver/240/trunk/Prebuild/scripts/xcode.sh
END

View File

@@ -0,0 +1,6 @@
K 10
svn:ignore
V 12
*.cmbx
*.swp
END

View File

@@ -0,0 +1,708 @@
10
dir
323
https://dnpb.svn.sourceforge.net/svnroot/dnpb/trunk/Prebuild/scripts
https://dnpb.svn.sourceforge.net/svnroot/dnpb
2010-05-08T05:43:01.449559Z
316
jhurliman
has-props
3355ff64-970d-0410-bbe8-d0fbd18be4fb
makefile.bat
file
2010-09-10T22:51:44.000000Z
f6d151aad764b5bdb4113a119c9f3750
2007-05-08T15:42:58.740059Z
240
jendave
has-props
102
SharpDevelop2.bat
file
2010-09-10T22:51:44.000000Z
432bf7063141f24bcc4e4a13ede3b6cf
2007-02-13T20:58:03.716560Z
205
jendave
has-props
210
makefile.sh
file
2010-09-10T22:51:44.000000Z
70db5cccbafa4f0019d3d9e0fbb6d884
2007-05-08T15:42:58.740059Z
240
jendave
has-props
155
Clean.bat
file
2010-09-10T22:51:44.000000Z
f33b6d088290350f0d7cbc44e6c26854
2007-02-13T20:58:03.716560Z
205
jendave
has-props
87
Clean.sh
file
2010-09-10T22:51:44.000000Z
0d402c1dc3ba5fa92a22721ee7faf47c
2007-05-08T15:42:58.740059Z
240
jendave
has-props
92
Help.bat
file
2010-09-10T22:51:44.000000Z
237f9b0bc08ef577209cf7119efbd456
2007-02-13T20:58:03.716560Z
205
jendave
has-props
32
autotools.bat
file
2010-09-10T22:51:44.000000Z
3604bb1d38df33793e62c25e08362f59
2007-02-13T20:58:03.716560Z
205
jendave
has-props
112
Prebuild.nsi
file
2010-09-10T22:51:44.000000Z
572ab49b75b83aece148667c55cb800b
2006-06-28T00:12:05.085067Z
116
jendave
has-props
6208
VS2010.bat
file
2010-09-10T22:51:44.000000Z
f6f61e3b45a19c4c011c9143da1ab274
2010-05-08T05:43:01.449559Z
316
jhurliman
192
MonoDevelop.sh
file
2010-09-10T22:51:44.000000Z
1499f30edeaae42e200fa27a7c605fba
2007-02-13T20:58:03.716560Z
205
jendave
has-props
79
VS2002.bat
file
2010-09-10T22:51:44.000000Z
3ebbd6c68560aaf1ec9089cdd64f5fcd
2007-02-13T20:58:03.716560Z
205
jendave
has-props
189
SharpDevelop.bat
file
2010-09-10T22:51:44.000000Z
68ebe8c542c03966bf15bfae465c6616
2007-02-13T20:58:03.716560Z
205
jendave
has-props
220
autotools.sh
file
2010-09-10T22:51:44.000000Z
3e82233011b4b61378fdfafec75105c3
2008-02-07T16:31:29.630257Z
256
cjcollier
has-props
163
VS2003.bat
file
2010-09-10T22:51:44.000000Z
d98909ce1a987763796c2d51bd51e861
2006-12-30T09:17:33.472696Z
196
jendave
has-props
189
VS2005.bat
file
2010-09-10T22:51:44.000000Z
3a9c76a2bc4a7b72dacb5f9080b212a4
2007-02-13T20:58:03.716560Z
205
jendave
has-props
203
nant.bat
file
2010-09-10T22:51:44.000000Z
b42b576139291f54b283c4e557f02140
2007-02-13T20:58:03.716560Z
205
jendave
has-props
103
VS2008.bat
file
2010-09-10T22:51:44.000000Z
b239b3d67274fdac817fa0b41864bb01
2009-02-09T18:52:49.114435Z
288
diakopter
has-props
192
xcode.bat
file
2010-09-10T22:51:44.000000Z
adbdd25e0777620fafc9d087142d0747
2007-05-08T15:42:58.740059Z
240
jendave
has-props
103
nant.sh
file
2010-09-10T22:51:44.000000Z
94a22105b89b89938829d63f70a628dc
2007-02-13T20:58:03.716560Z
205
jendave
has-props
61
xcode.sh
file
2010-09-10T22:51:44.000000Z
7f7b529278d58af6d9313e2a93f7f296
2007-05-08T15:42:58.740059Z
240
jendave
has-props
62

View File

@@ -0,0 +1,13 @@
K 13
svn:eol-style
V 6
native
K 14
svn:executable
V 1
*
K 12
svn:keywords
V 23
Author Date Id Revision
END

View File

@@ -0,0 +1,9 @@
K 13
svn:eol-style
V 6
native
K 14
svn:executable
V 1
*
END

View File

@@ -0,0 +1,13 @@
K 13
svn:eol-style
V 6
native
K 14
svn:executable
V 1
*
K 12
svn:keywords
V 23
Author Date Id Revision
END

View File

@@ -0,0 +1,13 @@
K 13
svn:eol-style
V 6
native
K 14
svn:executable
V 1
*
K 12
svn:keywords
V 23
Author Date Id Revision
END

View File

@@ -0,0 +1,9 @@
K 13
svn:eol-style
V 6
native
K 12
svn:keywords
V 23
Author Date Id Revision
END

View File

@@ -0,0 +1,13 @@
K 13
svn:eol-style
V 6
native
K 14
svn:executable
V 1
*
K 12
svn:keywords
V 23
Author Date Id Revision
END

View File

@@ -0,0 +1,5 @@
K 14
svn:executable
V 1
*
END

View File

@@ -0,0 +1,13 @@
K 13
svn:eol-style
V 6
native
K 14
svn:executable
V 1
*
K 12
svn:keywords
V 23
Author Date Id Revision
END

View File

@@ -0,0 +1,13 @@
K 13
svn:eol-style
V 6
native
K 14
svn:executable
V 1
*
K 12
svn:keywords
V 23
Author Date Id Revision
END

View File

@@ -0,0 +1,13 @@
K 13
svn:eol-style
V 6
native
K 14
svn:executable
V 1
*
K 12
svn:keywords
V 23
Author Date Id Revision
END

View File

@@ -0,0 +1,5 @@
K 14
svn:executable
V 1
*
END

View File

@@ -0,0 +1,5 @@
K 14
svn:executable
V 1
*
END

View File

@@ -0,0 +1,5 @@
K 14
svn:executable
V 1
*
END

View File

@@ -0,0 +1,9 @@
K 13
svn:eol-style
V 6
native
K 14
svn:executable
V 1
*
END

View File

@@ -0,0 +1,9 @@
K 13
svn:eol-style
V 6
native
K 14
svn:executable
V 1
*
END

View File

@@ -0,0 +1,13 @@
K 13
svn:eol-style
V 6
native
K 14
svn:executable
V 1
*
K 12
svn:keywords
V 23
Author Date Id Revision
END

View File

@@ -0,0 +1,13 @@
K 13
svn:eol-style
V 6
native
K 14
svn:executable
V 1
*
K 12
svn:keywords
V 23
Author Date Id Revision
END

View File

@@ -0,0 +1,9 @@
K 13
svn:eol-style
V 6
native
K 14
svn:executable
V 1
*
END

View File

@@ -0,0 +1,9 @@
K 13
svn:eol-style
V 6
native
K 14
svn:executable
V 1
*
END

View File

@@ -0,0 +1,2 @@
cd ..
Prebuild.exe /clean /yes /removedir obj /file prebuild.xml /build NET_2_0 /pause

View File

@@ -0,0 +1,4 @@
#!/bin/sh
./prebuild /clean /removedir obj /file ../prebuild.xml /pause
rm -rf ../Makefile

View File

@@ -0,0 +1,2 @@
cd ..
Prebuild.exe /usage /pause

View File

@@ -0,0 +1,2 @@
#!/bin/sh
prebuild /target monodev /file ../prebuild.xml /build NET_1_1 /pause

View File

@@ -0,0 +1,231 @@
!verbose 3
!define PRODUCT_NAME "Prebuild"
!define PRODUCT_VERSION "1.3.1"
!define PRODUCT_PUBLISHER "Prebuild"
!define PRODUCT_PACKAGE "prebuild"
!define PRODUCT_WEB_SITE "http://dnpb.sourceforge.net"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\Prebuild"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\Prebuild"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define PRODUCT_PATH ".."
;!define MUI_WELCOMEFINISHPAGE_BITMAP "PrebuildLogo.bmp"
;!define MUI_WELCOMEFINISHPAGE_BITMAP_NOSTRETCH
;!define MUI_UNWELCOMEFINISHPAGE_BITMAP "PrebuildLogo.bmp"
;!define MUI_UNWELCOMEFINISHPAGE_BITMAP_NOSTRETCH
BrandingText "© 2003-2006 David Hudson, http://dnpb.sourceforge.net/"
SetCompressor lzma
CRCCheck on
; File Association defines
;!include "fileassoc.nsh"
; MUI 1.67 compatible ------
!include "MUI.nsh"
; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
;--------------------------------
;Variables
;--------------------------------
;Installer Pages
; Welcome page
!insertmacro MUI_PAGE_WELCOME
; License page
!insertmacro MUI_PAGE_LICENSE "..\doc\license.txt"
; Directory page
!insertmacro MUI_PAGE_DIRECTORY
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
; Finish page
!insertmacro MUI_PAGE_FINISH
;------------------------------------
; Uninstaller pages
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH
;------------------------------------
; Language files
!insertmacro MUI_LANGUAGE "English"
; Reserve files
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
; MUI end ------
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "..\${PRODUCT_PACKAGE}-${PRODUCT_VERSION}-setup.exe"
InstallDir "$PROGRAMFILES\Prebuild"
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails show
ShowUnInstDetails show
; .NET Framework check
; http://msdn.microsoft.com/netframework/default.aspx?pull=/library/en-us/dnnetdep/html/redistdeploy1_1.asp
; Section "Detecting that the .NET Framework 1.1 is installed"
Function .onInit
ReadRegDWORD $R0 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\v1.1.4322" Install
StrCmp $R0 "" 0 CheckPreviousVersion
MessageBox MB_OK "Microsoft .NET Framework 1.1 was not found on this system.$\r$\n$\r$\nUnable to continue this installation."
Abort
CheckPreviousVersion:
ReadRegStr $R0 ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName"
StrCmp $R0 "" CheckOSVersion 0
MessageBox MB_OK "An old version of Prebuild is installed on this computer, please uninstall first.$\r$\n$\r$\nUnable to continue this installation."
Abort
CheckOSVersion:
Call IsSupportedWindowsVersion
Pop $R0
StrCmp $R0 "False" NoAbort 0
MessageBox MB_OK "The operating system you are using is not supported by Prebuild (95/98/ME/NT3.x/NT4.x)."
Abort
NoAbort:
FunctionEnd
Section "Source" SecSource
SetOverwrite ifnewer
SetOutPath "$INSTDIR\src"
File /r /x *.swp /x .svn /x *.xml /x *.csproj /x *.user /x *.build /x *.prjx /x *.mdp /x bin /x obj /x *.nsi ${PRODUCT_PATH}\src\*.*
;Store installation folder
WriteRegStr HKCU "Software\Prebuild" "" $INSTDIR
SectionEnd
Section "Runtime" SecRuntime
SetOverwrite ifnewer
SetOutPath "$INSTDIR"
File /r /x *.swp /x .svn /x *.nsi /x src /x *.sln /x *.cmbx /x *.mds ${PRODUCT_PATH}\Prebuild.exe ${PRODUCT_PATH}\prebuild.xml
;Store installation folder
WriteRegStr HKCU "Software\Prebuild" "" $INSTDIR
SectionEnd
Section "Documentation" SecDocs
SetOverwrite ifnewer
SetOutPath "$INSTDIR\doc"
File /r /x *.swp /x .svn /x *.exe ${PRODUCT_PATH}\doc\*.*
;Store installation folder
WriteRegStr HKCU "Software\Prebuild" "" $INSTDIR
SectionEnd
Section "Scripts" SecScripts
SetOverwrite ifnewer
SetOutPath "$INSTDIR\scripts"
File /r /x *.swp /x .svn /x *.nsi /x *.exe ${PRODUCT_PATH}\scripts\*.*
;Store installation folder
WriteRegStr HKCU "Software\Prebuild" "" $INSTDIR
SectionEnd
;Language strings
Section -AdditionalIcons
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
SectionEnd
Section -Post
WriteUninstaller "$INSTDIR\uninst.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
SectionEnd
Section Uninstall
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
RMDir /r "$INSTDIR"
SectionEnd
; GetWindowsVersion, taken from NSIS help, modified for our purposes
Function IsSupportedWindowsVersion
Push $R0
Push $R1
ReadRegStr $R0 HKLM \
"SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
IfErrors 0 lbl_winnt
; we are not NT
ReadRegStr $R0 HKLM \
"SOFTWARE\Microsoft\Windows\CurrentVersion" VersionNumber
StrCpy $R1 $R0 1
StrCmp $R1 '4' 0 lbl_error
StrCpy $R1 $R0 3
StrCmp $R1 '4.0' lbl_win32_95
StrCmp $R1 '4.9' lbl_win32_ME lbl_win32_98
lbl_win32_95:
StrCpy $R0 'False'
Goto lbl_done
lbl_win32_98:
StrCpy $R0 'False'
Goto lbl_done
lbl_win32_ME:
StrCpy $R0 'False'
Goto lbl_done
lbl_winnt:
StrCpy $R1 $R0 1
StrCmp $R1 '3' lbl_winnt_x
StrCmp $R1 '4' lbl_winnt_x
StrCpy $R1 $R0 3
StrCmp $R1 '5.0' lbl_winnt_2000
StrCmp $R1 '5.1' lbl_winnt_XP
StrCmp $R1 '5.2' lbl_winnt_2003 lbl_error
lbl_winnt_x:
StrCpy $R0 'False'
Goto lbl_done
lbl_winnt_2000:
Strcpy $R0 'True'
Goto lbl_done
lbl_winnt_XP:
Strcpy $R0 'True'
Goto lbl_done
lbl_winnt_2003:
Strcpy $R0 'True'
Goto lbl_done
lbl_error:
Strcpy $R0 'False'
lbl_done:
Pop $R1
Exch $R0
FunctionEnd

View File

@@ -0,0 +1,4 @@
@rem Generates a combine (.cmbx) and a set of project files (.prjx)
@rem for SharpDevelop (http://icsharpcode.net/OpenSource/SD/Default.aspx)
cd ..
Prebuild.exe /target sharpdev /file prebuild.xml /build NET_1_1 /pause

View File

@@ -0,0 +1,4 @@
@rem Generates a combine (.cmbx) and a set of project files (.prjx)
@rem for SharpDevelop (http://icsharpcode.net/OpenSource/SD/Default.aspx)
cd ..
Prebuild.exe /target sharpdev2 /file prebuild.xml /pause

View File

@@ -0,0 +1,4 @@
@rem Generates a solution (.sln) and a set of project files (.csproj)
@rem for Microsoft Visual Studio .NET 2002
cd ..
Prebuild.exe /target vs2002 /file prebuild.xml /build NET_1_1 /pause

View File

@@ -0,0 +1,4 @@
@rem Generates a solution (.sln) and a set of project files (.csproj)
@rem for Microsoft Visual Studio .NET 2002
cd ..
Prebuild.exe /target vs2003 /file prebuild.xml /build NET_1_1 /pause

View File

@@ -0,0 +1,4 @@
@rem Generates a solution (.sln) and a set of project files (.csproj, .vbproj, etc.)
@rem for Microsoft Visual Studio .NET 2005
cd ..
Prebuild.exe /target vs2005 /file prebuild.xml /build NET_2_0 /pause

View File

@@ -0,0 +1,4 @@
@rem Generates a solution (.sln) and a set of project files (.csproj, .vbproj, etc.)
@rem for Microsoft Visual Studio .NET 2008
cd ..
Prebuild.exe /target vs2008 /file prebuild.xml /pause

View File

@@ -0,0 +1,4 @@
@rem Generates a solution (.sln) and a set of project files (.csproj, .vbproj, etc.)
@rem for Microsoft Visual Studio .NET 2010
cd ..
Prebuild.exe /target vs2010 /file prebuild.xml /pause

View File

@@ -0,0 +1,4 @@
@rem Generates Makefiles
@rem for autotools
cd ..
Prebuild.exe /target autotools /file prebuild.xml /pause

View File

@@ -0,0 +1,5 @@
#!/bin/sh
RUNTIME=`which mono`
SCRIPTDIR=`dirname $0`
${RUNTIME} ${SCRIPTDIR}/../Prebuild.exe /target autotools /file ${SCRIPTDIR}/../prebuild.xml /build NET_2_0

View File

@@ -0,0 +1,4 @@
@rem Generates makefiles
@rem for make
cd ..
Prebuild.exe /target makefile /file prebuild.xml /pause

View File

@@ -0,0 +1,10 @@
#!/bin/sh
./prebuild /target makefile /file ../prebuild.xml /pause
if [ -f ../Makefile ]
then
rm -rf ../Makefile
fi
mv ../Prebuild.make ../Makefile

View File

@@ -0,0 +1,4 @@
@rem Generates a .build files
@rem for NAnt
cd ..
Prebuild.exe /target nant /file prebuild.xml /pause

View File

@@ -0,0 +1,2 @@
#!/bin/sh
prebuild /target nant /file ../prebuild.xml /pause

View File

@@ -0,0 +1,4 @@
@rem Generates a Xcode files
@rem for NAnt
cd ..
Prebuild.exe /target xcode /file prebuild.xml /pause

View File

@@ -0,0 +1,2 @@
#!/bin/sh
prebuild /target xcode /file ../prebuild.xml /pause

2
Prebuild/scripts/Clean.bat Executable file
View File

@@ -0,0 +1,2 @@
cd ..
Prebuild.exe /clean /yes /removedir obj /file prebuild.xml /build NET_2_0 /pause

4
Prebuild/scripts/Clean.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
./prebuild /clean /removedir obj /file ../prebuild.xml /pause
rm -rf ../Makefile

2
Prebuild/scripts/Help.bat Executable file
View File

@@ -0,0 +1,2 @@
cd ..
Prebuild.exe /usage /pause

View File

@@ -0,0 +1,2 @@
#!/bin/sh
prebuild /target monodev /file ../prebuild.xml /build NET_1_1 /pause

View File

@@ -0,0 +1,231 @@
!verbose 3
!define PRODUCT_NAME "Prebuild"
!define PRODUCT_VERSION "1.3.1"
!define PRODUCT_PUBLISHER "Prebuild"
!define PRODUCT_PACKAGE "prebuild"
!define PRODUCT_WEB_SITE "http://dnpb.sourceforge.net"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\Prebuild"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\Prebuild"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define PRODUCT_PATH ".."
;!define MUI_WELCOMEFINISHPAGE_BITMAP "PrebuildLogo.bmp"
;!define MUI_WELCOMEFINISHPAGE_BITMAP_NOSTRETCH
;!define MUI_UNWELCOMEFINISHPAGE_BITMAP "PrebuildLogo.bmp"
;!define MUI_UNWELCOMEFINISHPAGE_BITMAP_NOSTRETCH
BrandingText "© 2003-2006 David Hudson, http://dnpb.sourceforge.net/"
SetCompressor lzma
CRCCheck on
; File Association defines
;!include "fileassoc.nsh"
; MUI 1.67 compatible ------
!include "MUI.nsh"
; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
;--------------------------------
;Variables
;--------------------------------
;Installer Pages
; Welcome page
!insertmacro MUI_PAGE_WELCOME
; License page
!insertmacro MUI_PAGE_LICENSE "..\doc\license.txt"
; Directory page
!insertmacro MUI_PAGE_DIRECTORY
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
; Finish page
!insertmacro MUI_PAGE_FINISH
;------------------------------------
; Uninstaller pages
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH
;------------------------------------
; Language files
!insertmacro MUI_LANGUAGE "English"
; Reserve files
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
; MUI end ------
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "..\${PRODUCT_PACKAGE}-${PRODUCT_VERSION}-setup.exe"
InstallDir "$PROGRAMFILES\Prebuild"
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails show
ShowUnInstDetails show
; .NET Framework check
; http://msdn.microsoft.com/netframework/default.aspx?pull=/library/en-us/dnnetdep/html/redistdeploy1_1.asp
; Section "Detecting that the .NET Framework 1.1 is installed"
Function .onInit
ReadRegDWORD $R0 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\v1.1.4322" Install
StrCmp $R0 "" 0 CheckPreviousVersion
MessageBox MB_OK "Microsoft .NET Framework 1.1 was not found on this system.$\r$\n$\r$\nUnable to continue this installation."
Abort
CheckPreviousVersion:
ReadRegStr $R0 ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName"
StrCmp $R0 "" CheckOSVersion 0
MessageBox MB_OK "An old version of Prebuild is installed on this computer, please uninstall first.$\r$\n$\r$\nUnable to continue this installation."
Abort
CheckOSVersion:
Call IsSupportedWindowsVersion
Pop $R0
StrCmp $R0 "False" NoAbort 0
MessageBox MB_OK "The operating system you are using is not supported by Prebuild (95/98/ME/NT3.x/NT4.x)."
Abort
NoAbort:
FunctionEnd
Section "Source" SecSource
SetOverwrite ifnewer
SetOutPath "$INSTDIR\src"
File /r /x *.swp /x .svn /x *.xml /x *.csproj /x *.user /x *.build /x *.prjx /x *.mdp /x bin /x obj /x *.nsi ${PRODUCT_PATH}\src\*.*
;Store installation folder
WriteRegStr HKCU "Software\Prebuild" "" $INSTDIR
SectionEnd
Section "Runtime" SecRuntime
SetOverwrite ifnewer
SetOutPath "$INSTDIR"
File /r /x *.swp /x .svn /x *.nsi /x src /x *.sln /x *.cmbx /x *.mds ${PRODUCT_PATH}\Prebuild.exe ${PRODUCT_PATH}\prebuild.xml
;Store installation folder
WriteRegStr HKCU "Software\Prebuild" "" $INSTDIR
SectionEnd
Section "Documentation" SecDocs
SetOverwrite ifnewer
SetOutPath "$INSTDIR\doc"
File /r /x *.swp /x .svn /x *.exe ${PRODUCT_PATH}\doc\*.*
;Store installation folder
WriteRegStr HKCU "Software\Prebuild" "" $INSTDIR
SectionEnd
Section "Scripts" SecScripts
SetOverwrite ifnewer
SetOutPath "$INSTDIR\scripts"
File /r /x *.swp /x .svn /x *.nsi /x *.exe ${PRODUCT_PATH}\scripts\*.*
;Store installation folder
WriteRegStr HKCU "Software\Prebuild" "" $INSTDIR
SectionEnd
;Language strings
Section -AdditionalIcons
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
SectionEnd
Section -Post
WriteUninstaller "$INSTDIR\uninst.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
SectionEnd
Section Uninstall
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
RMDir /r "$INSTDIR"
SectionEnd
; GetWindowsVersion, taken from NSIS help, modified for our purposes
Function IsSupportedWindowsVersion
Push $R0
Push $R1
ReadRegStr $R0 HKLM \
"SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
IfErrors 0 lbl_winnt
; we are not NT
ReadRegStr $R0 HKLM \
"SOFTWARE\Microsoft\Windows\CurrentVersion" VersionNumber
StrCpy $R1 $R0 1
StrCmp $R1 '4' 0 lbl_error
StrCpy $R1 $R0 3
StrCmp $R1 '4.0' lbl_win32_95
StrCmp $R1 '4.9' lbl_win32_ME lbl_win32_98
lbl_win32_95:
StrCpy $R0 'False'
Goto lbl_done
lbl_win32_98:
StrCpy $R0 'False'
Goto lbl_done
lbl_win32_ME:
StrCpy $R0 'False'
Goto lbl_done
lbl_winnt:
StrCpy $R1 $R0 1
StrCmp $R1 '3' lbl_winnt_x
StrCmp $R1 '4' lbl_winnt_x
StrCpy $R1 $R0 3
StrCmp $R1 '5.0' lbl_winnt_2000
StrCmp $R1 '5.1' lbl_winnt_XP
StrCmp $R1 '5.2' lbl_winnt_2003 lbl_error
lbl_winnt_x:
StrCpy $R0 'False'
Goto lbl_done
lbl_winnt_2000:
Strcpy $R0 'True'
Goto lbl_done
lbl_winnt_XP:
Strcpy $R0 'True'
Goto lbl_done
lbl_winnt_2003:
Strcpy $R0 'True'
Goto lbl_done
lbl_error:
Strcpy $R0 'False'
lbl_done:
Pop $R1
Exch $R0
FunctionEnd

View File

@@ -0,0 +1,4 @@
@rem Generates a combine (.cmbx) and a set of project files (.prjx)
@rem for SharpDevelop (http://icsharpcode.net/OpenSource/SD/Default.aspx)
cd ..
Prebuild.exe /target sharpdev /file prebuild.xml /build NET_1_1 /pause

View File

@@ -0,0 +1,4 @@
@rem Generates a combine (.cmbx) and a set of project files (.prjx)
@rem for SharpDevelop (http://icsharpcode.net/OpenSource/SD/Default.aspx)
cd ..
Prebuild.exe /target sharpdev2 /file prebuild.xml /pause

4
Prebuild/scripts/VS2002.bat Executable file
View File

@@ -0,0 +1,4 @@
@rem Generates a solution (.sln) and a set of project files (.csproj)
@rem for Microsoft Visual Studio .NET 2002
cd ..
Prebuild.exe /target vs2002 /file prebuild.xml /build NET_1_1 /pause

4
Prebuild/scripts/VS2003.bat Executable file
View File

@@ -0,0 +1,4 @@
@rem Generates a solution (.sln) and a set of project files (.csproj)
@rem for Microsoft Visual Studio .NET 2002
cd ..
Prebuild.exe /target vs2003 /file prebuild.xml /build NET_1_1 /pause

4
Prebuild/scripts/VS2005.bat Executable file
View File

@@ -0,0 +1,4 @@
@rem Generates a solution (.sln) and a set of project files (.csproj, .vbproj, etc.)
@rem for Microsoft Visual Studio .NET 2005
cd ..
Prebuild.exe /target vs2005 /file prebuild.xml /build NET_2_0 /pause

4
Prebuild/scripts/VS2008.bat Executable file
View File

@@ -0,0 +1,4 @@
@rem Generates a solution (.sln) and a set of project files (.csproj, .vbproj, etc.)
@rem for Microsoft Visual Studio .NET 2008
cd ..
Prebuild.exe /target vs2008 /file prebuild.xml /pause

View File

@@ -0,0 +1,4 @@
@rem Generates a solution (.sln) and a set of project files (.csproj, .vbproj, etc.)
@rem for Microsoft Visual Studio .NET 2010
cd ..
Prebuild.exe /target vs2010 /file prebuild.xml /pause

4
Prebuild/scripts/autotools.bat Executable file
View File

@@ -0,0 +1,4 @@
@rem Generates Makefiles
@rem for autotools
cd ..
Prebuild.exe /target autotools /file prebuild.xml /pause

5
Prebuild/scripts/autotools.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
RUNTIME=`which mono`
SCRIPTDIR=`dirname $0`
${RUNTIME} ${SCRIPTDIR}/../Prebuild.exe /target autotools /file ${SCRIPTDIR}/../prebuild.xml /build NET_2_0

4
Prebuild/scripts/makefile.bat Executable file
View File

@@ -0,0 +1,4 @@
@rem Generates makefiles
@rem for make
cd ..
Prebuild.exe /target makefile /file prebuild.xml /pause

10
Prebuild/scripts/makefile.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
./prebuild /target makefile /file ../prebuild.xml /pause
if [ -f ../Makefile ]
then
rm -rf ../Makefile
fi
mv ../Prebuild.make ../Makefile

4
Prebuild/scripts/nant.bat Executable file
View File

@@ -0,0 +1,4 @@
@rem Generates a .build files
@rem for NAnt
cd ..
Prebuild.exe /target nant /file prebuild.xml /pause

2
Prebuild/scripts/nant.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
prebuild /target nant /file ../prebuild.xml /pause

4
Prebuild/scripts/xcode.bat Executable file
View File

@@ -0,0 +1,4 @@
@rem Generates a Xcode files
@rem for NAnt
cd ..
Prebuild.exe /target xcode /file prebuild.xml /pause

2
Prebuild/scripts/xcode.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
prebuild /target xcode /file ../prebuild.xml /pause