Debian Codegraph @

util/dist_osx.sh

raw
1 #!/bin/sh
2
3 # Make sure __version__.py is current
4 ./setup.py
5
6 version=`python2 -c "from DisplayCAL import meta;print meta.version"`
7
8 # Source tarball
9 # COPYFILE_DISABLE=1 Prevent extended file attributes (metadata) being added
10 # as "dotunderscore" (._<filename>) files to the tarball.
11 # If those files are present in the archive, a digest
12 # calculated under Mac OS X will not match one calculated
13 # under other systems because the digest will be calculated
14 # from extracted archive contents and Mac OS X tar will add
15 # dotunderscore files back as file attributes while other
16 # systems will see the additional dotunderscore files.
17 COPYFILE_DISABLE=1 ./setup.py sdist --use-distutils 2>&1 | tee DisplayCAL-$version.sdist.log
18 tar tf dist/DisplayCAL-$version.tar.gz | grep "\._" && { echo "WARNING: DOTUNDERSCORE FILES FOUND IN ARCHIVE"; exit 1; }
19 #./setup.py 0install --stability=stable 2>&1 | tee DisplayCAL-$version.sdist.log
20
21 # App bundle
22 ./setup.py bdist_standalone 2>&1 | tee DisplayCAL-$version.bdist_standalone_osx.log
23
24 # DMG
25 #./setup.py bdist_appdmg 2>&1 | tee -a DisplayCAL-$version.bdist_standalone_osx.log
26
27 # PKG
28 ./setup.py bdist_pkg 2>&1 | tee -a DisplayCAL-$version.bdist_standalone_osx.log
29
30 # Cleanup
31 util/tidy_dist.py