linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind1@gmail.com>
To: Mike Frysinger <vapier.adi@gmail.com>
Cc: Brian Norris <computersforpeace@gmail.com>,
	linux-mtd@lists.infradead.org,
	David Woodhouse <dwmw2@infradead.org>,
	Kevin Cernekee <cernekee@gmail.com>
Subject: Re: [PATCH 0/2] small mtd-utils fixes
Date: Sun, 20 Nov 2011 01:04:22 +0200	[thread overview]
Message-ID: <1321743864.2167.6.camel@koala> (raw)
In-Reply-To: <CAMjpGUfB0OoP_TvQ+eVEwx6_nmJ0p4jrCyu4ceTQBHGeRvUm-Q@mail.gmail.com>

On Sat, 2011-11-19 at 15:55 -0500, Mike Frysinger wrote:
> On Sat, Nov 19, 2011 at 15:47, Artem Bityutskiy wrote:
> > On Fri, 2011-11-18 at 15:37 -0800, Brian Norris wrote:
> >> On Fri, Nov 18, 2011 at 2:44 PM, Peter Korsgaard wrote:
> >> > Thanks, I've updated the package in buildroot. One minor nit, you forgot
> >> > to update the version in the Makefile.
> >>
> >> I was just about to comment on the Makefile version as well; I forgot
> >> about that...any chance we can fix this on the official release? It's
> >> kind of important that I can tell which version my users are using,
> >> now that we've fixed a lot of annoying bugs/"features". If not, I may
> >> just modify it in my own releases.
> >
> > My apologies. I've released 1.4.8 and changed the Makefile this time.
> > Uploaded the tarball as well.
> 
> how are you making the releases ?  seems like this keeps coming up, so
> maybe we should have a `make dist` that takes care of this stuff
> automatically to avoid future mistakes ...

You are right. I've just created a simple shell script which should do
cut a new release properly.

#!/bin/sh -uef

# A small helper script to release mtd-utils. Takes the new version
# as a parameter.

fatal() {
	printf "%s\n" "$1" >&2
	exit 1
}

[ $# -eq 1 ] || fatal "Please, specify the new version"
new_ver="$1"

# Change the version in the Makefile
tmpfile="$(mktemp)"
sed -e "s/^VERSION = [[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+/VERSION = $new_ver/" \
	Makefile > "$tmpfile"
mv "$tmpfile" Makefile

# And commit the change
git commit -s -m "Release mtd-utils-$new_ver" Makefile

# Create new tag
git tag "v$new_ver"

# Prepare the tarball
git archive --format=tar --prefix="mtd-utils-$new_ver/" "v$new_ver" | \
	bzip2 > "mtd-utils-$new_ver.tar.bz2"

# Upload the tarball
scp "mtd-utils-$new_ver.tar.bz2" casper.infradead.org:/var/ftp/pub/mtd-utils/

  reply	other threads:[~2011-11-19 23:04 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-16 20:03 [PATCH 0/2] small mtd-utils fixes Brian Norris
2011-11-16 20:03 ` [PATCH 1/2] mtd-utils: add jffs2reader to .gitignore Brian Norris
2011-11-17  5:40   ` Mike Frysinger
2011-11-16 20:03 ` [PATCH 2/2] mtdinfo: provide info when used without arguments Brian Norris
2011-11-17  5:41   ` Mike Frysinger
2011-11-17 22:19 ` [PATCH 0/2] small mtd-utils fixes Artem Bityutskiy
2011-11-17 23:56   ` Brian Norris
2011-11-18 22:00     ` Artem Bityutskiy
2011-11-18 22:44       ` Peter Korsgaard
2011-11-18 23:37         ` Brian Norris
2011-11-19 20:47           ` Artem Bityutskiy
2011-11-19 20:55             ` Mike Frysinger
2011-11-19 23:04               ` Artem Bityutskiy [this message]
2011-11-20  8:41                 ` Mike Frysinger
2011-11-20 13:10                   ` Artem Bityutskiy
2011-11-20 11:55                 ` David Woodhouse
2011-11-20 13:08                   ` Artem Bityutskiy
2011-11-21  4:22                     ` Mike Frysinger
2011-11-22 21:38                       ` Artem Bityutskiy
2011-11-22 22:21                         ` Mike Frysinger
2011-11-23  7:45                           ` Artem Bityutskiy
2011-11-24  1:45                             ` Mike Frysinger
2011-11-24  7:26                               ` Artem Bityutskiy
2011-12-05  0:28                                 ` Mike Frysinger
2011-12-07  7:12                                   ` Artem Bityutskiy
2011-11-23  9:38                       ` Artem Bityutskiy
2011-11-22 22:21                     ` Mike Frysinger
2011-11-23  9:39                       ` Artem Bityutskiy
2011-11-17 22:22 ` Artem Bityutskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1321743864.2167.6.camel@koala \
    --to=dedekind1@gmail.com \
    --cc=cernekee@gmail.com \
    --cc=computersforpeace@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=vapier.adi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).