diff options
Diffstat (limited to 'build/chroot-server-build.sh')
-rwxr-xr-x | build/chroot-server-build.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build/chroot-server-build.sh b/build/chroot-server-build.sh index 5704f5f..3cc5c87 100755 --- a/build/chroot-server-build.sh +++ b/build/chroot-server-build.sh @@ -8,14 +8,17 @@ export SRCDIR="$DSTDIR/server-code" export SRCPLUGINSDIR="$SRCDIR/src/evol/build/src/.libs/" export LOCALDIR="../../server-local/bin" +echo Removing old files... rm -rf "$DSTDIR" mkdir "$DSTDIR" +echo Coping files... cp -r ../../server-code "$DSTDIR/server-code" cp -r ../../server-data "$DSTDIR/server-data" cp -r ../../server-local "$DSTDIR/server-local" cp -r ../../tools "$DSTDIR/tools" +echo Enter chroot... schroot -c "$NAME" --directory "$DSTCHDIR/tools/build/" "server-bin.sh" if [[ $? == 0 ]]; then @@ -27,3 +30,4 @@ if [[ $? == 0 ]]; then cp "$SRCDIR/plugins"/*.so "$LOCALDIR/plugins/" cp -f "$SRCPLUGINSDIR"/*.so "$LOCALDIR/plugins/" fi +echo Exit chroot... |