mirror of
https://github.com/jimeh/dotify.git
synced 2026-02-19 01:56:39 +00:00
Add dynamically generated copyright year via build script
This commit is contained in:
5
build.sh
5
build.sh
@@ -45,8 +45,9 @@ output=""
|
||||
|
||||
while IFS= read line; do
|
||||
if [[ "$line" == "#"* ]]; then
|
||||
# Replace {{VERSION}} placeholder in comments.
|
||||
line="${line/\{\{VERSION\}\}/$(dotify-version)}"
|
||||
# Replace {{DOTIFY_VERSION}} placeholder in comments.
|
||||
line="${line/\{\{DOTIFY_VERSION\}\}/$(dotify-version)}"
|
||||
line="${line/\{\{COPYRIGHT_YEAR\}\}/$(date +"%Y")}"
|
||||
fi
|
||||
|
||||
if [[ "$line" == "source \""*"\"" ]]; then
|
||||
|
||||
@@ -3,10 +3,10 @@ set -e
|
||||
shopt -s extglob
|
||||
[ -n "$DOTIFY_DEBUG" ] && set -x
|
||||
|
||||
# dotify {{VERSION}}
|
||||
# dotify {{DOTIFY_VERSION}}
|
||||
# https://github.com/jimeh/dotify
|
||||
#
|
||||
# Copyright (c) 2013 Jim Myhrberg.
|
||||
# Copyright (c) {{COPYRIGHT_YEAR}} Jim Myhrberg.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to
|
||||
|
||||
Reference in New Issue
Block a user