Add untested (and poorly-named) zip_unversioned option.
Chris Pressey
10 years ago
46 | 46 |
https://bitbucket.org/catseye/maentwrog
|
47 | 47 |
https://bitbucket.org/catseye/rube
|
48 | 48 |
]],
|
|
49 |
zip_unversioned = true,
|
49 | 50 |
|
50 | 51 |
install_instructions = [[
|
51 | 52 |
* select "Install to Hard Disk"
|
315 | 315 |
execute(funicular, 'cp -p distfiles/' .. source_name .. ' staging_area/' .. dest_name)
|
316 | 316 |
end
|
317 | 317 |
for url in string.gmatch(funicular.distrepos_hg or "", "[^%s]+") do
|
|
318 |
local source_name = basename(url)
|
|
319 |
local dest_name = source_name
|
|
320 |
if funicular.name_map and funicular.name_map[source_name] then
|
|
321 |
dest_name = funicular.name_map[source_name]
|
|
322 |
end
|
318 | 323 |
if funicular.toolshelf_inside then
|
319 | 324 |
execute(funicular, 'cd distrepos && tar zcf ../staging_area/bitbucket.org,catseye,' ..
|
320 | |
basename(url) .. '-master.tar.gz ' .. basename(url))
|
|
325 |
dest_name .. '-master.tar.gz ' .. source_name)
|
|
326 |
elseif funicular.zip_unversioned then
|
|
327 |
execute(funicular, 'cd distrepos/' .. source_name ..
|
|
328 |
' && hg archive -r tip -t zip ' ..
|
|
329 |
'-X .hgignore -X .gitignore -X .hgtags -X .hg_archival.txt ' ..
|
|
330 |
'../staging_area/' .. dest_name .. '.zip')
|
321 | 331 |
else
|
322 | |
local source_name = basename(url)
|
323 | |
local dest_name = source_name
|
324 | |
if funicular.name_map and funicular.name_map[source_name] then
|
325 | |
dest_name = funicular.name_map[source_name]
|
326 | |
end
|
327 | 332 |
execute(funicular, 'cd distrepos && tar zcf ../staging_area/' ..
|
328 | 333 |
dest_name .. '.tgz ' .. source_name)
|
329 | 334 |
end
|