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