-
Notifications
You must be signed in to change notification settings - Fork 0
/
before-release.sh
executable file
·25 lines (20 loc) · 1.02 KB
/
before-release.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
#!/bin/sh
SELF_DIR="$(dirname "$0")"
VERSION="$(cat "$SELF_DIR/version")"
(
cd "$SELF_DIR"
printf "git-" >"$SELF_DIR"/manifest.uuid
git rev-parse HEAD >>"$SELF_DIR"/manifest.uuid || (
printf "svn-r" >"$SELF_DIR"/manifest.uuid
svn info --show-item last-changed-revision >>"$SELF_DIR"/manifest.uuid
) || (
printf "unknown" >"$SELF_DIR"/manifest.uuid
)
)
tclsh "$SELF_DIR/tools/ruff.tcl" "::Introduction ::mtls" -preeval "source $SELF_DIR/doc/doc.ruff" \
-outdir "$SELF_DIR/doc" -outfile "mtls.html" -product "mtls" -version "$VERSION" \
-sortnamespaces false -hidenamespace ::Introduction -navigation sticky
tclsh "$SELF_DIR/tools/ruff.tcl" "::mtls" -preeval "source $SELF_DIR/doc/doc.ruff" \
-outdir "$SELF_DIR/doc" -outfile "mtls.n" -format nroff -product "mtls" -version "$VERSION"
tclsh "$SELF_DIR/tools/ruff.tcl" "::Introduction ::mtls" -preeval "source $SELF_DIR/doc/doc.ruff" \
-outdir "$SELF_DIR" -outfile "README.md" -format markdown -product "mtls" -version "$VERSION"