From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6159 invoked by alias); 5 Jul 2019 07:42:51 -0000 Mailing-List: contact bzip2-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Sender: bzip2-devel-owner@sourceware.org Received: (qmail 6150 invoked by uid 89); 5 Jul 2019 07:42:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.3 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1953, *h, month, UD:pl X-Spam-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on sourceware.org X-Spam-Level: X-HELO: gnu.wildebeest.org Date: Tue, 01 Jan 2019 00:00:00 -0000 From: Mark Wielaard To: bzip2-devel@sourceware.org Subject: Re: [PATCH] Update prepare-release.sh for Makefile* and date ranges. Message-ID: <20190705074246.GD4777@wildebeest.org> References: <1562185680-15970-1-git-send-email-mark@klomp.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1562185680-15970-1-git-send-email-mark@klomp.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Flag: NO X-SW-Source: 2019-q3/txt/msg00014.txt.bz2 On Wed, Jul 03, 2019 at 10:28:00PM +0200, Mark Wielaard wrote: > Given that we might have to do a new 1.0.8 release soon I double checked > the prepare-release.sh script and noticed some version number comments > weren't updated in the Makefiles. And the date range in the manual, and > some comments was stuck on 1996-2010. > > > Also update the version number in the Makefile comments. > And update any date ranges to include the current year. It seems to work as intended. I pushed it to sourceware git. > --- > prepare-release.sh | 14 ++++++++------ > 1 file changed, 8 insertions(+), 6 deletions(-) > > diff --git a/prepare-release.sh b/prepare-release.sh > index db736b7..a1ae375 100755 > --- a/prepare-release.sh > +++ b/prepare-release.sh > @@ -20,23 +20,25 @@ fi > LANG=C > VERSION="$1" > DATE=$(date +"%d %B %Y") > +DAY=$(date +"%d") > +MONTH=$(date +"%B") > +SHORTMONTH=$(date +"%b") > +YEAR=$(date +"%Y") > > -# Replace the version strings in the comments > +# Replace the version strings and date ranges in the comments > VER_PREFIX="bzip2/libbzip2 version " > sed -i -e "s@${VER_PREFIX}[0-9].*@${VER_PREFIX}${VERSION} of ${DATE}@" \ > - CHANGES LICENSE README* *.c *.h *.pl *.sh > + -e "s@ (C) \([0-9]\+\)-[0-9]\+ @ (C) \1-$YEAR @" \ > + CHANGES LICENSE Makefile* README* *.c *.h *.pl *.sh > > # Add an entry to the README > -DAY=$(date +"%d") > -MONTH=$(date +"%B") > -SHORTMONTH=$(date +"%b") > -YEAR=$(date +"%Y") > printf "%2s %8s %s\n" "$DAY" "$MONTH" "$YEAR (bzip2, version $VERSION)" \ > >> README > > # Update manual > sed -i -e "s@ENTITY bz-version \".*\"@ENTITY bz-version \"$VERSION\"@" \ > -e "s@ENTITY bz-date \".*\"@ENTITY bz-date \"$DAY $MONTH $YEAR\"@" \ > + -e "s@ENTITY bz-lifespan \"\([0-9]\+\)-[0-9]\+\"@ENTITY bz-filespan \"\1-$YEAR\"@"\ > entities.xml > > # bzip2.1 should really be generated from the manual.xml, but currently > -- > 1.8.3.1 >