diff --git a/.gitignore b/.gitignore index acf5dd9..c753616 100644 --- a/.gitignore +++ b/.gitignore @@ -86,3 +86,4 @@ dkms.conf *.out *.app +renga diff --git a/Jamfile b/Jamfile new file mode 100644 index 0000000..081fa0a --- /dev/null +++ b/Jamfile @@ -0,0 +1,3 @@ +Binary = Renga ; +Compiler = GCC ; + diff --git a/Makefile b/Makefile index 209e86e..6f365cd 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,16 @@ BINARY=renga CPP=g++ +HOST=192.168.122.254 all: build build: $(CPP) src/main.cpp -o $(BINARY) +run: + @echo "tranferring over all files..." + @scp -r ./* user@$(HOST):~/dev + @echo "executing on remote host..." + ssh user@$(HOST) "cd dev;echo '### compiling';make;echo '### running';./renga" + + diff --git a/README.md b/README.md index df43835..6affdbc 100644 --- a/README.md +++ b/README.md @@ -4,5 +4,19 @@ Renga, a XMPP client designed for Haiku ## todo -- [ ] make haiku-os compatible +- [x] make haiku-os compatible - [ ] everything else + +## run + +To run on a Linux system, spin up a HaikuOS development VM and get its IP address reachable from the host. +Execute the following command on the host: +```bash +make run HOST=1.1.1.1 +``` + +If you are doing development work on the local system, use: +```bash +make build +./renga +``` diff --git a/src/main.cpp b/src/main.cpp index e0c0dc0..8987e9e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,7 +1,14 @@ #include "iostream" +#include +#include +#include -int main() -{ - std::cout << "imagine a world...\n"; - return 0; +int main() { + std::string msg = "hello world"; + for (int i = 0; i < msg.length(); i++) { + std::cout << msg[i]; + if (i != msg.length() - 1 && msg[i+1] != ' ' && msg[i] != ' ') + std::cout << '-'; + } + return 0; }