From 8f34b311bbc473e5eaca224dec3383295a365c9d Mon Sep 17 00:00:00 2001 From: Julian Noble Date: Wed, 17 Jun 2026 20:12:20 +1000 Subject: [PATCH] src/make.tcl exclude AGENTS.md from copying to installation folders --- src/make.tcl | 14 ++++++++++---- .../custom/_project/punk.basic/src/make.tcl | 14 ++++++++++---- .../custom/_project/punk.project-0.1/src/make.tcl | 14 ++++++++++---- .../custom/_project/punk.shell-0.1/src/make.tcl | 14 ++++++++++---- 4 files changed, 40 insertions(+), 16 deletions(-) diff --git a/src/make.tcl b/src/make.tcl index c17d72aa..25ba66ae 100644 --- a/src/make.tcl +++ b/src/make.tcl @@ -1231,7 +1231,7 @@ proc ::punkboot::punkboot_gethelp {args} { array set haspkg [punkboot::package_bools $pkg_availability] ;#convenience e.g if {$haspkg(textblock)} ... set scriptname [file tail [info script]] - append h "Usage:" \n + append h "Usage:" \n append h "" \n append h " $scriptname -help or $scriptname --help or $scriptname /? or just $scriptname" \n append h " - This help." \n \n @@ -2004,6 +2004,8 @@ if {$::punkboot::command eq "bootsupport"} { if {[file exists [file join $project_layout_base $layoutname/src/bootsupport]]} { set antipaths [list {*}{ README.md + AGENTS.md + **/AGENTS.md }] #set boot_module_folders [list modules {*}[glob -nocomplain -dir $projectroot/src/bootsupport/modules_tcl*]] set bootsupport_module_folders "modules" @@ -2094,7 +2096,7 @@ if {$::punkboot::command in {project packages modules}} { set resultdict [punkcheck::install $sourcefolder/$vf $target_module_folder\ -installer make.tcl\ -overwrite installedsourcechanged-targets\ - -antiglob_paths {README.md include_modules.config}\ + -antiglob_paths {README.md AGENTS.md **/AGENTS.md include_modules.config}\ -progresschannel stdout\ ] puts stdout [punkcheck::summarize_install_resultdict $resultdict] @@ -2112,6 +2114,8 @@ if {$::punkboot::command in {project packages libs}} { # **/test.txt will match at any level below the root (but not in the root) set antipaths [list {*}{ README.md + AGENTS.md + **/AGENTS.md }] #step1 - vendorlib - pkgIndex.tcl based libraries that are platform neutral and tcl-majorversion neutral set vendorlibfolders [glob -nocomplain -dir $sourcefolder -type d -tails vendorlib] @@ -2173,7 +2177,7 @@ if {$::punkboot::command in {project packages libs}} { if {$::punkboot::command in {project packages libs}} { ######################################################## - lappend projectlibfolders lib + lappend projectlibfolders lib #exclude README.md from source folder - but only the root one #-antiglob_paths takes relative patterns e.g # */test.txt will only match test.txt exactly one level deep. @@ -2181,6 +2185,8 @@ if {$::punkboot::command in {project packages libs}} { # **/test.txt will match at any level below the root (but not in the root) set antipaths [list {*}{ README.md + AGENTS.md + **/AGENTS.md }] #step1 - src/lib - pkgIndex.tcl based libraries that are platform neutral and tcl-majorversion neutral set projectlibfolders [glob -nocomplain -dir $sourcefolder -type d -tails lib] @@ -2348,7 +2354,7 @@ if {$::punkboot::command in {project packages modules}} { set resultdict [punkcheck::install_non_tm_files $src_module_dir $target_modules_base\ -installer make.tcl\ -overwrite $overwrite\ - -antiglob_paths {README.md}\ + -antiglob_paths {README.md **/AGENTS.md AGENTS.md}\ -progresschannel stdout\ ] puts stdout [punkcheck::summarize_install_resultdict $resultdict] diff --git a/src/project_layouts/custom/_project/punk.basic/src/make.tcl b/src/project_layouts/custom/_project/punk.basic/src/make.tcl index c17d72aa..25ba66ae 100644 --- a/src/project_layouts/custom/_project/punk.basic/src/make.tcl +++ b/src/project_layouts/custom/_project/punk.basic/src/make.tcl @@ -1231,7 +1231,7 @@ proc ::punkboot::punkboot_gethelp {args} { array set haspkg [punkboot::package_bools $pkg_availability] ;#convenience e.g if {$haspkg(textblock)} ... set scriptname [file tail [info script]] - append h "Usage:" \n + append h "Usage:" \n append h "" \n append h " $scriptname -help or $scriptname --help or $scriptname /? or just $scriptname" \n append h " - This help." \n \n @@ -2004,6 +2004,8 @@ if {$::punkboot::command eq "bootsupport"} { if {[file exists [file join $project_layout_base $layoutname/src/bootsupport]]} { set antipaths [list {*}{ README.md + AGENTS.md + **/AGENTS.md }] #set boot_module_folders [list modules {*}[glob -nocomplain -dir $projectroot/src/bootsupport/modules_tcl*]] set bootsupport_module_folders "modules" @@ -2094,7 +2096,7 @@ if {$::punkboot::command in {project packages modules}} { set resultdict [punkcheck::install $sourcefolder/$vf $target_module_folder\ -installer make.tcl\ -overwrite installedsourcechanged-targets\ - -antiglob_paths {README.md include_modules.config}\ + -antiglob_paths {README.md AGENTS.md **/AGENTS.md include_modules.config}\ -progresschannel stdout\ ] puts stdout [punkcheck::summarize_install_resultdict $resultdict] @@ -2112,6 +2114,8 @@ if {$::punkboot::command in {project packages libs}} { # **/test.txt will match at any level below the root (but not in the root) set antipaths [list {*}{ README.md + AGENTS.md + **/AGENTS.md }] #step1 - vendorlib - pkgIndex.tcl based libraries that are platform neutral and tcl-majorversion neutral set vendorlibfolders [glob -nocomplain -dir $sourcefolder -type d -tails vendorlib] @@ -2173,7 +2177,7 @@ if {$::punkboot::command in {project packages libs}} { if {$::punkboot::command in {project packages libs}} { ######################################################## - lappend projectlibfolders lib + lappend projectlibfolders lib #exclude README.md from source folder - but only the root one #-antiglob_paths takes relative patterns e.g # */test.txt will only match test.txt exactly one level deep. @@ -2181,6 +2185,8 @@ if {$::punkboot::command in {project packages libs}} { # **/test.txt will match at any level below the root (but not in the root) set antipaths [list {*}{ README.md + AGENTS.md + **/AGENTS.md }] #step1 - src/lib - pkgIndex.tcl based libraries that are platform neutral and tcl-majorversion neutral set projectlibfolders [glob -nocomplain -dir $sourcefolder -type d -tails lib] @@ -2348,7 +2354,7 @@ if {$::punkboot::command in {project packages modules}} { set resultdict [punkcheck::install_non_tm_files $src_module_dir $target_modules_base\ -installer make.tcl\ -overwrite $overwrite\ - -antiglob_paths {README.md}\ + -antiglob_paths {README.md **/AGENTS.md AGENTS.md}\ -progresschannel stdout\ ] puts stdout [punkcheck::summarize_install_resultdict $resultdict] diff --git a/src/project_layouts/custom/_project/punk.project-0.1/src/make.tcl b/src/project_layouts/custom/_project/punk.project-0.1/src/make.tcl index c17d72aa..25ba66ae 100644 --- a/src/project_layouts/custom/_project/punk.project-0.1/src/make.tcl +++ b/src/project_layouts/custom/_project/punk.project-0.1/src/make.tcl @@ -1231,7 +1231,7 @@ proc ::punkboot::punkboot_gethelp {args} { array set haspkg [punkboot::package_bools $pkg_availability] ;#convenience e.g if {$haspkg(textblock)} ... set scriptname [file tail [info script]] - append h "Usage:" \n + append h "Usage:" \n append h "" \n append h " $scriptname -help or $scriptname --help or $scriptname /? or just $scriptname" \n append h " - This help." \n \n @@ -2004,6 +2004,8 @@ if {$::punkboot::command eq "bootsupport"} { if {[file exists [file join $project_layout_base $layoutname/src/bootsupport]]} { set antipaths [list {*}{ README.md + AGENTS.md + **/AGENTS.md }] #set boot_module_folders [list modules {*}[glob -nocomplain -dir $projectroot/src/bootsupport/modules_tcl*]] set bootsupport_module_folders "modules" @@ -2094,7 +2096,7 @@ if {$::punkboot::command in {project packages modules}} { set resultdict [punkcheck::install $sourcefolder/$vf $target_module_folder\ -installer make.tcl\ -overwrite installedsourcechanged-targets\ - -antiglob_paths {README.md include_modules.config}\ + -antiglob_paths {README.md AGENTS.md **/AGENTS.md include_modules.config}\ -progresschannel stdout\ ] puts stdout [punkcheck::summarize_install_resultdict $resultdict] @@ -2112,6 +2114,8 @@ if {$::punkboot::command in {project packages libs}} { # **/test.txt will match at any level below the root (but not in the root) set antipaths [list {*}{ README.md + AGENTS.md + **/AGENTS.md }] #step1 - vendorlib - pkgIndex.tcl based libraries that are platform neutral and tcl-majorversion neutral set vendorlibfolders [glob -nocomplain -dir $sourcefolder -type d -tails vendorlib] @@ -2173,7 +2177,7 @@ if {$::punkboot::command in {project packages libs}} { if {$::punkboot::command in {project packages libs}} { ######################################################## - lappend projectlibfolders lib + lappend projectlibfolders lib #exclude README.md from source folder - but only the root one #-antiglob_paths takes relative patterns e.g # */test.txt will only match test.txt exactly one level deep. @@ -2181,6 +2185,8 @@ if {$::punkboot::command in {project packages libs}} { # **/test.txt will match at any level below the root (but not in the root) set antipaths [list {*}{ README.md + AGENTS.md + **/AGENTS.md }] #step1 - src/lib - pkgIndex.tcl based libraries that are platform neutral and tcl-majorversion neutral set projectlibfolders [glob -nocomplain -dir $sourcefolder -type d -tails lib] @@ -2348,7 +2354,7 @@ if {$::punkboot::command in {project packages modules}} { set resultdict [punkcheck::install_non_tm_files $src_module_dir $target_modules_base\ -installer make.tcl\ -overwrite $overwrite\ - -antiglob_paths {README.md}\ + -antiglob_paths {README.md **/AGENTS.md AGENTS.md}\ -progresschannel stdout\ ] puts stdout [punkcheck::summarize_install_resultdict $resultdict] diff --git a/src/project_layouts/custom/_project/punk.shell-0.1/src/make.tcl b/src/project_layouts/custom/_project/punk.shell-0.1/src/make.tcl index c17d72aa..25ba66ae 100644 --- a/src/project_layouts/custom/_project/punk.shell-0.1/src/make.tcl +++ b/src/project_layouts/custom/_project/punk.shell-0.1/src/make.tcl @@ -1231,7 +1231,7 @@ proc ::punkboot::punkboot_gethelp {args} { array set haspkg [punkboot::package_bools $pkg_availability] ;#convenience e.g if {$haspkg(textblock)} ... set scriptname [file tail [info script]] - append h "Usage:" \n + append h "Usage:" \n append h "" \n append h " $scriptname -help or $scriptname --help or $scriptname /? or just $scriptname" \n append h " - This help." \n \n @@ -2004,6 +2004,8 @@ if {$::punkboot::command eq "bootsupport"} { if {[file exists [file join $project_layout_base $layoutname/src/bootsupport]]} { set antipaths [list {*}{ README.md + AGENTS.md + **/AGENTS.md }] #set boot_module_folders [list modules {*}[glob -nocomplain -dir $projectroot/src/bootsupport/modules_tcl*]] set bootsupport_module_folders "modules" @@ -2094,7 +2096,7 @@ if {$::punkboot::command in {project packages modules}} { set resultdict [punkcheck::install $sourcefolder/$vf $target_module_folder\ -installer make.tcl\ -overwrite installedsourcechanged-targets\ - -antiglob_paths {README.md include_modules.config}\ + -antiglob_paths {README.md AGENTS.md **/AGENTS.md include_modules.config}\ -progresschannel stdout\ ] puts stdout [punkcheck::summarize_install_resultdict $resultdict] @@ -2112,6 +2114,8 @@ if {$::punkboot::command in {project packages libs}} { # **/test.txt will match at any level below the root (but not in the root) set antipaths [list {*}{ README.md + AGENTS.md + **/AGENTS.md }] #step1 - vendorlib - pkgIndex.tcl based libraries that are platform neutral and tcl-majorversion neutral set vendorlibfolders [glob -nocomplain -dir $sourcefolder -type d -tails vendorlib] @@ -2173,7 +2177,7 @@ if {$::punkboot::command in {project packages libs}} { if {$::punkboot::command in {project packages libs}} { ######################################################## - lappend projectlibfolders lib + lappend projectlibfolders lib #exclude README.md from source folder - but only the root one #-antiglob_paths takes relative patterns e.g # */test.txt will only match test.txt exactly one level deep. @@ -2181,6 +2185,8 @@ if {$::punkboot::command in {project packages libs}} { # **/test.txt will match at any level below the root (but not in the root) set antipaths [list {*}{ README.md + AGENTS.md + **/AGENTS.md }] #step1 - src/lib - pkgIndex.tcl based libraries that are platform neutral and tcl-majorversion neutral set projectlibfolders [glob -nocomplain -dir $sourcefolder -type d -tails lib] @@ -2348,7 +2354,7 @@ if {$::punkboot::command in {project packages modules}} { set resultdict [punkcheck::install_non_tm_files $src_module_dir $target_modules_base\ -installer make.tcl\ -overwrite $overwrite\ - -antiglob_paths {README.md}\ + -antiglob_paths {README.md **/AGENTS.md AGENTS.md}\ -progresschannel stdout\ ] puts stdout [punkcheck::summarize_install_resultdict $resultdict]