diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-09-30 17:49:08 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-09-30 17:49:08 +0200 |
commit | e7fa73097a110d2930bb0c367d7ce06fa530aa6e (patch) | |
tree | 80873795b60c9543246d47690b8cc596cbd5e8f3 /build | |
parent | fix(common/init): Set the full path to the `reuse` binary (diff) | |
download | flake-templates-e7fa73097a110d2930bb0c367d7ce06fa530aa6e.tar.gz flake-templates-e7fa73097a110d2930bb0c367d7ce06fa530aa6e.zip |
chore(version): v0.7.1 v0.7.1
Diffstat (limited to 'build')
-rw-r--r-- | build/awk/init | 6 | ||||
-rw-r--r-- | build/c/init | 6 | ||||
-rw-r--r-- | build/latex/academia/init | 6 | ||||
-rw-r--r-- | build/latex/letter/init | 6 | ||||
-rw-r--r-- | build/rust/init | 6 | ||||
-rw-r--r-- | build/shell/init | 6 |
6 files changed, 30 insertions, 6 deletions
diff --git a/build/awk/init b/build/awk/init index f8c8bb3..2c9c077 100644 --- a/build/awk/init +++ b/build/awk/init @@ -26,6 +26,10 @@ require() { exit 1 fi } +die() { + echo "$1" + exit 1 +} # Prompt the user for a specific variable. # ## Args: @@ -167,7 +171,7 @@ chmod +x update.sh [ -f ./watch.sh ] && chmod +x build.sh # Do the first run of reuse annotate -reuse="$(nix build nixpkgs#reuse --no-link --print-out-paths)" +reuse="$(nix build nixpkgs#reuse --no-link --print-out-paths)/bin/reuse" [ "$(echo "$reuse" | wc -l)" -ne 1 ] && die "Something is wrong with the nixpkgs#reuse derivation" git add . diff --git a/build/c/init b/build/c/init index f8c8bb3..2c9c077 100644 --- a/build/c/init +++ b/build/c/init @@ -26,6 +26,10 @@ require() { exit 1 fi } +die() { + echo "$1" + exit 1 +} # Prompt the user for a specific variable. # ## Args: @@ -167,7 +171,7 @@ chmod +x update.sh [ -f ./watch.sh ] && chmod +x build.sh # Do the first run of reuse annotate -reuse="$(nix build nixpkgs#reuse --no-link --print-out-paths)" +reuse="$(nix build nixpkgs#reuse --no-link --print-out-paths)/bin/reuse" [ "$(echo "$reuse" | wc -l)" -ne 1 ] && die "Something is wrong with the nixpkgs#reuse derivation" git add . diff --git a/build/latex/academia/init b/build/latex/academia/init index f8c8bb3..2c9c077 100644 --- a/build/latex/academia/init +++ b/build/latex/academia/init @@ -26,6 +26,10 @@ require() { exit 1 fi } +die() { + echo "$1" + exit 1 +} # Prompt the user for a specific variable. # ## Args: @@ -167,7 +171,7 @@ chmod +x update.sh [ -f ./watch.sh ] && chmod +x build.sh # Do the first run of reuse annotate -reuse="$(nix build nixpkgs#reuse --no-link --print-out-paths)" +reuse="$(nix build nixpkgs#reuse --no-link --print-out-paths)/bin/reuse" [ "$(echo "$reuse" | wc -l)" -ne 1 ] && die "Something is wrong with the nixpkgs#reuse derivation" git add . diff --git a/build/latex/letter/init b/build/latex/letter/init index f8c8bb3..2c9c077 100644 --- a/build/latex/letter/init +++ b/build/latex/letter/init @@ -26,6 +26,10 @@ require() { exit 1 fi } +die() { + echo "$1" + exit 1 +} # Prompt the user for a specific variable. # ## Args: @@ -167,7 +171,7 @@ chmod +x update.sh [ -f ./watch.sh ] && chmod +x build.sh # Do the first run of reuse annotate -reuse="$(nix build nixpkgs#reuse --no-link --print-out-paths)" +reuse="$(nix build nixpkgs#reuse --no-link --print-out-paths)/bin/reuse" [ "$(echo "$reuse" | wc -l)" -ne 1 ] && die "Something is wrong with the nixpkgs#reuse derivation" git add . diff --git a/build/rust/init b/build/rust/init index f8c8bb3..2c9c077 100644 --- a/build/rust/init +++ b/build/rust/init @@ -26,6 +26,10 @@ require() { exit 1 fi } +die() { + echo "$1" + exit 1 +} # Prompt the user for a specific variable. # ## Args: @@ -167,7 +171,7 @@ chmod +x update.sh [ -f ./watch.sh ] && chmod +x build.sh # Do the first run of reuse annotate -reuse="$(nix build nixpkgs#reuse --no-link --print-out-paths)" +reuse="$(nix build nixpkgs#reuse --no-link --print-out-paths)/bin/reuse" [ "$(echo "$reuse" | wc -l)" -ne 1 ] && die "Something is wrong with the nixpkgs#reuse derivation" git add . diff --git a/build/shell/init b/build/shell/init index f8c8bb3..2c9c077 100644 --- a/build/shell/init +++ b/build/shell/init @@ -26,6 +26,10 @@ require() { exit 1 fi } +die() { + echo "$1" + exit 1 +} # Prompt the user for a specific variable. # ## Args: @@ -167,7 +171,7 @@ chmod +x update.sh [ -f ./watch.sh ] && chmod +x build.sh # Do the first run of reuse annotate -reuse="$(nix build nixpkgs#reuse --no-link --print-out-paths)" +reuse="$(nix build nixpkgs#reuse --no-link --print-out-paths)/bin/reuse" [ "$(echo "$reuse" | wc -l)" -ne 1 ] && die "Something is wrong with the nixpkgs#reuse derivation" git add . |