aboutsummaryrefslogtreecommitdiff
path: root/macos
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-03-10 12:46:50 -0800
committerJohn MacFarlane <[email protected]>2023-03-10 12:46:50 -0800
commit8c017174d4096fbd2236e66e4bf8f815958a3a61 (patch)
tree76a7906fecc34fbf3a8cf0515c25d2c2df8ba1a5 /macos
parentea7a4c74b797433f7427511e7f7803e18675c6fc (diff)
Add diagnostics: make_macos_release.sh.
Diffstat (limited to 'macos')
-rw-r--r--macos/make_macos_release.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/macos/make_macos_release.sh b/macos/make_macos_release.sh
index c08a737a5..7926de19f 100644
--- a/macos/make_macos_release.sh
+++ b/macos/make_macos_release.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
VERSION=$(grep '^[Vv]ersion:' pandoc.cabal | awk '{print $2;}')
ARTIFACTS=macos-release-candidate
@@ -11,25 +11,33 @@ ME=$(whoami)
cabal update
cabal install pandoc-cli -fembed_data_files -fserver -flua --installdir=. \
--install-method=copy --overwrite-policy=always
+echo "Built executable..."
# Create directories
+echo "Creating ${ARTIFACTS} directory..."
mkdir -p ${ARTIFACTS}
mkdir -p ${RESOURCES}
mkdir -p ${DEST}/bin
mkdir -p ${DEST}/share/man/man1
# Copy binary and strip it
+echo "Copying executable..."
cp ./pandoc ${DEST}/bin/
strip ${DEST}/bin/pandoc
# Copy man pages and license
+echo "Copying manuals and license..."
cp man/pandoc.1 ${DEST}/share/man/man1/pandoc.1
cp man/pandoc-server.1 ${DEST}/share/man/man1/pandoc-server.1
cp man/pandoc-lua.1 ${DEST}/share/man/man1/pandoc-lua.1
./pandoc -s COPYING.md -Vpagetitle=License -o ${RESOURCES}/license.html
# Prepare distribution directory; after downloading, run 'make' to notarize
+echo "Preparing distribution directory..."
chown -R "$ME:staff" "${ROOT}"
sed -e "s/PANDOCVERSION/${VERSION}/" macos/distribution.xml.in > ${ARTIFACTS}/distribution.xml
cp macos/Makefile ${ARTIFACTS}/
echo "${VERSION}" > "${ARTIFACTS}/version.txt"
+
+ls -R ${ARTIFACTS}
+echo "Finished..."