Skip to content

Commit

Permalink
added package.sh to create pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
ido committed Sep 27, 2014
1 parent b27634c commit 56968c9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh

set -e -u -x

if [[ -z "$1" -o -z "$2" ]]; then
echo "Usage: $0 <identifier> <version>"
exit 1
fi

xcodebuild
mkdir -p build/bash-pkg/bin
cp build/Release/{bash,sh} build/bash-pkg/bin/
sudo chown -R root:wheel build/bash-pkg
sudo chmod 755 build/bash-pkg/{,bin/}
sudo chmod 555 build/bash-pkg/bin/{bash,sh}
pkgbuild --root build/bash-pkg \
--identifier $1 \
--version $2 \
--ownership recommended \
macosx-bash-92-shellshock-patched.pkg
sudo rm -r build/bash-pkg


0 comments on commit 56968c9

Please sign in to comment.