[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[pkg-wine-party] [wine] 03/04: Fix winegcc script to call wineg++/cpp based on its basename.



This is an automated email from the git hooks/post-receive script.

jreyer-guest pushed a commit to branch master
in repository wine.

commit faae7dac32d2816937ed5e8a24e5a6343320092c
Author: Jens Reyer <jre.winesim@gmail.com>
Date:   Thu May 19 15:05:32 2016 +0200

    Fix winegcc script to call wineg++/cpp based on its basename.
    
    Closes in stable: #824715
    Thanks: Javier Serrano Polo
---
 debian/changelog       | 2 ++
 debian/scripts/winegcc | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 406cac9..a024091 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,8 @@ wine-development (1.9.9-1) UNRELEASED; urgency=medium
   * Add missing runtime dependencies to libwine recommends.
   * Add widl to the -tools packages.
     Thanks to Andrey Gursky (closes: #824671).
+  * Fix winegcc script to call wineg++/cpp based on its basename.
+    Thanks to Javier Serrano Polo (see: #824715).
 
  -- Jens Reyer <jre.winesim@gmail.com>  Fri, 13 May 2016 15:36:46 +0200
 
diff --git a/debian/scripts/winegcc b/debian/scripts/winegcc
index a993ad1..fa21bb0 100644
--- a/debian/scripts/winegcc
+++ b/debian/scripts/winegcc
@@ -1,9 +1,11 @@
 #!/bin/sh -e
 
+name=$(basename $0 | cut -d- -f1)
+
 # wineg++ fails to find winebuild in Wine's bindir
 # See https://bugs.winehq.org/show_bug.cgi?id=40245
 if test -z "$WINEBUILD"; then
     export WINEBUILD="/BINDIR/winebuild"
 fi
 
-exec /BINDIR/winegcc $@
+exec /BINDIR/$name $@

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wine/wine.git



Reply to: