-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmembers-sign.sh
More file actions
executable file
·24 lines (20 loc) · 691 Bytes
/
members-sign.sh
File metadata and controls
executable file
·24 lines (20 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /bin/bash
INKSCAPE="/usr/bin/inkscape"
SOURCES=$(cat sources.txt)
MEMBERS=$(cat members-list.txt)
# Need spaces in the members-list ? Use non-breaking spaces ! ( )
for src in $SOURCES
do
for member in $MEMBERS
do
name=$(echo $member | cut -d ":" -f 1); title=$(echo $member | cut -d ":" -f 2)
cp $src.svg img_host/$name-$src.svg
sed -i "s/MyNameIs15Chars/$name/" img_host/$name-$src.svg
sed -i "s/MyTitleIs/$title/" img_host/$name-$src.svg
echo Rendering img_host/$name-$src
$INKSCAPE --export-type="png" img_host/$name-$src.svg # >/dev/null
rm img_host/$name-$src.svg
done
done
echo; echo "All done !"; echo "Press [Enter] to close this window..."
read && exit 0