mirror of
https://github.com/maxkratz/iflye.git
synced 2024-09-16 19:59:59 +00:00
Adapted rendering script
This commit is contained in:
parent
e6df1a6e20
commit
450f879ed5
1 changed files with 20 additions and 3 deletions
|
@ -3,10 +3,27 @@
|
|||
set -e
|
||||
|
||||
# Find all files with suffix .csv
|
||||
BASE_PATH="../metrics"
|
||||
cp $BASE_PATH/*.csv .
|
||||
if [ $1 = "iflye" ]; then
|
||||
BASE_PATH="../metrics"
|
||||
cp $BASE_PATH/*.csv .
|
||||
|
||||
FILES=$(find . -name '*.csv')
|
||||
elif [ $1 = "idyve" ]; then
|
||||
BASE_PATH="../idyve-output"
|
||||
PATHS=$(find $BASE_PATH -name 'metrics.csv')
|
||||
for p in $PATHS
|
||||
do
|
||||
current_p=$(echo $p | awk -F / '{ print $(NF-1) }')
|
||||
mkdir -p $current_p
|
||||
cp $p ./$current_p/metrics.csv
|
||||
done
|
||||
|
||||
FILES=$(find . -name '*.csv')
|
||||
else
|
||||
echo "First parameter was invalid."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
FILES=$(find . -name '*.csv')
|
||||
for f in $FILES
|
||||
do
|
||||
# Set filename to latex env, this is needed by the tex template
|
||||
|
|
Loading…
Reference in a new issue