Ticket #403: 0001-remove-useless-commands-which-also-happen-to-be-bash.patch

File 0001-remove-useless-commands-which-also-happen-to-be-bash.patch, 761 bytes (added by ossi, 10 years ago)
  • maint/version.sh

    From 3a276afa0a429cd78423a20027b79055b687c26f Mon Sep 17 00:00:00 2001
    From: Oswald Buddenhagen <ossi@kde.org>
    Date: Sat, 13 Jun 2009 10:13:22 +0200
    Subject: [PATCH 1/4] remove useless commands (which also happen to be bash-isms)
    
    ---
     maint/version.sh |    2 --
     1 files changed, 0 insertions(+), 2 deletions(-)
    
    diff --git a/maint/version.sh b/maint/version.sh
    index 4df9489..13cdc86 100755
    a b src_top_dir= 
    2121 
    2222VERSION_FILE=${src_top_dir}/version.h 
    2323 
    24 pushd ${src_top_dir} &>/dev/null 
    2524git_head=$(git rev-parse --verify HEAD 2>/dev/null) 
    2625[ -z "${git_head}" ] && exit 
    2726 
    2827new_version="$(git describe 2>/dev/null)" 
    2928[ -z "${new_version}" ] && exit 
    30 popd &>/dev/null 
    3129 
    3230 
    3331saved_version=