mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ramkumar Ramachandra <artagnon@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Michal Marek <mmarek@suse.cz>, linux-kbuild@vger.kernel.org
Subject: [PATCH] scripts/mkversion: Simplify script
Date: Thu, 19 Aug 2010 02:42:25 +0530	[thread overview]
Message-ID: <1282165945-27195-1-git-send-email-artagnon@gmail.com> (raw)

Simplify the script and add a line to help editors recognize this as a
shell script.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Cc: Michal Marek <mmarek@suse.cz>
---
 scripts/mkversion |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/scripts/mkversion b/scripts/mkversion
index c12addc..6fedcb3 100644
--- a/scripts/mkversion
+++ b/scripts/mkversion
@@ -1,6 +1,3 @@
-if [ ! -f .version ]
-then
-    echo 1
-else
-    expr 0`cat .version` + 1
-fi
+#!/bin/sh
+
+[ ! -f .version ] && echo 1 || expr 0`cat .version` + 1
-- 
1.7.1


             reply	other threads:[~2010-08-18 21:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-18 21:12 Ramkumar Ramachandra [this message]
2010-08-19  0:20 ` Sam Ravnborg
2010-08-19  2:56   ` Ramkumar Ramachandra

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=1282165945-27195-1-git-send-email-artagnon@gmail.com \
    --to=artagnon@gmail.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mmarek@suse.cz \
    /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

all inboxes | Powered by JetHome®