Page MenuHomeHEPForge

create_package.bat
No OneTemporary

create_package.bat

#!/bin/bash
vers=$1
echo '*************************************'
echo 'Creating package HiggsBounds-'$vers
startdir="$PWD"
namedir=`basename $PWD`
echo '*************************************'
echo ' '
echo './configure, then run example :'
echo ' '
./configure >temp.txt
cd example_programs
./demonstrateHiggsBounds_commandline.bat 2> temp_error.txt 1> temp_output.txt
echo 'Is there anything between here...'
grep 'hello' temp_output.txt
grep 'WARNING' temp_output.txt
grep 'Interrupt' temp_error.txt
grep 'Error' temp_error.txt
grep 'stop' temp_error.txt
rm temp_output.txt
rm temp_error.txt
echo '... and here'
cd ..
echo '*************************************'
echo 'update -for-comparison files'
mv -f example_data/HB_randomtest50points_HiggsBounds_results.dat example_data/HB_randomtest50points_HiggsBounds_results.dat-for-comparison
mv -f example_data/HB_randomtest50points_Key.dat example_data/HB_randomtest50points_Key.dat-for-comparison
cd example_programs
./demonstrateHiggsBounds_SM_vs_4thGen.bat 2> temp_error.txt > temp_output.txt
mv -f example-SM-results.dat example-SM-results.dat-for-comparison
mv -f example-4thGen-results.dat example-4thGen-results.dat-for-comparison
mv -f Key.dat Key.dat-for-comparison-SM_vs_4thGen
rm -f temp_output.txt
cd ..
cd example_programs
cp ../example_data/SLHA_example.in.fh ../example_data/SLHA_example.in.fh_temp
#./HBSLHAinputblocksfromFH ../example_data/SLHA_example.in
cd ..
./HiggsBounds LandH SLHA 3 1 example_data/SLHA_example.in.fh > temp.txt
mv -f example_data/SLHA_example.in.fh example_data/SLHA_example.in.fh-for-comparison
cd example_programs
cp ../example_data/SLHA_example.in.fh_temp ../example_data/SLHA_example.in.fh
#./HBSLHAinputblocksfromFH ../example_data/SLHA_example.in
cd ..
echo '*************************************'
echo ' '
echo 'make hyperclean :'
echo ' '
make hyperclean > temp.txt
echo 'remove the makefile:'
echo ' '
rm makefile
echo ' '
echo '*************************************'
echo ' '
echo 'CHECK THAT ESP = 2.0D-2 and use_weight=.True.'
echo ' '
grep 'eps=' S95tables.f90
grep 'logical :: use_weight' S95tables.f90
echo ' '
echo '*************************************'
echo ' '
echo 'CHECK THAT all delta_Mh are 0.0D0'
echo ' '
grep 'delta_Mh_LEP=' S95tables.f90
grep 'delta_Mh_TEV=' S95tables.f90
grep 'delta_Mh_LHC=' S95tables.f90
grep 'delta_Mhplus_LEP=' S95tables.f90
grep 'delta_Mhplus_TEV=' S95tables.f90
grep 'delta_Mhplus_LHC=' S95tables.f90
grep 'delta_M_LEP_default=' S95tables.f90
grep 'delta_M_TEV_default=' S95tables.f90
grep 'delta_M_LHC_default=' S95tables.f90
echo ' '
echo '*************************************'
echo ' '
echo 'CHECK THAT debug=.False and '
echo '#define DEBUGGING is commented out'
echo ' '
grep 'debug=' HiggsBounds_subroutines.F90
grep '#define DEBUGGING' HiggsBounds.F90
echo ' '
echo '*************************************'
echo ' '
echo 'CHECK THAT official=.True.'
echo ' '
grep 'official=' input.F90
echo ' '
echo 'CHECK number of neutralinos and charginos'
echo ' '
grep 'np(Chineut)=' HiggsBounds_subroutines.F90
grep 'np(Chiplus)=' HiggsBounds_subroutines.F90
echo ' '
echo '*************************************'
copyfiles=`ls minipaper.tex minipaper.bib minipaper.bbl minipaper.pdf read_commandline_from_web.txt write_out_input.txt *.f90 *.F90 *.F *.f *.bat README COPYING *.in */*.h */*.dat */*.gnu */*/*.dat */*/*/*.out */*-for-comparison */*.bat */*.F90 */*.f90 */*.F */*.f */*.input */*.dat-for-comparison-SM_vs_4thGen */*/*.txt */*/*/*.txt */*/*_HDecay */*/*.input */*.in */*.in.fh`
#echo $copyfiles
#tempdir="$namedir"F90
#echo 'tempdir=' $tempdir
#echo $copyfiles
tempdir="HiggsBounds-$vers"
#echo 'tempdir=' $tempdir
echo ' '
echo 'create '$tempdir':'
echo ' '
cd ..
mkdir "$tempdir"
listdir="cs-ratios_sigma-bg-Hb example_data example_programs Expt_tables Theory_tables Expt_tables/ATLtables Expt_tables/ATLtables/ATLtables2 Expt_tables/CMStables Expt_tables/CMStables/CMStables2 Expt_tables/CMStables/CMS_tautau_llh_1408.3316 Expt_tables/CMStables/CMS_tautau_llh_14029 Expt_tables/CDFtables Expt_tables/D0tables Expt_tables/D0tables/D0tables2 Expt_tables/LEPtables Expt_tables/LEPtables/LEPtables2 Expt_tables/TCBtables Theory_tables/HDecay_BR-SM Theory_tables/SM4 Theory_tables/fermiophobic"
for direcname in $listdir ; do
mkdir "$tempdir"/"$direcname"
done
cp "$namedir"/pubconfigure "$tempdir"/configure
cp "$namedir"/pubconfigure-with-chisq "$tempdir"/configure-with-chisq
for filename in $copyfiles ; do
cp "$namedir"/"$filename" "$tempdir"/"$filename"
done
echo 'removing some of the files not needed in the package'
#removefiles="PDGnumbering.f90 string_manip.f90 SLHA_manip.f90 extra_bits_for_SLHA.f90 extra_bits_for_chisquared.F90"
# example_programs/example_chisq_with_SLHA.F90
removefiles="example_programs/example_chisq_with_SLHA.F90 example_programs/example_chisq.F90 create_package.bat example_programs/plot_mhmax_llh_exp.gnu example_programs/example_functions.F90 example_programs/HBwithFH2-7-1.F example_programs/HBwithFH_compare_input.F example_programs/HBwithFH_SLHA.F example_programs/HBwithFH_test.F example_programs/HBwithFH_test2.F example_programs/HBSLHAinputblocksfromFH_extras_old.F create_clsb_binary_files.f90"
for filename in $removefiles ; do
rm "$tempdir"/"$filename"
done
echo 'create ../'$tempdir'.tar.gz :'
rm "$tempdir".tar.gz
COPYFILE_DISABLE=1 tar czf "$tempdir".tar.gz "$tempdir"
rm -r "$tempdir"
cd $namedir
echo '*************************************'
echo ' '
echo 'Is this the correct version number? '
grep 'vers=' usefulbits.f90
echo ' '
echo '*************************************'
echo ' does minipaper.tex have the correct version number?'
echo ' '
grep 'version' minipaper.tex
echo ' '
echo ' and minipaper.bib has been updated? (there *should* be something between here...'
grep '0811.4169' minipaper.bib
echo '... and here.'
latex minipaper.tex > temp.txt
bibtex minipaper > temp.txt
latex minipaper.tex > temp.txt
bibtex minipaper > temp.txt
latex minipaper.tex > temp.txt
dvipdf minipaper > temp.txt
rm temp.txt
cp minipaper.tex ../webversion/minipaper.tex
cp minipaper.bib ../webversion/minipaper.bib
cp minipaper.bbl ../webversion/minipaper.bbl
cp minipaper.pdf ../webversion/minipaper.pdf
echo '*************************************'
echo ' '
echo 'finished'
echo ' '
echo '*************************************'

File Metadata

Mime Type
text/x-shellscript
Expires
Wed, May 14, 11:43 AM (11 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5111499
Default Alt Text
create_package.bat (6 KB)

Event Timeline