diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-03-19 18:53:43 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-03-19 18:53:43 -0700 |
commit | 128409f387bad63de4496ac5f8f2f697edf0092f (patch) | |
tree | c5f3df03df6d83d5d23e528fcd1c2af74d64ba8a | |
parent | 06bfac109512a2b86e24f377d20224195bdb2f53 (diff) | |
download | pandoc-128409f387bad63de4496ac5f8f2f697edf0092f.tar.gz |
Don't hardcode pandoc version in osx/distribution.xml.
Instead, create it from a template, distribution.xml.in.
-rwxr-xr-x | make_osx_package.sh | 2 | ||||
-rw-r--r-- | osx/distribution.xml.in (renamed from osx/distribution.xml) | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/make_osx_package.sh b/make_osx_package.sh index 53687a6d7..4a9f03b95 100755 --- a/make_osx_package.sh +++ b/make_osx_package.sh @@ -61,6 +61,8 @@ echo Creating OSX package... # remove old package first rm -rf $BASE.pkg +sed -e "s/PANDOCVERSION/$VERSION/" osx/distribution.xml.in > osx/distribution.xml + pkgbuild --root $DIST/pandoc --identifier net.johnmacfarlane.pandoc --version 1.13 --ownership recommended $DIST/pandoc.pkg productbuild --distribution osx/distribution.xml --resources $DIST/Resources --package-path $DIST --version $VERSION --sign "${DEVELOPER_ID_INSTALLER}" $BASE-osx.pkg diff --git a/osx/distribution.xml b/osx/distribution.xml.in index a92f20ad0..145fc0f21 100644 --- a/osx/distribution.xml +++ b/osx/distribution.xml.in @@ -11,7 +11,7 @@ <options hostArchitectures="x86_64" /> <!-- List all component packages --> <pkg-ref id="net.johnmacfarlane.pandoc" - version="1.17" + version="PANDOCVERSION" auth="root">pandoc.pkg</pkg-ref> <!-- List them again here. They can now be organized as a hierarchy if you want. --> |