File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -eu
4
4
5
- VERSION=$1
5
+ VERSION=" ${1?Missing version parameter} "
6
6
BUILDDIR=simplemonitor-$VERSION
7
7
8
- if [ -z " $VERSION " ]; then
9
- echo Missing version parameter
10
- exit 1
11
- fi
12
-
13
8
cd build
14
9
15
- [ -d $BUILDDIR ] && rm -rf $BUILDDIR
16
- mkdir $BUILDDIR
10
+ [ -d " $BUILDDIR " ] && rm -rf " $BUILDDIR "
11
+ mkdir " $BUILDDIR "
17
12
18
13
echo " --> Copying files"
19
14
20
- cp -v ../* .py ../monitor.sql ../LICENCE ../README.md ../CHANGELOG $BUILDDIR
21
- cp -rv ../Monitors ../Alerters ../Loggers ../html $BUILDDIR
15
+ cp -v ../* .py ../monitor.sql ../LICENCE ../README.md ../CHANGELOG " $BUILDDIR "
16
+ cp -rv ../Monitors ../Alerters ../Loggers ../html " $BUILDDIR "
22
17
23
18
echo
24
19
echo " --> Tidying up"
25
- find $BUILDDIR -name * .pyc -delete
20
+ find " $BUILDDIR " -name ' *.pyc' -delete
26
21
27
22
echo
28
23
echo " --> Creating archives"
29
- tar cjf ${BUILDDIR} .tar.gz $BUILDDIR
30
- zip -r ${BUILDDIR} .zip $BUILDDIR
24
+ tar cjf " ${BUILDDIR} .tar.gz" " $BUILDDIR "
25
+ zip -r " ${BUILDDIR} .zip" " $BUILDDIR "
31
26
You can’t perform that action at this time.
0 commit comments