From a5a2a2754e841b3a1e683a456d1c46a935a873e0 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Fri, 3 Feb 2012 21:11:01 +0100 Subject: [PATCH] Make the keystore cli app a BApplication. We need the app to be registered so that the app info can be retrieved. --- src/bin/Jamfile | 2 +- src/bin/keystore/Jamfile | 6 ++++++ src/bin/{ => keystore}/keystore.cpp | 3 +++ src/bin/keystore/keystore.rdef | 2 ++ 4 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/bin/keystore/Jamfile rename src/bin/{ => keystore}/keystore.cpp (98%) create mode 100644 src/bin/keystore/keystore.rdef diff --git a/src/bin/Jamfile b/src/bin/Jamfile index e4f0116810..a06268af96 100644 --- a/src/bin/Jamfile +++ b/src/bin/Jamfile @@ -88,7 +88,6 @@ StdBinCommands draggers.cpp ffm.cpp iroster.cpp - keystore.cpp listattr.cpp listfont.cpp listres.cpp @@ -254,6 +253,7 @@ SubInclude HAIKU_TOP src bin hid_decode ; SubInclude HAIKU_TOP src bin iasl ; SubInclude HAIKU_TOP src bin ideinfo ; SubInclude HAIKU_TOP src bin keymap ; +SubInclude HAIKU_TOP src bin keystore ; SubInclude HAIKU_TOP src bin less ; SubInclude HAIKU_TOP src bin listdev ; SubInclude HAIKU_TOP src bin locale ; diff --git a/src/bin/keystore/Jamfile b/src/bin/keystore/Jamfile new file mode 100644 index 0000000000..8577d772a1 --- /dev/null +++ b/src/bin/keystore/Jamfile @@ -0,0 +1,6 @@ +SubDir HAIKU_TOP src bin keystore ; + +BinCommand keystore : + keystore.cpp + : be + : keystore.rdef ; diff --git a/src/bin/keystore.cpp b/src/bin/keystore/keystore.cpp similarity index 98% rename from src/bin/keystore.cpp rename to src/bin/keystore/keystore.cpp index c4148f47a4..2dd66cddf3 100644 --- a/src/bin/keystore.cpp +++ b/src/bin/keystore/keystore.cpp @@ -7,6 +7,7 @@ */ +#include #include #include @@ -243,6 +244,8 @@ print_usage(const char* name) int main(int argc, char* argv[]) { + BApplication app("application/x-vnd.Haiku-keystore-cli"); + if (argc < 2) return print_usage(argv[0]); diff --git a/src/bin/keystore/keystore.rdef b/src/bin/keystore/keystore.rdef new file mode 100644 index 0000000000..e98269230a --- /dev/null +++ b/src/bin/keystore/keystore.rdef @@ -0,0 +1,2 @@ +resource app_signature "application/x-vnd.Haiku-keystore-cli"; +resource app_flags B_MULTIPLE_LAUNCH;