From d438e9da4b7e8600ff2ac8c0819625ffcbfd1951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=A5=E7=BE=8E=E7=8C=AB?= Date: Fri, 5 Jan 2018 11:27:59 +0800 Subject: [PATCH] Create a symbolic link to the MotionCor2_x.x.x executable. (#6826) * Create a symbolic link for MotionCor2. * Create a symbolic link for MotionCor2. * Create a symbolic link for MotionCor2. * Create a symbolic link for MotionCor2. --- var/spack/repos/builtin/packages/motioncor2/package.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/var/spack/repos/builtin/packages/motioncor2/package.py b/var/spack/repos/builtin/packages/motioncor2/package.py index cd4db241f0..e99a052c09 100644 --- a/var/spack/repos/builtin/packages/motioncor2/package.py +++ b/var/spack/repos/builtin/packages/motioncor2/package.py @@ -51,3 +51,5 @@ def install(self, spec, prefix): mkdirp(prefix.bin) for files in glob("MotionCor2_*"): install(files, prefix.bin) + with working_dir(prefix.bin): + symlink('MotionCor2_{0}'.format(spec.version), 'MotionCor2')