summaryrefslogtreecommitdiff
path: root/src/skin/slbt_skin_install.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-09 11:14:27 -0400
committermidipix <writeonce@midipix.org>2016-04-09 19:01:07 -0400
commit258073e76ddf4030ff9d6385caf6af7d0c609a3f (patch)
tree562ec12e39eb9beb79a2472bec6ce98c208420e0 /src/skin/slbt_skin_install.c
parentdc77cbe66029a7e925c1d7299be7dfc04d4c263e (diff)
downloadslibtool-258073e76ddf4030ff9d6385caf6af7d0c609a3f.tar.bz2
slibtool-258073e76ddf4030ff9d6385caf6af7d0c609a3f.tar.xz
install mode: initial implementation and integration.
Diffstat (limited to 'src/skin/slbt_skin_install.c')
-rw-r--r--src/skin/slbt_skin_install.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/skin/slbt_skin_install.c b/src/skin/slbt_skin_install.c
new file mode 100644
index 0000000..5689b02
--- /dev/null
+++ b/src/skin/slbt_skin_install.c
@@ -0,0 +1,36 @@
+#include "slibtool_install_impl.h"
+#include "argv/argv.h"
+
+const struct argv_option slbt_install_options[] = {
+ {"help", 'h',TAG_INSTALL_HELP,ARGV_OPTARG_NONE,0,0,0,
+ "display install mode help"},
+
+ {0, 'c',TAG_INSTALL_COPY,ARGV_OPTARG_NONE,0,0,0,
+ "copy"},
+
+ {0, 'd',TAG_INSTALL_MKDIR,ARGV_OPTARG_NONE,0,0,0,
+ "create directories"},
+
+ {0, 'D',TAG_INSTALL_TARGET_MKDIR,ARGV_OPTARG_NONE,0,0,0,
+ "create target directories"},
+
+ {0, 's',TAG_INSTALL_STRIP,ARGV_OPTARG_NONE,0,0,0,
+ "strip symbols"},
+
+ {0, 'p',TAG_INSTALL_PRESERVE,ARGV_OPTARG_NONE,0,0,0,
+ "preserve symbols"},
+
+ {0, 'o',TAG_INSTALL_USER,ARGV_OPTARG_REQUIRED,0,0,"<user>",
+ "set %s ownership"},
+
+ {0, 'g',TAG_INSTALL_GROUP,ARGV_OPTARG_REQUIRED,0,0,"<group>",
+ "set %s ownership"},
+
+ {0, 'm',TAG_INSTALL_MODE,ARGV_OPTARG_REQUIRED,0,0,"<mode>",
+ "set permissions to %s"},
+
+ {0, 't',TAG_INSTALL_DSTDIR,ARGV_OPTARG_REQUIRED,0,0,"<dstdir>",
+ "install to %s"},
+
+ {0,0,0,0,0,0,0,0}
+};