diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-03-14 14:10:24 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-03-14 14:10:24 +0000 |
commit | 098340b019fc7ac7123a195f4ae1b5be0dda53bf (patch) | |
tree | d8067730cbce8f426281777711aabdc1aed25998 /tools | |
parent | 32f9b0f48d5eb8d04c7593c620d3e9ad389eda56 (diff) |
working --patch/--unpatch flag for build-gtk-stack, which applies current-gtk-patches to the GTK+ tree
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@11681 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/build-gtk-stack | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/tools/build-gtk-stack b/tools/build-gtk-stack index 56bdf8086b..3effd99259 100755 --- a/tools/build-gtk-stack +++ b/tools/build-gtk-stack @@ -11,12 +11,13 @@ clean= parallel=2 patch_gtk_osx= PREFIX=$HOME/gtk/inst - +unpatch= while [ $# -gt 0 ] ; do case $1 in --clean*) clean=1 ; shift ;; --prefix*) PREFIX=`echo $1 | sed 's/--prefix=//'` ; shift ;; --patch*) patch_gtk_osx=1 ; shift ;; + --unpatch*) patch_gtk_osx=1 ; unpatch=-R; shift ;; -j*) parallel=`echo $1 | sed 's/-j//'` ; shift ;; esac done @@ -215,19 +216,21 @@ if [ x$patch_gtk_osx != x ] ; then this_script_dir="`/usr/bin/dirname \"$0\"`" cd gtk+ - echo "Testing patches ... " + echo "Testing ($unpatch) patches ... " - patches=`ls $this_script_dir/current_gtk_osx_patches/*.patch` + patches=`ls $this_script_dir/current-gtk-patches/*.patch` for patch in $patches ; do - if patch --dry-run -p0 < $patch >/dev/null 2>&1 ; then - echo "Patch $patch no longer applies cleanly." - exit 1 + if patch $unpatch --dry-run -p1 < $patch ; then + : + else + echo "$? : Patch $patch no longer applies ($unpatch) cleanly." + exit 1 fi done - echo "Applying patches ..." + echo "Applying ($unpatch) patches ..." for patch in $patches ; do - patch --dry-run -p0 < $patch + patch $unpatch -p1 < $patch done exit 0 fi |