Skip to content

Commit

Permalink
removing gemc.zip after unpacking it
Browse files Browse the repository at this point in the history
  • Loading branch information
maureeungaro committed Nov 12, 2024
1 parent b8b1768 commit 1618390
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 18 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ to:
<detector name="cadBeamlineFTOFF/" factory="CAD"/>
```

## Validation

See [clas12-validation](https://github.com/jeffersonlab/clas12-validation) for validation of the CLAS12 simulation.
In particular check this validation.yml

## Feedback

Please use CLAS12 discourse for feedback on anything clas12tags related:
Expand Down
37 changes: 19 additions & 18 deletions cron_gemc_artifact_install_jlab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

# Purpose: Install gemc artifact in JLab's CVMFS


workdir=/work/clas12/ungaro/tmp
fedoradir=/scigroup/cvmfs/geant4/fedora36-gcc12/clas12Tags/dev/experiments
almadir=/scigroup/cvmfs/geant4/almalinux9-gcc11/clas12Tags/dev/experiments
Expand All @@ -12,8 +11,8 @@ cd $workdir
echo
echo "Cloning or pulling clas12Tags repo"
if [ -d clas12Tags ]; then
cd clas12Tags
git pull
cd clas12Tags
git pull
else
git clone https://github.com/gemc/clas12Tags.git
cd clas12Tags
Expand All @@ -22,24 +21,24 @@ fi
# remove all files in that are not present in the repo
echo "Removing files not present in $fedoradir"
for file in $(find "$fedoradir" -type f); do
# Get the relative path of the file from the fedoradir directory
relative_path="${file#$fedoradir/}"
# Check if the file does not exist in the 'experiments' subdirectory of the current directory
if [[ ! -f "experiments/$relative_path" ]]; then
echo "Removing $file" # Print the file being removed for confirmation
rm "$file"
fi
# Get the relative path of the file from the fedoradir directory
relative_path="${file#$fedoradir/}"
# Check if the file does not exist in the 'experiments' subdirectory of the current directory
if [[ ! -f "experiments/$relative_path" ]]; then
echo "Removing $file" # Print the file being removed for confirmation
rm "$file"
fi
done

echo "Removing files not present in $almadir"
for file in $(find "$almadir" -type f); do
# Get the relative path of the file from the fedoradir directory
relative_path="${file#$almadir/}"
# Check if the file does not exist in the 'experiments' subdirectory of the current directory
if [[ ! -f "experiments/$relative_path" ]]; then
echo "Removing $file" # Print the file being removed for confirmation
rm "$file"
fi
# Get the relative path of the file from the fedoradir directory
relative_path="${file#$almadir/}"
# Check if the file does not exist in the 'experiments' subdirectory of the current directory
if [[ ! -f "experiments/$relative_path" ]]; then
echo "Removing $file" # Print the file being removed for confirmation
rm "$file"
fi
done

echo "Copying files to $fedoradir and $almadir"
Expand All @@ -53,6 +52,8 @@ $workdir/clas12Tags/bin/get_last_ci_artifact.py fedora
echo "Getting last CI artifact in almalinux"
cd $almadir/..
pwd
rm gemc.zip
$workdir/clas12Tags/bin/get_last_ci_artifact.py almalinux
echo
echo Done.
echo Done.
rm gemc.zip

0 comments on commit 1618390

Please sign in to comment.