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