Commit 56feb36c authored by Ken Martin's avatar Ken Martin
Browse files

ENH: update to beanch release proc

parent c7df6b52
; ParaView install script designed for a nmake build
;--------------------------------
; You must define these values
!define VERSION "@PARAVIEW_VERSION@"
!define PATCH "@PARAVIEW_VERSION_PATCH@"
!define PV_BIN "@ParaView_BINARY_DIR@"
!define PV_SRC "@ParaView_SOURCE_DIR@"
;--------------------------------
;Variables
Var MUI_TEMP
Var STARTMENU_FOLDER
;--------------------------------
;Include Modern UI
!include "MUI.nsh"
;--------------------------------
;General
;Name and file
Name "ParaView ${VERSION}"
OutFile "paraview-${VERSION}.${PATCH}-win32.exe"
;Default installation folder
InstallDir "$PROGRAMFILES\ParaView ${VERSION}"
;Get installation folder from registry if available
InstallDirRegKey HKCU "Software\Kitware\ParaView ${VERSION}" ""
;--------------------------------
;Interface Settings
!define MUI_HEADERIMAGE
!define MUI_ABORTWARNING
;--------------------------------
;Pages
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
;Start Menu Folder Page Configuration
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\Kitware\ParaView ${VERSION}"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
!insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"
;--------------------------------
;Installer Sections
Section "Dummy Section" SecDummy
SetOutPath "$INSTDIR\bin"
File "${PV_BIN}\bin\paraview.exe"
File "${PV_BIN}\bin\tcl84.dll"
File "${PV_BIN}\bin\tk84.dll"
File "C:\martink\msvcr71.dll"
File "C:\martink\msvcp71.dll"
SetOutPath "$INSTDIR"
File /r "${PV_BIN}\lib"
File /r "${PV_SRC}\GUI\Demos"
SetOutPath "$INSTDIR\Data"
File /r "${PV_SRC}\Data\Data"
;Store installation folder
WriteRegStr HKCU "Software\Kitware\ParaView ${VERSION}" "" $INSTDIR
;Create uninstaller
WriteUninstaller "$INSTDIR\Uninstall.exe"
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
;Create shortcuts
CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\paraview.lnk" "$INSTDIR\bin\paraview.exe"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
!insertmacro MUI_STARTMENU_WRITE_END
; back up old value of .opt
!define Index "Line${__LINE__}"
ReadRegStr $1 HKCR ".pvs" ""
StrCmp $1 "" "${Index}-NoBackup"
StrCmp $1 "ParaView.FileType" "${Index}-NoBackup"
WriteRegStr HKCR ".pvs" "backup_val" $1
"${Index}-NoBackup:"
WriteRegStr HKCR ".pvs" "" "ParaView.FileType"
ReadRegStr $0 HKCR "ParaView.FileType" ""
StrCmp $0 "" 0 "${Index}-Skip"
WriteRegStr HKCR "ParaView.FileType" "" "ParaView Files"
WriteRegStr HKCR "ParaView.FileType\shell" "" "open"
WriteRegStr HKCR "ParaView.FileType\DefaultIcon" "" "$INSTDIR\bin\paraview.exe,0"
"${Index}-Skip:"
WriteRegStr HKCR "ParaView.FileType\shell\open\command" "" \
'$INSTDIR\bin\paraview.exe "%1"'
WriteRegStr HKCR "ParaView.FileType\shell\edit" "" "Edit Options File"
WriteRegStr HKCR "ParaView.FileType\shell\edit\command" "" \
'$INSTDIR\bin\paraview.exe "%1"'
!undef Index
SectionEnd
;--------------------------------
;Uninstaller Section
Section "Uninstall"
;ADD YOUR OWN FILES HERE...
Delete "$INSTDIR\Uninstall.exe"
RMDir "$INSTDIR"
!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk"
;Delete empty start menu parent diretories
StrCpy $MUI_TEMP "$SMPROGRAMS\$MUI_TEMP"
startMenuDeleteLoop:
RMDir $MUI_TEMP
GetFullPathName $MUI_TEMP "$MUI_TEMP\.."
IfErrors startMenuDeleteLoopDone
StrCmp $MUI_TEMP $SMPROGRAMS startMenuDeleteLoopDone startMenuDeleteLoop
startMenuDeleteLoopDone:
DeleteRegKey /ifempty HKCU "Software\Kitware\ParaView ${VERSION}"
SectionEnd
\ No newline at end of file
PLATFORM="darwin"
CC="cc"
CXX="c++"
CMAKE="/Users/kitware/Nightly/CMakeRelease-install/bin/cmake"
CMAKE="/Users/kitware/Nightly/CMake18-install/bin/cmake"
DISPLAY=
......@@ -4,7 +4,7 @@ CXX="aCC"
CFLAGS="+DAportable"
CXXFLAGS="-Wl,+vnocompatwarnings +W740,749 +DAportable -D__HPACC_STRICTER_ANSI__"
MAKE="gmake"
CMAKE="/accounts/kitware/Dashboards/CMake-aCC/bin/cmake"
CMAKE="/accounts/kitware/Dashboards/CMake19/CMakeBin/bin/cmake"
PATH=/usr/local/bin:/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/pd/bin:/opt/upgrade/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/atok/bin:/opt/asx/bin/X11:/opt/xdevice/bin:/opt/egb/bin:/opt/vje/bin:/opt/resmon/bin:/opt/hparray/bin:/opt/langtools/bin:/opt/imake/bin:/opt/aCC/bin
DISPLAY=:0.0
......@@ -19,7 +19,7 @@ EOF
write_standard_cache &&
cat >> CMakeCache.txt <<EOF
CMAKE_EXE_LINKER_FLAGS:STRING=-ldld -Wl,-a,archive_shared
CMAKE_EXE_LINKER_FLAGS:STRING=-ldld -lc_r -Wl,-a,archive_shared
CMAKE_USER_MAKE_RULES_OVERRIDE:STRING=${BINDIR}/UserMakeRules.cmake
EOF
}
PLATFORM="irix64"
CC="cc"
CXX="CC"
CXXFLAGS="-ptused -no_prelink"
CMAKE="/home/sci/itk/cmake-2.0.3-irix64-n32/bin/cmake"
MAKE="gmake -j 20"
DISPLAY=:0.0
PLATFORM="sparc-sunos57"
CC="cc"
CXX="CC"
CMAKE="/space/berk/Dashboards/CMake-CC/bin/cmake"
CMAKE="/space/kitware/Dashboards/CMake19/CMakeBin/bin/cmake"
DISPLAY=:0.0
export DISPLAY
......
......@@ -23,9 +23,9 @@
#
# Release version number.
TAG="HEAD"
PARAVIEW_VERSION="1.4"
VERSION="${PARAVIEW_VERSION}.0"
TAG="ParaView-1-6-3"
PARAVIEW_VERSION="1.6"
VERSION="${PARAVIEW_VERSION}.3"
RELEASE="1"
# Project configuration.
......@@ -42,9 +42,6 @@ CVS_PASS="paraview"
CMAKE="cmake"
MAKE="make"
TEST_SUBTREE=ParaView
INSTALL_SUBTREE=ParaView
# ParaView release root directory.
RELEASE_ROOT_NAME="ParaViewReleaseRoot"
RELEASE_ROOT="${HOME}/${RELEASE_ROOT_NAME}"
......@@ -331,7 +328,7 @@ config()
echo "${CONFIG_FILE} should specify CC, CXX, and PLATFORM." &&
return 1
fi
export CC CXX CFLAGS CXXFLAGS PATH LD_LIBRARY_PATH DISPLAY
export CC CXX CFLAGS CXXFLAGS LDFLAGS PATH LD_LIBRARY_PATH DISPLAY
}
#-----------------------------------------------------------------------------
......@@ -339,16 +336,25 @@ checkout()
{
[ -z "${DONE_checkout}" ] || return 0 ; DONE_checkout="yes"
config || return 1
echo "Exporting ${CVS_MODULE} from cvs ..." &&
echo "Updating ${CVS_MODULE} from cvs ..." &&
(
rm -rf ${PROJECT}-${VERSION} &&
rm -rf CheckoutTemp &&
mkdir CheckoutTemp &&
cd CheckoutTemp &&
cvs -q -z3 -d $CVSROOT export -r ${TAG} ${CVS_MODULE} &&
mv ${CVS_MODULE} ../${PROJECT}-${VERSION} &&
cd .. &&
rm -rf CheckoutTemp
if [ -d ${PROJECT}-${VERSION}/CVS ]; then
cd ${PROJECT}-${VERSION} &&
cvs -q -z3 -d $CVSROOT update -dAP -r ${TAG} &&
rm -rf Xdmf/Utilities/expat &&
rm -rf Xdmf/Utilities/zlib
else
rm -rf ${PROJECT}-${VERSION} &&
rm -rf CheckoutTemp &&
mkdir CheckoutTemp &&
cd CheckoutTemp &&
cvs -q -z3 -d $CVSROOT co -r ${TAG} ${CVS_MODULE} &&
rm -rf ${CVS_MODULE}/Xdmf/Utilities/expat &&
rm -rf ${CVS_MODULE}/Xdmf/Utilities/zlib &&
mv ${CVS_MODULE} ../${PROJECT}-${VERSION} &&
cd .. &&
rm -rf CheckoutTemp
fi
) >Logs/checkout.log 2>&1 || error_log Logs/checkout.log
}
......@@ -384,7 +390,7 @@ source_tarball()
(
mkdir -p Tarballs &&
rm -rf Tarballs/${PROJECT}-${VERSION}.tar* &&
tar cvf Tarballs/${PROJECT}-${VERSION}.tar ${PROJECT}-${VERSION} &&
tar cvf Tarballs/${PROJECT}-${VERSION}.tar --exclude CVS ${PROJECT}-${VERSION} &&
gzip -c Tarballs/${PROJECT}-${VERSION}.tar >Tarballs/${PROJECT}-${VERSION}.tar.gz &&
compress -cf Tarballs/${PROJECT}-${VERSION}.tar >Tarballs/${PROJECT}-${VERSION}.tar.Z &&
rm -rf Tarballs/${PROJECT}-${VERSION}.tar
......@@ -405,7 +411,11 @@ source_zipfile()
(
mkdir -p Tarballs &&
rm -rf Tarballs/${PROJECT}-${VERSION}.zip &&
zip -r Tarballs/${PROJECT}-${VERSION}.zip ${PROJECT}-${VERSION}
rm -rf Tarballs/${PROJECT}-${VERSION} &&
tar c --exclude CVS ${PROJECT}-${VERSION} | (cd Tarballs; tar x) &&
cd Tarballs &&
zip -r ${PROJECT}-${VERSION}.zip ${PROJECT}-${VERSION} &&
rm -rf ${PROJECT}-${VERSION}
) >Logs/source_zipfile.log 2>&1 || error_log Logs/source_zipfile.log
}
......@@ -458,6 +468,7 @@ CMAKE_BUILD_TYPE:STRING=Release
CMAKE_INSTALL_PREFIX:PATH=/usr/local
CMAKE_SKIP_RPATH:BOOL=1
CMAKE_VERBOSE_MAKEFILE:BOOL=TRUE
VTK_USE_64BIT_IDS:BOOL=OFF
VTK_USE_HYBRID:BOOL=ON
VTK_USE_MPI:BOOL=OFF
VTK_USE_PARALLEL:BOOL=ON
......@@ -520,12 +531,15 @@ install()
{
[ -z "${DONE_install}" ] || return 0 ; DONE_install="yes"
config || return 1
[ -f "${PROJECT}-${VERSION}-${PLATFORM}/bin/ParaView" ] || build || return 1
[ -f "${PROJECT}-${VERSION}-${PLATFORM}/bin/paraview" ] || build || return 1
echo "Running make install ..." &&
(
rm -rf Install &&
cd "${PROJECT}-${VERSION}-${PLATFORM}/${INSTALL_SUBTREE}" &&
${MAKE} install DESTDIR="${RELEASE_ROOT}/Install"
(
cd "${PROJECT}-${VERSION}-${PLATFORM}" &&
${MAKE} install DESTDIR="${RELEASE_ROOT}/Install"
) &&
rm -rf Install/usr/local/include Install/usr/local/lib/vtk
) >Logs/install.log 2>&1 || error_log Logs/install.log
}
......@@ -534,7 +548,7 @@ strip()
{
[ -z "${DONE_strip}" ] || return 0 ; DONE_strip="yes"
config || return 1
[ -f "Install${PREFIX}/bin/ParaView" ] || install || return 1
[ -f "Install${PREFIX}/bin/paraview" ] || install || return 1
echo "Stripping executables ..." &&
(
strip Install${PREFIX}/bin/*
......@@ -546,7 +560,7 @@ manifest()
{
[ -z "${DONE_manifest}" ] || return 0 ; DONE_manifest="yes"
config || return 1
[ -f "Install${PREFIX}/bin/ParaView" ] || install || return 1
[ -f "Install${PREFIX}/bin/paraview" ] || install || return 1
echo "Writing MANIFEST ..." &&
(
mkdir -p Install${PREFIX}${DOC_DIR} &&
......
#!/bin/sh
MACHINES=""
MACHINES="${MACHINES} naboo"
MACHINES="${MACHINES} shannara"
MACHINES="${MACHINES} destiny"
MACHINES="${MACHINES} rapture"
run()
{
CMD="'$1'"; shift; for i in "$@"; do CMD="${CMD} '$i'"; done
eval "$CMD"
}
clean()
{
for m in $MACHINES; do
./paraview_release.sh remote $m clean
done
}
binary()
{
for m in $MACHINES; do
nohup ./paraview_release.sh remote_binary $m >$m.log 2>&1 &
done
}
logs()
{
for m in $MACHINES; do
nohup xterm -geometry 80x10 -title "$m" -e tail -f $m.log >/dev/null 2>&1 &
done
}
[ ! -z "$1" ] && run "$@"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment