diff --git a/build.sh b/build.sh index 0d95dbf..428aef5 100755 --- a/build.sh +++ b/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 diff --git a/src/bin/dotify b/src/bin/dotify index b34b7ac..d15453a 100755 --- a/src/bin/dotify +++ b/src/bin/dotify @@ -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