From 49e704cb19dfe72b293fd286395e37ed1d3c3d99 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 1 Jan 2018 12:16:42 +0100 Subject: 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.) --- version.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'version.sh') 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 < "$version_h" $NEW_REVISION $BUILDDATE +$MPVCOPYRIGHT EOF fi -- cgit v1.2.3