Wireshark-commits: [Wireshark-commits] master 1b10ac9: macOS: Replace Wireshark.app when upgrading.
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 22 Feb 2019 19:36:27 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=1b10ac9bd4a8a929aad76648b1b3e5223e25f55a
Submitter: "Gerald Combs <gerald@xxxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

1b10ac9 by Gerald Combs (gerald@xxxxxxxxxxxxx):

    macOS: Replace Wireshark.app when upgrading.
    
    The packages that PackageMaker creates don't remove old files when
    upgrading. Add a preflight script that removes Wireshark.app if it
    exists.
    
    Fix a version check while we're here.
    
    Change-Id: I8be8cbf51b34fef8a2d4259478b7d3199d976de3
    Reviewed-on: https://code.wireshark.org/review/32150
    Reviewed-by: Gerald Combs <gerald@xxxxxxxxxxxxx>
    

Actions performed:

    from  9342371   Get rid of duplicate setting of CFLAGS.
     add  1b10ac9   macOS: Replace Wireshark.app when upgrading.


Summary of changes:
 packaging/macosx/Scripts/wireshark-postinstall.sh     | 19 -------------------
 packaging/macosx/Scripts/wireshark-preflight.sh       | 13 +++++++++++++
 .../macosx/Wireshark_package.pmdoc/01wireshark.xml    |  2 +-
 packaging/macosx/Wireshark_package.pmdoc/index.xml.in |  2 +-
 4 files changed, 15 insertions(+), 21 deletions(-)
 create mode 100755 packaging/macosx/Scripts/wireshark-preflight.sh