2 scratch_dir=${HOME}/tmp
4 function publishscisoft(){
5 local ts=$(date -d "today" +"%Y%m%d%H%M%S")
6 local tmp_packages="${scratch_dir}/publish-${ts}"
8 mkdir -p ${tmp_packages} || exit 1
11 curl -O https://scisoft.fnal.gov/scisoft/bundles/tools/copyFromJenkins
12 chmod a+x copyFromJenkins
14 curl -O https://scisoft.fnal.gov/scisoft/bundles/tools/copyToSciSoft
15 chmod a+x copyToSciSoft
23 find ./ -name "*bz2" |xargs -n 1 -I {} ./copyToSciSoft --node scisoftportal.fnal.gov {}