Commit ad2af472 authored by Ciro Santilli's avatar Ciro Santilli

Revert back to shared library, create run and stop scripts

parent 861a9499
......@@ -8,15 +8,14 @@ I'd rather have a single Git repo, but without official support, maintaining a m
## Ubuntu 15.10
Build, install locally under this repository, and run that local install:
Build and install locally under this repository:
./ubuntu-15.10-local-install.sh
nohup ./install/daemon/libexec/dring >/dev/null &
DRING_PID=$!
./install/client-gnome/bin/gnome-ring
To stop, hit: `Ctrl + C` to kill the client and:
Run daemon and client on background:
kill $DRING_PID
./ubuntu-15.10-run.sh
for the server.
Stop daemon and client:
./ubuntu-15.10-stop.sh
......@@ -2,4 +2,5 @@
# Remove everything that is not git tracked on the submodules.
# May cause data loss.
git submodule foreach git clean -dfx
rm -rf install
# sudo here because of: https://tuleap.ring.cx/plugins/tracker/?aid=301
sudo rm -rf install *.log *.pid
client-android @ 01dd7b25
Subproject commit ec528bb70890b5c2808206416fac5c3fa3e91695
Subproject commit 01dd7b25a5a6681df1c8053e14eb4b92aedb5fb5
lrc @ dcf6195e
Subproject commit a7ac2ddfbe14a05bfed0f9220f17bef8cf8bcb29
Subproject commit dcf6195e113c50ba5dac65fa99d2fe8211a55778
#!/usr/bin/env bash
# Build and install to a local prefix under this repository.
set -e
sudo apt-get install \
......@@ -73,7 +75,6 @@ cd build
cmake .. \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX="${INSTALL}/lrc" \
-DENABLE_STATIC=true \
-DRING_BUILD_DIR="${RING}/src"
make
make install
......@@ -83,7 +84,6 @@ mkdir -p build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX="${INSTALL}/client-gnome" \
-DENABLE_STATIC=true \
-DLibRingClient_DIR="${INSTALL}/lrc/lib/cmake/LibRingClient"
make
sudo make install
#!/usr/bin/env bash
# Run local install daemon and client that have\
# been installed with the install script on the background.
./install/daemon/libexec/dring 2>&1 >>daemon.log &
echo $! >daemon.pid
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:install/lrc/lib" ./install/client-gnome/bin/gnome-ring 2>&1 >>client-gnome.log &
echo $! >client-gnome.pid
#!/usr/bin/env bash
# Stop local install daemon and client that have been installed with the install script.
kill "$(cat client-gnome.pid)"
kill "$(cat daemon.pid)"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment