Skip to content

Commit

Permalink
Don't commit man pages
Browse files Browse the repository at this point in the history
Don't commit man pages, since that bloats commits.

Attempt to build them in `bin/package`. This is fraught, since we need
`help2man`. Hopefully this works!

type: development
  • Loading branch information
casey committed Apr 21, 2020
1 parent 4d67d3a commit c22df5a
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 393 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/book/src/references
/book/src/references.md
/completions
/man
/target
/wiki
/www/book
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changelog

UNRELEASED - 2020-04-21
-----------------------
- :wrench: [`xxxxxxxxxxxx`](https://github.com/casey/intermodal/commits/master) Don't commit the book - _Casey Rodarmor <casey@rodarmor.com>_
- :wrench: [`xxxxxxxxxxxx`](https://github.com/casey/intermodal/commits/master) Don't commit man pages - _Casey Rodarmor <casey@rodarmor.com>_
- :wrench: [`4d67d3a10d17`](https://github.com/casey/intermodal/commit/4d67d3a10d17db3c63af092a936eb5994ee107b1) Don't commit the book - _Casey Rodarmor <casey@rodarmor.com>_
- :wrench: [`28114c3d64dd`](https://github.com/casey/intermodal/commit/28114c3d64dde5e0275c936b0019eaf4760ba559) Don't commit shell completion scripts - _Casey Rodarmor <casey@rodarmor.com>_
- :art: [`4f4464e3a2a7`](https://github.com/casey/intermodal/commit/4f4464e3a2a7f4aaffea8dbe38dd110ad9be4393) Get `st_flags` from `MetadataExt` on MacOS - _Casey Rodarmor <casey@rodarmor.com>_
- :sparkles: [`deca555ac3b3`](https://github.com/casey/intermodal/commit/deca555ac3b3b8f665ee6415f80e05b2bb5e4af7) Allow suppressing output with `--quiet` - Fixes [#174](https://github.com/casey/intermodal/issues/174) - _Celeo <celeodor@gmail.com>_
Expand Down
19 changes: 16 additions & 3 deletions bin/package
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,17 @@ test -f Cargo.lock || cargo generate-lockfile

echo "Building $bin..."

if [ "$os" = "ubuntu-latest" ]; then
sudo apt-get install musl-tools
fi
case $os in
ubuntu-latest)
sudo apt-get help2man install musl-tools
;;
macos-latest)
brew install help2man
;;
windows-latest)
choco install gnuwin
;;
esac

case $os in
ubuntu-latest | macos-latest)
Expand All @@ -35,6 +43,11 @@ rm -rf completions
mkdir completions
$executable completions --dir completions

echo "Building man pages..."
rm -rf man
mkdir man
cargo run --package gen man

echo "Copying release files..."
mkdir dist
cp -r \
Expand Down
23 changes: 0 additions & 23 deletions man/imdl-completions.1

This file was deleted.

161 changes: 0 additions & 161 deletions man/imdl-torrent-create.1

This file was deleted.

31 changes: 0 additions & 31 deletions man/imdl-torrent-link.1

This file was deleted.

15 changes: 0 additions & 15 deletions man/imdl-torrent-piece-length.1

This file was deleted.

20 changes: 0 additions & 20 deletions man/imdl-torrent-show.1

This file was deleted.

34 changes: 0 additions & 34 deletions man/imdl-torrent-stats.1

This file was deleted.

24 changes: 0 additions & 24 deletions man/imdl-torrent-verify.1

This file was deleted.

Loading

0 comments on commit c22df5a

Please sign in to comment.