-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpub-all-tamwag.sh
executable file
·48 lines (42 loc) · 1.62 KB
/
pub-all-tamwag.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
45
46
47
48
# Shell script to publish all the tamwag sites.
# Example usage: sh pub-all-tamwag.sh production
if [ $1 ]
then
e=$1
else
e="_default"
fi
if [ $e = "-e" ]
then
echo "Note: do not include the -e flag. "
echo "Example of correct usage: sh pub-all-tamwag.sh production"
exit
fi
echo "\nEnvironment $1"
echo "---------------------------------";
echo "---------------------------------\n\n";
echo "Publishing FAWF";
hugo --cleanDestinationDir -e $e -s ~/projects/tamwag_serials/fawf-nyudlts/;
echo "---------------------------------";
echo "---------------------------------\n\n";
echo "Publishing Liberator";
hugo --cleanDestinationDir -e $e -s ~/projects/tamwag_serials/liberator-nyudlts/;
echo "---------------------------------";
echo "---------------------------------\n\n";
echo "Publishing Palante";
hugo --cleanDestinationDir -e $e -s ~/projects/tamwag_serials/palante-nyudlts/;
echo "---------------------------------";
echo "---------------------------------\n\n";
echo "Publishing Freedom";
hugo --cleanDestinationDir -e $e -s ~/projects/tamwag_serials/freedom-nyudlts/;
echo "---------------------------------";
echo "---------------------------------\n\n";
echo "Publishing Southern Worker";
hugo --cleanDestinationDir -e $e -s ~/projects/tamwag_serials/southernworker-nyudlts/;
echo "---------------------------------";
echo "---------------------------------\n\n";
echo "Publishing The Masses";
hugo --cleanDestinationDir -e $e -s ~/projects/tamwag_serials/themasses-nyudlts/;
echo "---------------------------------\n\n";
echo "Publishing Revolt";
hugo --cleanDestinationDir -e $e -s ~/projects/tamwag_serials/revolt-nyudlts/;