-
Notifications
You must be signed in to change notification settings - Fork 207
Expand file tree
/
Copy pathbuild
More file actions
executable file
·32 lines (26 loc) · 763 Bytes
/
build
File metadata and controls
executable file
·32 lines (26 loc) · 763 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
#!/usr/bin/env bash
DESTINATION=${1:-/Volumes/share/chowdown}
BASEURL=${2:-http://chowdown.local}
BRANCH=$(git branch --show-current)
if ! [ -d "$DESTINATION" ]; then
echo "Destination does not exist: $DESTINATION"
exit 1
fi
echo "Building site ($BRANCH) to $DESTINATION"
echo "URL will be $BASEURL"
# echo "Go ahead with build?"
# select yn in "Yes" "No"; do
# case $yn in
# Yes ) echo "Ok."; break;;
# No ) echo "Exiting."; exit;;
# esac
# done
echo "Incremental or full?"
select choice in "Incremental" "Full" "Quit"; do
case $choice in
Incremental ) INCREMENTAL="--incremental"; break;;
Full ) INCREMENTAL=""; break;;
Quit ) echo "Exiting."; exit;;
esac
done
jekyll build -d $DESTINATION -b $BASEURL --trace $INCREMENTAL