Browse Source

fix punk::zip::mkzip to accept -- end of options marker

master
Julian Noble 1 month ago
parent
commit
46f71ebd51
  1. 47
      src/bootsupport/modules/punk/zip-0.1.1.tm
  2. 47
      src/modules/punk/zip-999999.0a1.0.tm
  3. 47
      src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/zip-0.1.1.tm
  4. 47
      src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/zip-0.1.1.tm
  5. 47
      src/vfs/_vfscommon.vfs/modules/punk/zip-0.1.1.tm

47
src/bootsupport/modules/punk/zip-0.1.1.tm

@ -575,42 +575,45 @@ tcl::namespace::eval punk::zip {
"Create a zip archive in 'filename'" "Create a zip archive in 'filename'"
@opts @opts
-offsettype -default "archive" -choices {archive file}\ -offsettype -default "archive" -choices {archive file}\
-help "zip offsets stored relative to start of entire file or relative to start of zip-archive -help\
Only relevant if the created file has a script/runtime prefix. "zip offsets stored relative to start of entire file or relative to start of zip-archive
" Only relevant if the created file has a script/runtime prefix."
-return -default "pretty" -choices {pretty list none}\ -return -default "pretty" -choices {pretty list none}\
-help "mkzip can return a list of the files and folders added to the archive -help\
the option -return pretty is the default and uses the punk::lib pdict/plist system "mkzip can return a list of the files and folders added to the archive
to return a formatted list for the terminal the option -return pretty is the default and uses the punk::lib pdict/plist system
to return a formatted list for the terminal
" "
-zipkit -default 0 -type none\ -zipkit -default 0 -type none\
-help "whether to add mounting script -help\
mutually exclusive with -runtime option "whether to add mounting script
currently vfs::zip based - todo - autodetect zipfs/vfs with pref for zipfs mutually exclusive with -runtime option
" currently vfs::zip based - todo - autodetect zipfs/vfs with pref for zipfs"
-runtime -default ""\ -runtime -default ""\
-help "specify a prefix file -help\
e.g punk::zip::mkzip -runtime unzipsfx.exe -directory subdir -base subdir output.zip "specify a prefix file
will create a self-extracting zip archive from the subdir/ folder. e.g punk::zip::mkzip -runtime unzipsfx.exe -directory subdir -base subdir output.zip
Expects runtime with no existing vfs attached (review) will create a self-extracting zip archive from the subdir/ folder.
" Expects runtime with no existing vfs attached (review)"
-comment -default ""\ -comment -default ""\
-help "An optional comment for the archive" -help "An optional comment for the archive"
-directory -default ""\ -directory -default ""\
-help "The new zip archive will scan for contents within this folder or current directory if not provided. -help "Scan for contents within this folder or current directory if not provided."
Note that this will
"
-base -default ""\ -base -default ""\
-help "The new zip archive will be rooted in this directory if provided -help\
it must be a parent of -directory or the same path as -directory" "The new zip archive will be rooted in this directory if provided
it must be a parent of -directory or the same path as -directory"
-exclude -default {CVS/* */CVS/* *~ ".#*" "*/.#*"} -exclude -default {CVS/* */CVS/* *~ ".#*" "*/.#*"}
-- -type none -help\
"End of options marker"
@values -min 1 -max -1 @values -min 1 -max -1
filename -type file -default ""\ filename -type file -default ""\
-help "name of zipfile to create" -help "name of zipfile to create"
globs -default {*} -multiple 1\ globs -default {*} -multiple 1\
-help "list of glob patterns to match. -help\
Only directories with matching files will be included in the archive." "list of glob patterns to match.
Only directories with matching files will be included in the archive."
} }
# zip::mkzip -- # zip::mkzip --

47
src/modules/punk/zip-999999.0a1.0.tm

@ -575,42 +575,45 @@ tcl::namespace::eval punk::zip {
"Create a zip archive in 'filename'" "Create a zip archive in 'filename'"
@opts @opts
-offsettype -default "archive" -choices {archive file}\ -offsettype -default "archive" -choices {archive file}\
-help "zip offsets stored relative to start of entire file or relative to start of zip-archive -help\
Only relevant if the created file has a script/runtime prefix. "zip offsets stored relative to start of entire file or relative to start of zip-archive
" Only relevant if the created file has a script/runtime prefix."
-return -default "pretty" -choices {pretty list none}\ -return -default "pretty" -choices {pretty list none}\
-help "mkzip can return a list of the files and folders added to the archive -help\
the option -return pretty is the default and uses the punk::lib pdict/plist system "mkzip can return a list of the files and folders added to the archive
to return a formatted list for the terminal the option -return pretty is the default and uses the punk::lib pdict/plist system
to return a formatted list for the terminal
" "
-zipkit -default 0 -type none\ -zipkit -default 0 -type none\
-help "whether to add mounting script -help\
mutually exclusive with -runtime option "whether to add mounting script
currently vfs::zip based - todo - autodetect zipfs/vfs with pref for zipfs mutually exclusive with -runtime option
" currently vfs::zip based - todo - autodetect zipfs/vfs with pref for zipfs"
-runtime -default ""\ -runtime -default ""\
-help "specify a prefix file -help\
e.g punk::zip::mkzip -runtime unzipsfx.exe -directory subdir -base subdir output.zip "specify a prefix file
will create a self-extracting zip archive from the subdir/ folder. e.g punk::zip::mkzip -runtime unzipsfx.exe -directory subdir -base subdir output.zip
Expects runtime with no existing vfs attached (review) will create a self-extracting zip archive from the subdir/ folder.
" Expects runtime with no existing vfs attached (review)"
-comment -default ""\ -comment -default ""\
-help "An optional comment for the archive" -help "An optional comment for the archive"
-directory -default ""\ -directory -default ""\
-help "The new zip archive will scan for contents within this folder or current directory if not provided. -help "Scan for contents within this folder or current directory if not provided."
Note that this will
"
-base -default ""\ -base -default ""\
-help "The new zip archive will be rooted in this directory if provided -help\
it must be a parent of -directory or the same path as -directory" "The new zip archive will be rooted in this directory if provided
it must be a parent of -directory or the same path as -directory"
-exclude -default {CVS/* */CVS/* *~ ".#*" "*/.#*"} -exclude -default {CVS/* */CVS/* *~ ".#*" "*/.#*"}
-- -type none -help\
"End of options marker"
@values -min 1 -max -1 @values -min 1 -max -1
filename -type file -default ""\ filename -type file -default ""\
-help "name of zipfile to create" -help "name of zipfile to create"
globs -default {*} -multiple 1\ globs -default {*} -multiple 1\
-help "list of glob patterns to match. -help\
Only directories with matching files will be included in the archive." "list of glob patterns to match.
Only directories with matching files will be included in the archive."
} }
# zip::mkzip -- # zip::mkzip --

47
src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/zip-0.1.1.tm

@ -575,42 +575,45 @@ tcl::namespace::eval punk::zip {
"Create a zip archive in 'filename'" "Create a zip archive in 'filename'"
@opts @opts
-offsettype -default "archive" -choices {archive file}\ -offsettype -default "archive" -choices {archive file}\
-help "zip offsets stored relative to start of entire file or relative to start of zip-archive -help\
Only relevant if the created file has a script/runtime prefix. "zip offsets stored relative to start of entire file or relative to start of zip-archive
" Only relevant if the created file has a script/runtime prefix."
-return -default "pretty" -choices {pretty list none}\ -return -default "pretty" -choices {pretty list none}\
-help "mkzip can return a list of the files and folders added to the archive -help\
the option -return pretty is the default and uses the punk::lib pdict/plist system "mkzip can return a list of the files and folders added to the archive
to return a formatted list for the terminal the option -return pretty is the default and uses the punk::lib pdict/plist system
to return a formatted list for the terminal
" "
-zipkit -default 0 -type none\ -zipkit -default 0 -type none\
-help "whether to add mounting script -help\
mutually exclusive with -runtime option "whether to add mounting script
currently vfs::zip based - todo - autodetect zipfs/vfs with pref for zipfs mutually exclusive with -runtime option
" currently vfs::zip based - todo - autodetect zipfs/vfs with pref for zipfs"
-runtime -default ""\ -runtime -default ""\
-help "specify a prefix file -help\
e.g punk::zip::mkzip -runtime unzipsfx.exe -directory subdir -base subdir output.zip "specify a prefix file
will create a self-extracting zip archive from the subdir/ folder. e.g punk::zip::mkzip -runtime unzipsfx.exe -directory subdir -base subdir output.zip
Expects runtime with no existing vfs attached (review) will create a self-extracting zip archive from the subdir/ folder.
" Expects runtime with no existing vfs attached (review)"
-comment -default ""\ -comment -default ""\
-help "An optional comment for the archive" -help "An optional comment for the archive"
-directory -default ""\ -directory -default ""\
-help "The new zip archive will scan for contents within this folder or current directory if not provided. -help "Scan for contents within this folder or current directory if not provided."
Note that this will
"
-base -default ""\ -base -default ""\
-help "The new zip archive will be rooted in this directory if provided -help\
it must be a parent of -directory or the same path as -directory" "The new zip archive will be rooted in this directory if provided
it must be a parent of -directory or the same path as -directory"
-exclude -default {CVS/* */CVS/* *~ ".#*" "*/.#*"} -exclude -default {CVS/* */CVS/* *~ ".#*" "*/.#*"}
-- -type none -help\
"End of options marker"
@values -min 1 -max -1 @values -min 1 -max -1
filename -type file -default ""\ filename -type file -default ""\
-help "name of zipfile to create" -help "name of zipfile to create"
globs -default {*} -multiple 1\ globs -default {*} -multiple 1\
-help "list of glob patterns to match. -help\
Only directories with matching files will be included in the archive." "list of glob patterns to match.
Only directories with matching files will be included in the archive."
} }
# zip::mkzip -- # zip::mkzip --

47
src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/zip-0.1.1.tm

@ -575,42 +575,45 @@ tcl::namespace::eval punk::zip {
"Create a zip archive in 'filename'" "Create a zip archive in 'filename'"
@opts @opts
-offsettype -default "archive" -choices {archive file}\ -offsettype -default "archive" -choices {archive file}\
-help "zip offsets stored relative to start of entire file or relative to start of zip-archive -help\
Only relevant if the created file has a script/runtime prefix. "zip offsets stored relative to start of entire file or relative to start of zip-archive
" Only relevant if the created file has a script/runtime prefix."
-return -default "pretty" -choices {pretty list none}\ -return -default "pretty" -choices {pretty list none}\
-help "mkzip can return a list of the files and folders added to the archive -help\
the option -return pretty is the default and uses the punk::lib pdict/plist system "mkzip can return a list of the files and folders added to the archive
to return a formatted list for the terminal the option -return pretty is the default and uses the punk::lib pdict/plist system
to return a formatted list for the terminal
" "
-zipkit -default 0 -type none\ -zipkit -default 0 -type none\
-help "whether to add mounting script -help\
mutually exclusive with -runtime option "whether to add mounting script
currently vfs::zip based - todo - autodetect zipfs/vfs with pref for zipfs mutually exclusive with -runtime option
" currently vfs::zip based - todo - autodetect zipfs/vfs with pref for zipfs"
-runtime -default ""\ -runtime -default ""\
-help "specify a prefix file -help\
e.g punk::zip::mkzip -runtime unzipsfx.exe -directory subdir -base subdir output.zip "specify a prefix file
will create a self-extracting zip archive from the subdir/ folder. e.g punk::zip::mkzip -runtime unzipsfx.exe -directory subdir -base subdir output.zip
Expects runtime with no existing vfs attached (review) will create a self-extracting zip archive from the subdir/ folder.
" Expects runtime with no existing vfs attached (review)"
-comment -default ""\ -comment -default ""\
-help "An optional comment for the archive" -help "An optional comment for the archive"
-directory -default ""\ -directory -default ""\
-help "The new zip archive will scan for contents within this folder or current directory if not provided. -help "Scan for contents within this folder or current directory if not provided."
Note that this will
"
-base -default ""\ -base -default ""\
-help "The new zip archive will be rooted in this directory if provided -help\
it must be a parent of -directory or the same path as -directory" "The new zip archive will be rooted in this directory if provided
it must be a parent of -directory or the same path as -directory"
-exclude -default {CVS/* */CVS/* *~ ".#*" "*/.#*"} -exclude -default {CVS/* */CVS/* *~ ".#*" "*/.#*"}
-- -type none -help\
"End of options marker"
@values -min 1 -max -1 @values -min 1 -max -1
filename -type file -default ""\ filename -type file -default ""\
-help "name of zipfile to create" -help "name of zipfile to create"
globs -default {*} -multiple 1\ globs -default {*} -multiple 1\
-help "list of glob patterns to match. -help\
Only directories with matching files will be included in the archive." "list of glob patterns to match.
Only directories with matching files will be included in the archive."
} }
# zip::mkzip -- # zip::mkzip --

47
src/vfs/_vfscommon.vfs/modules/punk/zip-0.1.1.tm

@ -575,42 +575,45 @@ tcl::namespace::eval punk::zip {
"Create a zip archive in 'filename'" "Create a zip archive in 'filename'"
@opts @opts
-offsettype -default "archive" -choices {archive file}\ -offsettype -default "archive" -choices {archive file}\
-help "zip offsets stored relative to start of entire file or relative to start of zip-archive -help\
Only relevant if the created file has a script/runtime prefix. "zip offsets stored relative to start of entire file or relative to start of zip-archive
" Only relevant if the created file has a script/runtime prefix."
-return -default "pretty" -choices {pretty list none}\ -return -default "pretty" -choices {pretty list none}\
-help "mkzip can return a list of the files and folders added to the archive -help\
the option -return pretty is the default and uses the punk::lib pdict/plist system "mkzip can return a list of the files and folders added to the archive
to return a formatted list for the terminal the option -return pretty is the default and uses the punk::lib pdict/plist system
to return a formatted list for the terminal
" "
-zipkit -default 0 -type none\ -zipkit -default 0 -type none\
-help "whether to add mounting script -help\
mutually exclusive with -runtime option "whether to add mounting script
currently vfs::zip based - todo - autodetect zipfs/vfs with pref for zipfs mutually exclusive with -runtime option
" currently vfs::zip based - todo - autodetect zipfs/vfs with pref for zipfs"
-runtime -default ""\ -runtime -default ""\
-help "specify a prefix file -help\
e.g punk::zip::mkzip -runtime unzipsfx.exe -directory subdir -base subdir output.zip "specify a prefix file
will create a self-extracting zip archive from the subdir/ folder. e.g punk::zip::mkzip -runtime unzipsfx.exe -directory subdir -base subdir output.zip
Expects runtime with no existing vfs attached (review) will create a self-extracting zip archive from the subdir/ folder.
" Expects runtime with no existing vfs attached (review)"
-comment -default ""\ -comment -default ""\
-help "An optional comment for the archive" -help "An optional comment for the archive"
-directory -default ""\ -directory -default ""\
-help "The new zip archive will scan for contents within this folder or current directory if not provided. -help "Scan for contents within this folder or current directory if not provided."
Note that this will
"
-base -default ""\ -base -default ""\
-help "The new zip archive will be rooted in this directory if provided -help\
it must be a parent of -directory or the same path as -directory" "The new zip archive will be rooted in this directory if provided
it must be a parent of -directory or the same path as -directory"
-exclude -default {CVS/* */CVS/* *~ ".#*" "*/.#*"} -exclude -default {CVS/* */CVS/* *~ ".#*" "*/.#*"}
-- -type none -help\
"End of options marker"
@values -min 1 -max -1 @values -min 1 -max -1
filename -type file -default ""\ filename -type file -default ""\
-help "name of zipfile to create" -help "name of zipfile to create"
globs -default {*} -multiple 1\ globs -default {*} -multiple 1\
-help "list of glob patterns to match. -help\
Only directories with matching files will be included in the archive." "list of glob patterns to match.
Only directories with matching files will be included in the archive."
} }
# zip::mkzip -- # zip::mkzip --

Loading…
Cancel
Save