summaryrefslogtreecommitdiffstats
path: root/ci/before_deploy.bash
diff options
context:
space:
mode:
Diffstat (limited to 'ci/before_deploy.bash')
-rwxr-xr-xci/before_deploy.bash7
1 files changed, 6 insertions, 1 deletions
diff --git a/ci/before_deploy.bash b/ci/before_deploy.bash
index e9530c0..6165827 100755
--- a/ci/before_deploy.bash
+++ b/ci/before_deploy.bash
@@ -23,7 +23,8 @@ pack() {
cp "target/$TARGET/release/$PROJECT_NAME" "$tempdir/$package_name/"
strip "$tempdir/$package_name/$PROJECT_NAME"
- # readme and license
+ # manpage, readme and license
+ cp "doc/$PROJECT_NAME.1" "$tempdir/$package_name"
cp README.md "$tempdir/$package_name"
cp LICENSE-MIT "$tempdir/$package_name"
cp LICENSE-APACHE "$tempdir/$package_name"
@@ -69,6 +70,10 @@ make_deb() {
install -Dm755 "target/$TARGET/release/$PROJECT_NAME" "$tempdir/usr/bin/$PROJECT_NAME"
strip "$tempdir/usr/bin/$PROJECT_NAME"
+ # manpage
+ install -Dm644 "doc/$PROJECT_NAME.1" "$tempdir/usr/share/man/man1/$PROJECT_NAME.1"
+ gzip --best "$tempdir/usr/share/man/man1/$PROJECT_NAME.1"
+
# readme and license
install -Dm644 README.md "$tempdir/usr/share/doc/$PROJECT_NAME/README.md"
install -Dm644 LICENSE-MIT "$tempdir/usr/share/doc/$PROJECT_NAME/LICENSE-MIT"