mirror of
https://github.com/jimeh/dotify.git
synced 2026-02-19 10:06: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
|
||||
|
||||
Reference in New Issue
Block a user