artlog script

This commit is contained in:
philippe lhardy
2025-10-07 11:02:55 +02:00
parent 8d011bd818
commit 23d5368f40
3 changed files with 74 additions and 12 deletions

View File

@@ -1,4 +1,37 @@
#!/bin/bash
# SPDX-FileCopyrightText: 2025 artlog@l0g.eu
# SPDX-License-Identifier: AGPL-3.0-or-later
#
csv_file="$1"
python3 convert_nextcloud_poll_csv.py "$csv_file" 'Très Bien' 'Bien' 'Assez Bien' 'Passable' 'Insuffisant' 'A Rejeter'
toolsdir=../lib
pushd $toolsdir >/dev/null
toolsdir=$(pwd)
source metascript.sh
popd >/dev/null
while [[ $# > 0 ]]
do
case "$1" in
*)
if [[ -z $csv_file ]]
then
csv_file="$1"
else
parsemetaarg "$1"
fi
;;
esac
shift
done
metarun=metarun
if [[ -z $csv_file ]]
then
log_error "Missing csv_file argument"
exit 1
fi
enforcefile "$csv_file" exists
$metarun python3 convert_nextcloud_poll_csv.py "$csv_file" 'Très Bien' 'Bien' 'Assez Bien' 'Passable' 'Insuffisant' 'A Rejeter'