Add dynamically generated copyright year via build script

This commit is contained in:
2013-10-20 23:58:04 +01:00
parent f7e3b69dc4
commit 8c6876db62
2 changed files with 5 additions and 4 deletions

View File

@@ -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

View File

@@ -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