summaryrefslogtreecommitdiff
blob: 3e3fc00e3c2df98ac115cb6db062b7dc654ec74c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

if [ -z $1 ]; then
   echo "Usage: zipit <version-number>"
   exit 1
fi

VER="$1"
DIR=/tmp/plugin-${VER}

mkdir ${DIR}

cp src/* ${DIR}
cp doc/* ${DIR}
cp install/* ${DIR}

cd /tmp
zip -r plugin-${VER}.zip plugin-${VER}
cd -
mv /tmp/plugin-${VER}.zip .

rm -rf ${DIR}