about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-09-30 17:57:13 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-09-30 17:57:13 +0200
commit0950d4cd08bf840410f125f3e474cd1465cc21de (patch)
tree0874965ae77ecb602e2ef5e28d869d762a968613
parentfix(common/init): Only add a description when it exists (diff)
downloadflake-templates-0950d4cd08bf840410f125f3e474cd1465cc21de.tar.gz
flake-templates-0950d4cd08bf840410f125f3e474cd1465cc21de.zip
chore(version): v0.7.3 v0.7.3
Diffstat (limited to '')
-rw-r--r--NEWS.md6
-rw-r--r--build/awk/init8
-rw-r--r--build/c/init8
-rw-r--r--build/latex/academia/init8
-rw-r--r--build/latex/letter/init8
-rw-r--r--build/rust/init8
-rw-r--r--build/shell/init8
7 files changed, 48 insertions, 6 deletions
diff --git a/NEWS.md b/NEWS.md
index 25d012f..4c20cae 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -2,6 +2,12 @@
 All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
 
 - - -
+## [v0.7.3](https://git.vhack.eu/soispha/flake-templates/compare/c87cd64616a833fda03deefdaa0623e9709cecbe..v0.7.3) - 2024-09-30
+#### Bug Fixes
+- **(common/init)** Only add a description when it exists - ([c87cd64](https://git.vhack.eu/soispha/flake-templates/commit/c87cd64616a833fda03deefdaa0623e9709cecbe)) - [@bpeetz](https://git.vhack.eu/bpeetz)
+
+- - -
+
 ## [v0.7.2](https://git.vhack.eu/soispha/flake-templates/compare/e02e9e8bca10da0f40d6e807808b3866da37337a..v0.7.2) - 2024-09-30
 #### Bug Fixes
 - **(common/init)** Only build the `out` output; exclude the `man` output - ([e02e9e8](https://git.vhack.eu/soispha/flake-templates/commit/e02e9e8bca10da0f40d6e807808b3866da37337a)) - [@bpeetz](https://git.vhack.eu/bpeetz)
diff --git a/build/awk/init b/build/awk/init
index 104bd30..9ee0462 100644
--- a/build/awk/init
+++ b/build/awk/init
@@ -125,6 +125,12 @@ fi
 prompt LICENSE_URL "The url of the license" "$default_license_url"
 
 if [ -e ./.reuse/templates/default.jinja2 ]; then
+    if [ -n "$DESCRIPTION" ]; then
+        description_str=" - $DESCRIPTION"
+    else
+        description_str=""
+    fi
+
     cat <<EOF | fmt --uniform-spacing --width=85 --split-only >./.reuse/templates/default.jinja2
 {% for copyright_line in copyright_lines %}
 {{ copyright_line }}
@@ -136,7 +142,7 @@ SPDX-FileContributor: {{ contributor_line }}
 SPDX-License-Identifier: {{ expression }}
 {% endfor %}
 
-This file is part of $APPLICATION_NAME_STYLIZED - $DESCRIPTION.
+This file is part of $APPLICATION_NAME_STYLIZED$description_str.
 
 You should have received a copy of the License along with this program.
 If not, see <$LICENSE_URL>.
diff --git a/build/c/init b/build/c/init
index 104bd30..9ee0462 100644
--- a/build/c/init
+++ b/build/c/init
@@ -125,6 +125,12 @@ fi
 prompt LICENSE_URL "The url of the license" "$default_license_url"
 
 if [ -e ./.reuse/templates/default.jinja2 ]; then
+    if [ -n "$DESCRIPTION" ]; then
+        description_str=" - $DESCRIPTION"
+    else
+        description_str=""
+    fi
+
     cat <<EOF | fmt --uniform-spacing --width=85 --split-only >./.reuse/templates/default.jinja2
 {% for copyright_line in copyright_lines %}
 {{ copyright_line }}
@@ -136,7 +142,7 @@ SPDX-FileContributor: {{ contributor_line }}
 SPDX-License-Identifier: {{ expression }}
 {% endfor %}
 
-This file is part of $APPLICATION_NAME_STYLIZED - $DESCRIPTION.
+This file is part of $APPLICATION_NAME_STYLIZED$description_str.
 
 You should have received a copy of the License along with this program.
 If not, see <$LICENSE_URL>.
diff --git a/build/latex/academia/init b/build/latex/academia/init
index 104bd30..9ee0462 100644
--- a/build/latex/academia/init
+++ b/build/latex/academia/init
@@ -125,6 +125,12 @@ fi
 prompt LICENSE_URL "The url of the license" "$default_license_url"
 
 if [ -e ./.reuse/templates/default.jinja2 ]; then
+    if [ -n "$DESCRIPTION" ]; then
+        description_str=" - $DESCRIPTION"
+    else
+        description_str=""
+    fi
+
     cat <<EOF | fmt --uniform-spacing --width=85 --split-only >./.reuse/templates/default.jinja2
 {% for copyright_line in copyright_lines %}
 {{ copyright_line }}
@@ -136,7 +142,7 @@ SPDX-FileContributor: {{ contributor_line }}
 SPDX-License-Identifier: {{ expression }}
 {% endfor %}
 
-This file is part of $APPLICATION_NAME_STYLIZED - $DESCRIPTION.
+This file is part of $APPLICATION_NAME_STYLIZED$description_str.
 
 You should have received a copy of the License along with this program.
 If not, see <$LICENSE_URL>.
diff --git a/build/latex/letter/init b/build/latex/letter/init
index 104bd30..9ee0462 100644
--- a/build/latex/letter/init
+++ b/build/latex/letter/init
@@ -125,6 +125,12 @@ fi
 prompt LICENSE_URL "The url of the license" "$default_license_url"
 
 if [ -e ./.reuse/templates/default.jinja2 ]; then
+    if [ -n "$DESCRIPTION" ]; then
+        description_str=" - $DESCRIPTION"
+    else
+        description_str=""
+    fi
+
     cat <<EOF | fmt --uniform-spacing --width=85 --split-only >./.reuse/templates/default.jinja2
 {% for copyright_line in copyright_lines %}
 {{ copyright_line }}
@@ -136,7 +142,7 @@ SPDX-FileContributor: {{ contributor_line }}
 SPDX-License-Identifier: {{ expression }}
 {% endfor %}
 
-This file is part of $APPLICATION_NAME_STYLIZED - $DESCRIPTION.
+This file is part of $APPLICATION_NAME_STYLIZED$description_str.
 
 You should have received a copy of the License along with this program.
 If not, see <$LICENSE_URL>.
diff --git a/build/rust/init b/build/rust/init
index 104bd30..9ee0462 100644
--- a/build/rust/init
+++ b/build/rust/init
@@ -125,6 +125,12 @@ fi
 prompt LICENSE_URL "The url of the license" "$default_license_url"
 
 if [ -e ./.reuse/templates/default.jinja2 ]; then
+    if [ -n "$DESCRIPTION" ]; then
+        description_str=" - $DESCRIPTION"
+    else
+        description_str=""
+    fi
+
     cat <<EOF | fmt --uniform-spacing --width=85 --split-only >./.reuse/templates/default.jinja2
 {% for copyright_line in copyright_lines %}
 {{ copyright_line }}
@@ -136,7 +142,7 @@ SPDX-FileContributor: {{ contributor_line }}
 SPDX-License-Identifier: {{ expression }}
 {% endfor %}
 
-This file is part of $APPLICATION_NAME_STYLIZED - $DESCRIPTION.
+This file is part of $APPLICATION_NAME_STYLIZED$description_str.
 
 You should have received a copy of the License along with this program.
 If not, see <$LICENSE_URL>.
diff --git a/build/shell/init b/build/shell/init
index 104bd30..9ee0462 100644
--- a/build/shell/init
+++ b/build/shell/init
@@ -125,6 +125,12 @@ fi
 prompt LICENSE_URL "The url of the license" "$default_license_url"
 
 if [ -e ./.reuse/templates/default.jinja2 ]; then
+    if [ -n "$DESCRIPTION" ]; then
+        description_str=" - $DESCRIPTION"
+    else
+        description_str=""
+    fi
+
     cat <<EOF | fmt --uniform-spacing --width=85 --split-only >./.reuse/templates/default.jinja2
 {% for copyright_line in copyright_lines %}
 {{ copyright_line }}
@@ -136,7 +142,7 @@ SPDX-FileContributor: {{ contributor_line }}
 SPDX-License-Identifier: {{ expression }}
 {% endfor %}
 
-This file is part of $APPLICATION_NAME_STYLIZED - $DESCRIPTION.
+This file is part of $APPLICATION_NAME_STYLIZED$description_str.
 
 You should have received a copy of the License along with this program.
 If not, see <$LICENSE_URL>.