Skip to content

Commit

Permalink
feat: Move generated files to target
Browse files Browse the repository at this point in the history
Reduces complexity at the cost of not version controlling changes to
these files.
  • Loading branch information
donovanglover committed Oct 28, 2023
1 parent 2d9a5aa commit 7ca9a7b
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 262 deletions.
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

8 changes: 4 additions & 4 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ package() {

install -Dm755 "target/release/hyprdim" "$pkgdir/usr/bin/hyprdim"

install -Dm644 "completions/_hyprdim" "$pkgdir/usr/share/zsh/site-functions/_hyprdim"
install -Dm644 "completions/hyprdim.bash" "$pkgdir/usr/share/bash-completion/completions/hyprdim"
install -Dm644 "completions/hyprdim.fish" "$pkgdir/usr/share/fish/vendor_completions.d/hyprdim.fish"
install -Dm644 "man/hyprdim.1" "$pkgdir/usr/share/man/man1/hyprdim.1"
install -Dm644 "target/completions/_hyprdim" "$pkgdir/usr/share/zsh/site-functions/_hyprdim"
install -Dm644 "target/completions/hyprdim.bash" "$pkgdir/usr/share/bash-completion/completions/hyprdim"
install -Dm644 "target/completions/hyprdim.fish" "$pkgdir/usr/share/fish/vendor_completions.d/hyprdim.fish"
install -Dm644 "target/man/hyprdim.1" "$pkgdir/usr/share/man/man1/hyprdim.1"

install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
Expand Down
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use clap_mangen::Man;
static NAME: &str = "hyprdim";

fn generate_man_pages(cmd: Command) {
let man_dir = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("man");
let man_dir = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("target/man");

std::fs::create_dir_all(&man_dir).unwrap();

Expand All @@ -20,7 +20,7 @@ fn generate_man_pages(cmd: Command) {
}

fn generate_shell_completions(mut cmd: Command) {
let comp_dir = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("completions");
let comp_dir = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("target/completions");

std::fs::create_dir_all(&comp_dir).unwrap();

Expand Down
55 changes: 0 additions & 55 deletions completions/_hyprdim

This file was deleted.

78 changes: 0 additions & 78 deletions completions/hyprdim.bash

This file was deleted.

12 changes: 0 additions & 12 deletions completions/hyprdim.fish

This file was deleted.

109 changes: 0 additions & 109 deletions man/hyprdim.1

This file was deleted.

0 comments on commit 7ca9a7b

Please sign in to comment.