Skip to content

Commit 9358eb0

Browse files
committed
Merge branch 'develop' into feature/value-view-interface
2 parents 52383b9 + 224c6ef commit 9358eb0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/devtools/tpl-manager.py

+6
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ def parse_args():
6464
parser.add_argument('--skip-init', action='store_true',
6565
help='Skip setting up and configuring Spack.')
6666

67+
parser.add_argument('--id', type=str, default="",
68+
help='ID string to postfix on initconfig file.')
69+
6770
return parser.parse_args()
6871

6972
# Parse the json formatted spec list...
@@ -173,6 +176,9 @@ def build_deps(args):
173176
# Install only the dependencies for Spheral and create CMake configure file
174177
if "Error: " in sexe("{0} dev-build -q --fresh -u initconfig {1}@develop%{2} 2>&1 | tee -a \"tpl-build-{2}-out.txt\"".format(spack_cmd, package_name, s), ret_output=True): sys.exit(1)
175178

179+
if args.id:
180+
sexe("file=$(ls -t *.cmake | head -n 1); mv \"$file\" \"${file%.cmake}-"+args.id+".cmake\"")
181+
176182
if not args.no_clean:
177183
sexe("rm -f spec-info-* tpl-build-* spack-build-* spack-configure-args.txt")
178184

0 commit comments

Comments
 (0)