From 2b3da5ffe19f82bbf7064e599c27ef349b6da6fb Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:44:24 +0200 Subject: [PATCH] version placeholder and makefile updates --- Makefile | 6 ++++++ cmd/pcloudcc/main.cpp | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 20b6b41..3d85266 100644 --- a/Makefile +++ b/Makefile @@ -11,4 +11,10 @@ clean: rm -rf lib/mbedtls-2.1.14/build rm -rf ./cmd/pcloudcc/build +install: + install -m 755 cmd/pcloudcc/build/pcloudcc /usr/bin/pcloudcc + install -m 755 cmd/pcloudcc/build/libpcloudcc_lib.so /usr/lib/libpcloudcc_lib.so +uninstall: + rm /usr/bin/pcloudcc + rm /usr/lib/pcloudcc_lib.so diff --git a/cmd/pcloudcc/main.cpp b/cmd/pcloudcc/main.cpp index f737316..52c081f 100644 --- a/cmd/pcloudcc/main.cpp +++ b/cmd/pcloudcc/main.cpp @@ -38,7 +38,9 @@ namespace po = boost::program_options; namespace ct = control_tools; namespace cc = console_client; -static std::string version = "2.0.1"; + +// TODO: a proper version string might be useful for debugging +static std::string version = "git"; int main(int argc, char **argv) { std::cout << "pCloud console client v." << version << std::endl;