# distrib-WIN32 -- construct a distribution for Windows (build on Xp) # # executed from top-level build directory, $1 = VERSION # # WINDOWS ONLY: DISTRIB hard-coded (no version in directory name, # and the directory is persistent) # # This distribution is for Advanced Installer. Note that the CV++ # libraries are handled as a Merge Module within the installer, so # no vcredist.exe is needed. # # This version copies any .DLL-s that are present in in/WIN32-VC # into the distribution. That should be just the Root DLL-s. # # NOTE: avoid using .. as that fails in the presence of symbolic links; # use `dirname "$PWD"` instead. if test -z "$1" then echo VERSION must be specified exit 1 fi if test ! -x bin/g4beamline -o ! -x bin/g4bl then echo wrong directory! exit 1 fi VERSION=$1 DISTRIB=G4beamline-WIN32 rm -fr $DISTRIB.msi $DISTRIB # clean up a bit rm -fr doc/html doc/doxygen.log *.dat *.hst *.ldd \ examples/*.dat examples/*.hst examples/*.out \ examples/*.heprep* examples/*.root \ examples/zap* examples/*.swf examples/*.mov examples/*.avi \ zap* mkdir $DISTRIB cp -RLp Validation bin doc examples share test $DISTRIB ### cleanup bin and any CVS rm -f $DIR/bin/clhep* $DIR/bin/coin* $DIR/bin/fftw* $DIR/bin/gsl* \ $DIR/bin/geant4* $DIR/bin/soxt* rm -fr $DISTRIB/*/CVS $DISTRIB/*/*/CVS $DISTRIB/*/*/*/CVS echo $DISTRIB directory created echo "Now you should run the AdvancedInstaller, open" `cygpath -m "$SOURCE/source.aip"` echo "edit the version number, make other changes (if necessary)," echo "and build the product (G4beamline.msi)."