diff options
-rw-r--r-- | common/.reuse/templates/default.jinja2 | 3 | ||||
-rw-r--r-- | common/init | 8 |
2 files changed, 6 insertions, 5 deletions
diff --git a/common/.reuse/templates/default.jinja2 b/common/.reuse/templates/default.jinja2 index 688bffc..7a2d08f 100644 --- a/common/.reuse/templates/default.jinja2 +++ b/common/.reuse/templates/default.jinja2 @@ -1,2 +1 @@ -%INIT_REUSE_TEMPLATE -<!-- vim: ft=htmldjango --> +<!-- This file will be replaced by the init script --> diff --git a/common/init b/common/init index e27c234..b1d2eb4 100644 --- a/common/init +++ b/common/init @@ -86,8 +86,9 @@ if curl --fail --silent --show-error "$default_license_url.txt" >/dev/null; then default_license_url="$default_license_url.txt" fi prompt LICENSE_URL "The url of the license" "$default_license_url" -prompt REUSE_TEMPLATE "The template used in reuse annotate" "$( - cat <<EOF | fmt --uniform-spacing --width=75 + +if [ -e ./.reuse/templates/default.jinja2 ]; then + cat <<EOF | fmt --uniform-spacing --width=75 >./.reuse/templates/default.jinja2 {% for copyright_line in copyright_lines %} {{ copyright_line }} {% endfor %} @@ -102,8 +103,9 @@ This file is part of $APPLICATION_NAME_STYLIZED - $DESCRIPTION. You should have received a copy of the License along with this program. If not, see <$LICENSE_URL>. +<!-- vim: ft=htmldjango --> EOF -)" "dont_ask" +fi echo "$DESCRIPTION" >.git/description |