-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.sh
More file actions
executable file
·46 lines (33 loc) · 761 Bytes
/
make.sh
File metadata and controls
executable file
·46 lines (33 loc) · 761 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#! /bin/bash
## check directory
if [ -f "dlug-root" ]; then
echo "generating DLUG webseite ..."
else
echo "You must start this script from the DLUG project root directory!"
fi
## generate website
for f in *.pg;
do
b=$(basename "${f}" .pg)
echo "Processing $f to site/${b}.html ..."
bin/aswsg "$f" > "site/${b}.html"
done
## generate website archive
cd archiv
for f in *.pg;
do
b=$(basename "${f}" .pg)
echo "Processing $f to site/archiv/${b}.html ..."
../bin/aswsg "$f" > "../site/archiv/${b}.html"
done
## generate website projekte
cd ../projekte
for f in *.pg;
do
b=$(basename "${f}" .pg)
echo "Processing $f to site/projekte/${b}.html ..."
../bin/aswsg "$f" > "../site/projekte/${b}.html"
done
cd ..
echo "Done."
# EOF