From patchwork Thu May 5 19:03:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jamey Sharp X-Patchwork-Id: 757952 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p45J4Awr011334 for ; Thu, 5 May 2011 19:04:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755708Ab1EETEG (ORCPT ); Thu, 5 May 2011 15:04:06 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:40893 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751545Ab1EETEF (ORCPT ); Thu, 5 May 2011 15:04:05 -0400 Received: by pwi15 with SMTP id 15so1110838pwi.19 for ; Thu, 05 May 2011 12:04:04 -0700 (PDT) Received: by 10.68.59.225 with SMTP id c1mr1760918pbr.354.1304622244295; Thu, 05 May 2011 12:04:04 -0700 (PDT) Received: from oh.minilop.net (64-184-240-195.mammothnetworks.com [64.184.240.195]) by mx.google.com with ESMTPS id k10sm1601313pbl.76.2011.05.05.12.04.02 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 May 2011 12:04:03 -0700 (PDT) Received: from jamey by oh.minilop.net with local (Exim 4.75) (envelope-from ) id 1QI3qC-0004kD-Ky; Thu, 05 May 2011 12:04:00 -0700 From: Jamey Sharp To: linux-btrfs@vger.kernel.org Cc: Josh Triplett , Chris Mason Subject: [PATCH] btrfs: Delete unused version.sh script. Date: Thu, 5 May 2011 12:03:46 -0700 Message-Id: <1304622227-18204-1-git-send-email-jamey@minilop.net> X-Mailer: git-send-email 1.7.4.4 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Thu, 05 May 2011 19:04:10 +0000 (UTC) In 2008, commit b4f6c45dfbf84f47c21f73f6370ad1292b0627fd dropped the use of fs/btrfs/version.sh, but left the script behind. Kill it. Commit by Jamey Sharp and Josh Triplett. Signed-off-by: Jamey Sharp Signed-off-by: Josh Triplett Cc: Chris Mason --- fs/btrfs/version.sh | 43 ------------------------------------------- 1 files changed, 0 insertions(+), 43 deletions(-) delete mode 100644 fs/btrfs/version.sh diff --git a/fs/btrfs/version.sh b/fs/btrfs/version.sh deleted file mode 100644 index 1ca1952..0000000 --- a/fs/btrfs/version.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -# -# determine-version -- report a useful version for releases -# -# Copyright 2008, Aron Griffis -# Copyright 2008, Oracle -# Released under the GNU GPLv2 - -v="v0.16" - -which git &> /dev/null -if [ $? == 0 ]; then - git branch >& /dev/null - if [ $? == 0 ]; then - if head=`git rev-parse --verify HEAD 2>/dev/null`; then - if tag=`git describe --tags 2>/dev/null`; then - v="$tag" - fi - - # Are there uncommitted changes? - git update-index --refresh --unmerged > /dev/null - if git diff-index --name-only HEAD | \ - grep -v "^scripts/package" \ - | read dummy; then - v="$v"-dirty - fi - fi - fi -fi - -echo "#ifndef __BUILD_VERSION" > .build-version.h -echo "#define __BUILD_VERSION" >> .build-version.h -echo "#define BTRFS_BUILD_VERSION \"Btrfs $v\"" >> .build-version.h -echo "#endif" >> .build-version.h - -diff -q version.h .build-version.h >& /dev/null - -if [ $? == 0 ]; then - rm .build-version.h - exit 0 -fi - -mv .build-version.h version.h