Remove logic for legacy Modulefile

We already replaced Modulefile by metadata.json, so this logic is no
longer used.

Change-Id: I16e313b01e4cdc8c0c2689e0e5a59f2f5a1a96c7
This commit is contained in:
Takashi Kajinami 2023-10-12 23:09:38 +09:00
parent 493933a79c
commit e5ad7919f2
1 changed files with 3 additions and 7 deletions

View File

@ -3,14 +3,10 @@
- shell:
cmd: |
set -e
if [ -f Modulefile -o -f metadata.json ]; then
if [ -f Modulefile ]; then
MODULE=$(awk '/^name/ {print $NF}' Modulefile |tr -d \"\')
elif [ -f metadata.json ]; then
MODULE=$(python3 -c 'import json;print(json.load(open("metadata.json"))["name"])')
fi
if [ -f metadata.json ]; then
MODULE=$(python3 -c 'import json;print(json.load(open("metadata.json"))["name"])')
if [ -z "$MODULE" ]; then
echo "Module name not defined in Modulefile or metadata.json"
echo "Module name not defined in metadata.json"
else
mkdir -p "$MODULE"
rsync -a --exclude="$MODULE" --exclude ".*" . "$MODULE"