build-server.sh 523 Bytes
Newer Older
HERBERT Ryan's avatar
HERBERT Ryan committed
1 2 3 4 5 6
#!/bin/bash

. ./build-generic.sh

MY_PWD="$PWD"

7
source_files="../doc ../README.org ../reports ../server ../tools"
HERBERT Ryan's avatar
HERBERT Ryan committed
8 9 10 11 12
dest_files="server/vidjil-server"
exec_dir="server"

copy_files -s="$source_files" -d="$dest_files"

13 14 15 16 17 18
cd "$dest_files/server"
wget https://mdipierro.pythonanywhere.com/examples/static/web2py_src.zip
unzip web2py_src.zip

unlink web2py_src.zip

HERBERT Ryan's avatar
HERBERT Ryan committed
19
cd "$MY_PWD/$exec_dir"
HERBERT Ryan's avatar
HERBERT Ryan committed
20
create_version_file "$MY_PWD/$dest_files/server"
HERBERT Ryan's avatar
HERBERT Ryan committed
21 22
bash "$MY_PWD/mkdeb"

23 24
cd "$MY_PWD"

HERBERT Ryan's avatar
HERBERT Ryan committed
25 26
remove_files -s="$source_files" -d="$dest_files"
exit 0