Ticket #403: 0002-fix-bashisms.patch

File 0002-fix-bashisms.patch, 868 bytes (added by ossi, 10 years ago)

replace first 0001

  • maint/version.sh

    From c8e7ecd12fa5c0bc2aa6f32ad0ad415561933c97 Mon Sep 17 00:00:00 2001
    From: Oswald Buddenhagen <ossi@kde.org>
    Date: Sat, 13 Jun 2009 14:30:05 +0200
    Subject: [PATCH 2/5] fix bashisms
    
    ---
     maint/version.sh |    6 ++----
     1 files changed, 2 insertions(+), 4 deletions(-)
    
    diff --git a/maint/version.sh b/maint/version.sh
    index 933c14e..944a38e 100755
    a b src_top_dir= 
    2121 
    2222VERSION_FILE=${src_top_dir}/version.h 
    2323 
    24 pushd ${src_top_dir} &>/dev/null 
    25 git_head=$(git rev-parse --verify HEAD 2>/dev/null) 
     24git_head=$(git --git-dir "${src_top_dir}" rev-parse --verify HEAD 2>/dev/null) 
    2625[ -z "${git_head}" ] && exit 
    2726 
    28 new_version="$(git describe 2>/dev/null)" 
     27new_version="$(git --git-dir "${src_top_dir}" describe 2>/dev/null)" 
    2928[ -z "${new_version}" ] && exit 
    30 popd &>/dev/null 
    3129 
    3230 
    3331saved_version=