49 | | eval patchfiles [split [exec /usr/bin/jot -s " " -w \ |
50 | | [strsed $version {s/\.[0-9]*$//}].%03d \ |
51 | | $vim_patchlevel 1 $vim_patchlevel] " "] |
| 49 | proc list_patches {version patchnum} { |
| 50 | set low 1 |
| 51 | set patch_list [] |
| 52 | while { $low <= $patchnum } { |
| 53 | set high [expr $low + 99]; |
| 54 | if { $high < $patchnum } { |
| 55 | patchfiles-append [ format "%s.%03d-%03d.gz" $version $low $high] |
| 56 | incr low 100 |
| 57 | } { |
| 58 | patchfiles-append [ format "%s.%03d" $version $low] |
| 59 | incr low 1 |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | list_patches [strsed $version {s/\.[0-9]*$//}] $vim_patchlevel |
| 64 | |
| 65 | #eval patchfiles [list_patches [strsed $version {s/\.[0-9]*$//}] 534] |
| 66 | |
| 67 | |
| 68 | |
| 69 | #eval patchfiles [split [exec /usr/bin/jot -s " " -w \ |
| 70 | # [strsed $version {s/\.[0-9]*$//}].%03d \ |
| 71 | # $vim_patchlevel 1 $vim_patchlevel] " "] |
| 72 | |