9 lines
385 B
Shell
Executable file
9 lines
385 B
Shell
Executable file
#!/bin/sh
|
|
# Builds dist/mozout-sms-center-<version>.zip, ready to upload in WordPress (Plugins > Add New > Upload).
|
|
set -e
|
|
cd "$(dirname "$0")/.."
|
|
V=$(sed -n 's/^ \* Version: *//p' mozout-sms-center/mozout-sms-center.php)
|
|
mkdir -p dist
|
|
rm -f "dist/mozout-sms-center-$V.zip"
|
|
zip -qr "dist/mozout-sms-center-$V.zip" mozout-sms-center -x '*.DS_Store'
|
|
echo "dist/mozout-sms-center-$V.zip"
|