Skip to content

Commit

Permalink
Also install a man-page for local builds
Browse files Browse the repository at this point in the history
  • Loading branch information
trasch committed Sep 3, 2024
1 parent 6c2f59e commit a75e9b5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions install_mvt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,20 @@ then
fi

echo "'mvt' installed in /usr/local/bin"

swift package --quiet plugin generate-manual 2>&1 >/dev/null
if [[ $? -ne 0 ]]
then
echo "Failed to build the 'mvt' man-page"
exit 1
fi

cp .build/plugins/GenerateManual/outputs/mvt/mvt.1 /usr/local/share/man/man1/
if [[ $? -ne 0 ]]
then
echo "Failed to copy the 'mvt.1' man-page to /usr/local/share/man/man1/"
exit 1
fi

echo "'mvt' man-page installed in /usr/local/share/man/man1"
exit 0

0 comments on commit a75e9b5

Please sign in to comment.