Skip to content

Commit 814f3e0

Browse files
committed
build-site: only build files that have changed
1 parent bfeb045 commit 814f3e0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build-site

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ build_src_pages () {
77
for md in src/*.md; do
88
html=${md##*/}
99
html="${DEPLOY_DIR}/${html/%.md/.html}"
10+
11+
# only build files that have changed
12+
[[ $html -ot $md ]] || continue
13+
1014
echo "Converting $md to $html"
1115

1216
cat src/template_pre.html > "$html"
@@ -21,6 +25,9 @@ build_man_pages () {
2125
for scd in labwc/docs/*.scd; do
2226
html=${scd##*/}
2327
html="${DEPLOY_DIR}/${html/%.scd/.html}"
28+
29+
[[ $html -ot $scd ]] || continue
30+
2431
echo "Converting $scd to $html"
2532

2633
sed 's/sans-serif;/monospace;/' src/template_pre.html > "$html"

0 commit comments

Comments
 (0)