From 05defb211e6da0297b72c8af9b177196426aed01 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 19 Feb 2021 18:23:56 +0100 Subject: gensquashfs: Document the globbing feature Signed-off-by: David Oberhollenzer --- bin/gensquashfs/options.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin/gensquashfs/options.c') 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 \n" "pipe \n" "sock \n" +"glob [OPTIONS...] \n" "\n" " 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) -- cgit v1.2.3