SFELPHOTON-1337: SwissMX split/ cleanup/move repositories

This commit is contained in:
2024-09-24 18:56:27 +02:00
parent e63c814662
commit 3a0367073e
8 changed files with 130 additions and 40 deletions

13
exec.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
# this file is copied by the Makefile to /sf/cristallina/bin/swissmx
# Check if Python version is less than 3.6
if python -c 'import sys; exit(1) if sys.version_info[0] < 3 or sys.version_info[1] < 6 else exit(0)'
then
BIN=python
else
BIN=/opt/gfa/python-3.8/latest/bin/python
fi
APP=/sf/cristallina/applications/SwissMX/swissmx.py
cd ${APP%/*}
echo $BIN $APP $*
$BIN $APP $*