Wireshark-bugs: [Wireshark-bugs] [Bug 7525] New: enhance macosx-setup.sh
Date: Wed, 25 Jul 2012 02:06:59 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7525

           Summary: enhance macosx-setup.sh
           Product: Wireshark
           Version: SVN
          Platform: x86
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Enhancement
          Priority: Low
         Component: Wireshark
        AssignedTo: bugzilla-admin@xxxxxxxxxxxxx
        ReportedBy: doj@xxxxxxxxx


Created attachment 8840
  --> https://bugs.wireshark.org/bugzilla/attachment.cgi?id=8840
enhance macosx-setup.sh

Build Information:
for building on OsX
--
I've changed the maxosx-setup.sh file. The patch looks like it changes a lot,
but it's mainly because I've added an if block with indentation, so it changes
a lot of whitespace at the beginning of lines. The real changes are:

- add a MAKE_BUILD_OPTS variable used to build the libraries. You could now
globally specify more -j or other make options.
- add support to call "./macosx-setup.sh clean" to remove the build directory
- every invocation of curl is only done if the file is not present yet
- every invocation of tar no uses a separate gzcat/bzcat/xzcat to use two CPUs
- every library touches a flag file if it was build/installed successfully. On
a subsequent invocation of macosx-setup.sh this library would not be build
again

The basic idea is to not repeat from the start when calling the script twice
(for example because you had a compilation error, manually fixed/tweaked
something and want to continue your build/install).

I've tested my changes with Wireshark 1.8 sources, the patch is made from
today's trunk. Feel free to apply this patch to any version you think can
benefit from these changes.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.