forked from ETSIhackers/GATEROOT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
32 lines (23 loc) · 1.13 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
set shell := ['bash', '-ceuo', 'pipefail']
default: run
@ensure-build-dir:
mkdir -p cpp/build
@generate:
cd PETSIRD/model; \
yardl generate
@configure: generate ensure-build-dir
cd cpp/build; \
cmake -GNinja ..
@build: generate configure
cd cpp/build; \
ninja
@download-test-data:
export AZURE_STORAGE_SAS_TOKEN="sp=rl&st=2023-11-14T18:39:07Z&se=2024-11-15T02:39:07Z&spr=https&sv=2022-11-02&sr=c&sig=0KVD7ORBM7Mx1%2BhVrVbqYcQycshhvT2XvdmrWVetiQM%3D"; \
dvc pull data/root/ETSIPETscanner_mIEC_1.root
@download-test-data-full:
export AZURE_STORAGE_SAS_TOKEN="sp=rl&st=2023-11-14T18:39:07Z&se=2024-11-15T02:39:07Z&spr=https&sv=2022-11-02&sr=c&sig=0KVD7ORBM7Mx1%2BhVrVbqYcQycshhvT2XvdmrWVetiQM%3D"; \
dvc pull
@run: build download-test-data
cpp/build/root_to_petsird --root-prefix data/root/ETSIPETscanner_mIEC_ --number-of-root-files 1 --petsird-file petsird.bin -s data/root/scanner_geometry.json
@run-full: build download-test-data-full
cpp/build/root_to_petsird --root-prefix data/root/ETSIPETscanner_mIEC_ --number-of-root-files 36 --petsird-file petsird-full.bin -s data/root/scanner_geometry.json