Listing 7. Using Python to Create a List of Names LASTPATCH = 144 # Generate a list of patch filenames. @Patches = '' @for i in range(1, int(LASTPATCH) + 1): @ Patches = Patches + ("6.2.%03d " % i) # Default target: apply all patches. all: done/$*Patches # Make sure the two directories exist. :mkdir {force} patches done # Rule for applying a patch. :rule done/% : patches/% {fetch = ftp://ftp.vim.org/pub/vim/%file%} :sys patch < $source :touch $target