|
@@ -26,6 +26,7 @@ build1() {
|
26
|
26
|
*.md) <"$srcpath" expand_includes | expand_variables >"$dstpath" ;;
|
27
|
27
|
*) <"$srcpath" expand_variables >"$dstpath" ;;
|
28
|
28
|
esac
|
|
29
|
+ mkdir -p "$MKIT_LOCAL"
|
29
|
30
|
echo "$dstpath" >> "$MKIT_LOCAL/built.lst"
|
30
|
31
|
}
|
31
|
32
|
|
|
@@ -38,6 +39,7 @@ build_manpages() {
|
38
|
39
|
do
|
39
|
40
|
mdfile="$manfile.md"
|
40
|
41
|
ronn -r "$mdfile"
|
|
42
|
+ mkdir -p "$MKIT_LOCAL"
|
41
|
43
|
echo "$manfile" >> "$MKIT_LOCAL/built.lst"
|
42
|
44
|
done
|
43
|
45
|
else
|
|
@@ -53,6 +55,7 @@ clean() {
|
53
|
55
|
test -f "$MKIT_LOCAL/built.lst" && {
|
54
|
56
|
<"$MKIT_LOCAL/built.lst" xargs -r rm -f
|
55
|
57
|
rm -f "$MKIT_LOCAL/built.lst"
|
|
58
|
+ rmdir --ignore-fail-on-non-empty "$MKIT_LOCAL"
|
56
|
59
|
}
|
57
|
60
|
true
|
58
|
61
|
}
|