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