diff options
Diffstat (limited to 'support/chklref/release.sh')
-rwxr-xr-x | support/chklref/release.sh | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/support/chklref/release.sh b/support/chklref/release.sh index 3455541c97..6957294423 100755 --- a/support/chklref/release.sh +++ b/support/chklref/release.sh @@ -10,6 +10,7 @@ CHKLREF_DIR="$LOCAL_TMPDIR/chklref" # Perform git archive git_archive() { + echo '-- Creating an archive from the git repository' cwd=$(pwd) [[ -d "$LOCAL_TMPDIR" ]] && rm -rf "$LOCAL_TMPDIR" mkdir -p "$CHKLREF_DIR" @@ -19,6 +20,7 @@ git_archive() { } compile_doc() { + echo '-- Compiling the documentation' cwd=$(pwd) cd "$CHKLREF_DIR/doc" make @@ -26,23 +28,34 @@ compile_doc() { } create_tds() { + echo '-- Creating chklref.tds.zip' cwd=$(pwd) mkdir -p "$CHKLREF_DIR/chklref.tds" cd "$CHKLREF_DIR/chklref.tds" mkdir -p tex/latex/chklref mkdir -p doc/latex/chklref + mkdir -p doc/man/man1 mkdir -p scripts/chklref cp ../chklref.sty tex/latex/chklref cp ../doc/chklref.{tex,pdf} doc/latex/chklref + cp ../doc/chklref.1 doc/man/man1 cp ../README.md doc/latex/chklref cp ../chklref.pl scripts/chklref - cd .. - zip -r chklref.tds.zip chklref.tds - rm -rf chklref.tds + zip -r ../../chklref.tds.zip * + rm -rf "$CHKLREF_DIR/chklref.tds" + cd "$cwd" +} + +create_zip() { + echo '-- Creating chklref.zip' + cwd=$(pwd) + cd "$CHKLREF_DIR/.." + zip -r chklref.zip chklref chklref.tds.zip cd "$cwd" } git_archive compile_doc create_tds -zip -r "$CHKLREF_DIR.zip" "$CHKLREF_DIR"
\ No newline at end of file +create_zip +echo "-- $CHKLREF_DIR" |