Skip to content

Commit

Permalink
Update place-release.sh (#6035)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrjones authored Nov 19, 2021
1 parent 9a0bd38 commit b9fb8e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion admin/place-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if [ ! -d cmake ]; then
fi

# 1. Get the version string
Version=$(src/gmt --version)
Version=$(build/src/gmt --version)
# 2. Build the release.sh script
cat << EOF > /tmp/release.sh
#!/bin/bash
Expand All @@ -39,6 +39,10 @@ if [ -f gmt-${Version}-darwin-x86_64.dmg ]; then
cp -f gmt-${Version}-darwin-x86_64.dmg ../gmt/bin
chmod og+r ../gmt/bin/gmt-${Version}-darwin-x86_64.dmg
fi
if [ -f gmt-${Version}-darwin-arm64.dmg ]; then
cp -f gmt-${Version}-darwin-arm64.dmg ../gmt/bin
chmod og+r ../gmt/bin/gmt-${Version}-darwin-arm64.dmg
fi
# Place Windows 32-bit installer with read and execute permissions
if [ -f gmt-${Version}-win32.exe ]; then
cp -f gmt-${Version}-win32.exe ../gmt/bin
Expand Down

0 comments on commit b9fb8e4

Please sign in to comment.