summaryrefslogtreecommitdiffstats
path: root/version.sh
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-01-01 12:16:42 +0100
committerRicardo Constantino <wiiaboo@gmail.com>2018-01-01 21:05:09 +0000
commit49e704cb19dfe72b293fd286395e37ed1d3c3d99 (patch)
treed0e1ffeca2f87986d1378f4a31cca39f844f6a22 /version.sh
parenta90abe05462a689e55280bc78af2999aa1f3823e (diff)
downloadmpv-49e704cb19dfe72b293fd286395e37ed1d3c3d99.tar.bz2
mpv-49e704cb19dfe72b293fd286395e37ed1d3c3d99.tar.xz
build: move copyright statement to a shared location
Now macosx_menubar.m and mpv.rc (win32) use the same copyright string. (This is a bit roundabout, because mpv.rc can't use C constants. Also the C code wants to avoid rebuilding real source files if only version.h changed, so only version.c includes version.h.)
Diffstat (limited to 'version.sh')
-rwxr-xr-xversion.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/version.sh b/version.sh
index 45a529c54e..2cfc384b5c 100755
--- a/version.sh
+++ b/version.sh
@@ -54,11 +54,13 @@ fi
NEW_REVISION="#define VERSION \"${VERSION}\""
OLD_REVISION=$(head -n 1 "$version_h" 2> /dev/null)
BUILDDATE="#define BUILDDATE \"$(date)\""
+MPVCOPYRIGHT="#define MPVCOPYRIGHT \"Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects\""
# Update version.h only on revision changes to avoid spurious rebuilds
if test "$NEW_REVISION" != "$OLD_REVISION"; then
cat <<EOF > "$version_h"
$NEW_REVISION
$BUILDDATE
+$MPVCOPYRIGHT
EOF
fi