-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script for generating setup summary
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# Summarise O2Physics setup | ||
|
||
if [[ -n "$(which aliBuild)" ]]; then | ||
echo "aliBuild location: $(which aliBuild)" | ||
# echo "all aliBuild locations: $(whereis aliBuild)" | ||
aliBuild version | ||
else | ||
echo "aliBuild not found." | ||
fi | ||
|
||
for repo in alidist O2 O2Physics; do | ||
[[ -d "${repo}" ]] || { echo "Directory ${repo} not found."; continue; } | ||
echo "Last commit of ${repo}: $(cd "${repo}" && git log -n 1 --pretty="format:%ci %h")" | ||
done | ||
|
||
for pkg in O2 O2Physics; do | ||
log="$ALIBUILD_WORK_DIR/BUILD/${pkg}-latest/log" | ||
[[ -f "${log}" ]] || { echo "Log file ${log} not found."; continue; } | ||
echo "Last build of ${pkg}: $(stat -c "%y" "${log}")" | ||
done |