X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=devel%2Frelease-checks.sh;fp=devel%2Frelease-checks.sh;h=cfa208d511373654ed95780f513409cd72e1516f;hp=7ba948224bc732d807b80f7c3886ceb925af2426;hb=8776faf6d5118e8152ecfacf94accf35ccebf1d2;hpb=557aa2d75f05b3f9b8a40083fb020b770fc9eee1 diff --git a/devel/release-checks.sh b/devel/release-checks.sh index 7ba94822..cfa208d5 100755 --- a/devel/release-checks.sh +++ b/devel/release-checks.sh @@ -178,10 +178,7 @@ esac year=`exec date +%Y` echo -n "Checking that copyright in documentation contains 2009-$year... " # Read the value of variable `copyright' defined in 'doc/conf.py'. -# As __file__ is not defined when python command is given from command line, -# it is defined before contents of 'doc/conf.py' (which dereferences __file__) -# is executed. -copyrightline=`exec python -c "with open('doc/conf.py') as cf: __file__ = ''; exec(cf.read()); print(copyright)"` +copyrightline=$(grep ^copyright doc/conf.py) case $copyrightline in *2009-$year*) echo Yes. ;;