aboutsummaryrefslogtreecommitdiff
path: root/bin/gensquashfs/options.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-02-19 18:23:56 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-02-19 19:38:53 +0100
commit05defb211e6da0297b72c8af9b177196426aed01 (patch)
tree4f9b2f69426de20ab087bf9bf33702e34f99c975 /bin/gensquashfs/options.c
parente4b94b1f7ca0cdfdbc3bebcbbc2ef14e85ede065 (diff)
gensquashfs: Document the globbing feature
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin/gensquashfs/options.c')
-rw-r--r--bin/gensquashfs/options.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/gensquashfs/options.c b/bin/gensquashfs/options.c
index ec2263c..14c37ab 100644
--- a/bin/gensquashfs/options.c
+++ b/bin/gensquashfs/options.c
@@ -131,6 +131,7 @@ const char *help_details =
"link <path> <dummy> <dummy> <dummy> <target>\n"
"pipe <path> <mode> <uid> <gid>\n"
"sock <path> <mode> <uid> <gid>\n"
+"glob <path> <mode|*> <uid|*> <gid|*> [OPTIONS...] <location>\n"
"\n"
"<path> Absolute path of the entry in the image. Can be put in quotes\n"
" if some components contain spaces.\n"
@@ -161,6 +162,11 @@ const char *help_details =
" \n"
" # file name with a space in it.\n"
" file \"/opt/my app/\\\"special\\\"/data\" 0600 0 0\n"
+" \n"
+" # collect the contents of ./lib and put it under /usr/lib\n"
+" glob /usr/lib 0755 0 0 -type d ./lib\n"
+" glob /usr/lib 0755 0 0 -type f -name \"*.so.*\" ./lib\n"
+" glob /usr/lib 0777 0 0 -type l -name \"*.so.*\" ./lib\n"
"\n\n";
void process_command_line(options_t *opt, int argc, char **argv)