From patchwork Wed Aug 18 21:12:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramkumar Ramachandra X-Patchwork-Id: 120266 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7ILZ15d021356 for ; Wed, 18 Aug 2010 21:35:02 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753912Ab0HRVOZ (ORCPT ); Wed, 18 Aug 2010 17:14:25 -0400 Received: from mail-pv0-f174.google.com ([74.125.83.174]:54099 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753557Ab0HRVOY (ORCPT ); Wed, 18 Aug 2010 17:14:24 -0400 Received: by pvg2 with SMTP id 2so395511pvg.19 for ; Wed, 18 Aug 2010 14:14:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=RAn9aG8r3J7LH/pzeh5SD/r1wlybV3j8mPKzZYao2a4=; b=XJtB2i7Twb6GDbe8Bu3sPd6L/QWId1F96ei8RqG0ACqqrI4ogTW2Lpzj90QYpQeoxF jjKTsEYeAf8Crg0qMiKgN+Q6oqql2Ue4BoR8RpBvHWKZaqRFb5ckgirZkvBzPTBKdGq/ Ty0PyIcrCtuGI+zdczwSMSUhjU2OSdcJdO7eg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=eQkR+HG5dGB5ApzPPYuIiN1s6PNiaER2Mge+Cok/x9RtmenKIGL4a178qLr1XQlQw0 7wMZD0h+8YWZ9m7eyRblH9jMGUt1Sw7Kkj8DK7AFYV7f/oCEfOnCZKeuYcnj7FJbbYws 08NoNjyQsctII+c0TufF0GKKbW5VUc4aA6WFg= Received: by 10.115.109.6 with SMTP id l6mr10179238wam.164.1282166064312; Wed, 18 Aug 2010 14:14:24 -0700 (PDT) Received: from localhost.localdomain ([203.110.240.41]) by mx.google.com with ESMTPS id c10sm1204953wam.1.2010.08.18.14.14.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 18 Aug 2010 14:14:23 -0700 (PDT) From: Ramkumar Ramachandra To: linux-kernel@vger.kernel.org Cc: Michal Marek , linux-kbuild@vger.kernel.org Subject: [PATCH] scripts/mkversion: Simplify script Date: Thu, 19 Aug 2010 02:42:25 +0530 Message-Id: <1282165945-27195-1-git-send-email-artagnon@gmail.com> X-Mailer: git-send-email 1.7.1 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 18 Aug 2010 21:35:14 +0000 (UTC) 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