lkml.org 
[lkml]   [2010]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] scripts/mkversion: Simplify script
Date
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


\
 
 \ /
  Last update: 2010-08-19 00:26    [from the cache]
©2003-2011 Jasper Spaans