-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopy-pdfs.sh
44 lines (39 loc) · 1.06 KB
/
copy-pdfs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash -e
FROM=$HOME/src/adapt-results
TO=$PWD
for DIR in $FROM/*/cube/linear/
do
echo $DIR
PROJ=`dirname $DIR`
PROJ=`dirname $PROJ`
PROJ=`basename $PROJ`
cp $DIR/quality.pdf $TO/${PROJ}-cube-linear-quality.pdf
cp $DIR/length.pdf $TO/${PROJ}-cube-linear-length.pdf
done
for DIR in $FROM/*/cube-cylinder/linear/
do
echo $DIR
PROJ=`dirname $DIR`
PROJ=`dirname $PROJ`
PROJ=`basename $PROJ`
cp $DIR/quality.pdf $TO/${PROJ}-cube-cylinder-linear-quality.pdf
cp $DIR/length.pdf $TO/${PROJ}-cube-cylinder-linear-length.pdf
done
for DIR in $FROM/*/cube-cylinder/polar-1/
do
echo $DIR
PROJ=`dirname $DIR`
PROJ=`dirname $PROJ`
PROJ=`basename $PROJ`
cp $DIR/quality.pdf $TO/${PROJ}-cube-cylinder-polar-1-quality.pdf
cp $DIR/length.pdf $TO/${PROJ}-cube-cylinder-polar-1-length.pdf
done
for DIR in $FROM/*/cube-cylinder/polar-2/
do
echo $DIR
PROJ=`dirname $DIR`
PROJ=`dirname $PROJ`
PROJ=`basename $PROJ`
cp $DIR/quality.pdf $TO/${PROJ}-cube-cylinder-polar-2-quality.pdf
cp $DIR/length.pdf $TO/${PROJ}-cube-cylinder-polar-2-length.pdf
done