-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76e5416
commit b46f615
Showing
2 changed files
with
24 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,30 +25,31 @@ elif [ -f "$tarball" ]; then | |
tarball=$(realpath temp) | ||
else | ||
echo "ERROR: tarball must be a file or a folder" | ||
exit 1 | ||
fi | ||
# go to the checkout location | ||
cd $checkout_location | ||
echo "Using temporary tarball copy in $tarball" | ||
# now read the commit hashes from the diff folder in the tarball | ||
# read the commit hashes from the diff folder in the tarball | ||
base_commit=$(cat $tarball/diff/base_commit_hash.txt) | ||
analysis_commit=$(cat $tarball/diff/analysis_commit_hash.txt) | ||
analysis_name=$(cat $tarball/diff/analysis_name.txt) | ||
|
||
# now checkout the base repository with the commit hash | ||
# checkout the base repository with the commit hash | ||
git clone --recursive [email protected]:KIT-CMS/CROWN | ||
cd CROWN | ||
git checkout $base_commit | ||
# now apply the base diff | ||
# apply the base diff | ||
git apply $tarball/diff/base_diff.patch | ||
# now setup the analysis with the init script | ||
# setup the analysis with the init script | ||
bash init.sh $analysis_name | ||
# now checkout the analysis repository with the commit hash | ||
# checkout the analysis repository with the commit hash | ||
cd analysis_configurations/$analysis_name | ||
git checkout $analysis_commit | ||
# now apply the analysis diff | ||
# apply the analysis diff | ||
git apply $tarball/diff/analysis_diff.patch | ||
# cleanup the temporary tarball | ||
rm -rf $tarball | ||
echo "**************************************************************" | ||
echo "* Setup from tarball finished. You can now run the analysis *" | ||
echo "**************************************************************" | ||
echo "**************************************************************" |