-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
upgrade-kiss
executable file
·38 lines (34 loc) · 1.08 KB
/
upgrade-kiss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
# Upgrade a Kiss-based application with the latest version of Kiss.
if [ $# -ne 1 ]; then
echo
echo '* * * This is to be run from the virgin Kiss clone and not your application project directory. * * *'
echo
echo src/main/core/org/kissweb/Tasks.java will have to be updated manually.
echo
echo Usage: $0 path-to-kiss-based-application
echo
exit
fi
if [ ! -d $1 ]; then
echo Directory $1 does not exist.
exit
fi
./bld clean
pushd $1
./bld clean
popd
rsync -av libs/ $1/libs
rsync -av --exclude=builder/Tasks.java --delete src/main/core/org/kissweb/ $1/src/main/core/org/kissweb
rsync -av --delete src/main/frontend/kiss/ $1/src/main/frontend/kiss
rsync -av --delete src/main/core/WEB-INF/ $1/src/main/core/WEB-INF
rsync -av --delete src/main/core/META-INF/ $1/src/main/core/META-INF
rm -rf $1/src/main/frontend/WEB-INF $1/src/main/frontend/META-INF
rsync -av src/main/frontend/lib/ $1/src/main/frontend/lib
rsync -av bld $1
rsync -av bld.cmd $1
rsync -av build-builder.cmd $1
rsync -av SimpleWebServer.jar $1
rsync -av serve $1
rsync -av serve.cmd $1
rsync -av view-log $1