git @ Cat's Eye Technologies Funicular / 0a7e478
Support name_map. Simplify FreeDOS INSTPLAT; use TOOLS dir. Chris Pressey 10 years ago
4 changed file(s) with 31 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
2323 http://catseye.tc/distfiles/shelta-1.2-2014.0422.zip
2424 https://github.com/catseye/Illgol-Grand-Mal/archive/rel_16_tons_and_what_do_you_get.zip
2525 ]],
26
27 name_map = {
28 ["yasm-1.2.0-dos.exe"] = 'yasm120.exe',
29 ["lua-5.2.2.tar.gz"] = 'lua522.tgz',
30 ["shelta-1.2-2014.0422.zip"] = 'shelta12.zip',
31 ["rel_16_tons_and_what_do_you_get.zip"] = 'illgolgm.zip'
32 },
2633
2734 distrepos_hg = [[
2835 https://bitbucket.org/catseye/befunge-93
0 SET PATH=C:\DJGPP\BIN;%PATH%
0 SET PATH=C:\DJGPP\BIN;C:\TOOLS;%PATH%
11 SET DJGPP=C:\DJGPP\DJGPP.ENV
1313 UNZIP D:\fil41b.zip
1414 COPY D:\COPYING.DJ .
1515 COPY D:\README.1ST .
16 CD ..
16
1717 :AlreadyDJGPP
18 REM UNZIP D:\NASM-~15.ZIP
19 IF EXIST C:\FDOS\BIN\YASM.EXE GOTO AlreadyYASM
20 UPX -9 D:\YASM-~17.EXE -oC:\FDOS\BIN\YASM.EXE
21 :AlreadyYASM
22 CD C:\FDOS\BIN
23 IF EXIST C:\FDOS\BIN\TED3.COM GOTO AlreadyTED3
18 CD C:\
19 IF EXIST C:\TOOLS\NUL GOTO AlreadyTools
20 MKDIR TOOLS
21 UPX -9 D:\YASM120.EXE -oC:\TOOLS\YASM.EXE
22 CD C:\TOOLS
2423 UNZIP D:\TED3.ZIP
25 :AlreadyTED3
2624 COPY D:\INITFLOP.BAT .
2725 COPY D:\PUTFLOPY.BAT .
26
27 :AlreadyTools
2828 CD C:\
2929 COPY AUTOEXEC.BAT TMP.BAT
3030 COPY TMP.BAT+D:\DJGPPENV.BAT AUTOEXEC.BAT
3232 COPY FDCONFIG.SYS TMP.SYS
3333 COPY TMP.SYS+D:\NANSI.CFG FDCONFIG.SYS
3434 DEL TMP.SYS
35
3536 MKDIR SKEL
3637 XCOPY D:\SKEL C:\SKEL /S /Y /R
307307 execute(funicular, 'rm -rf staging_area')
308308 execute(funicular, 'mkdir -p staging_area')
309309 for url in string.gmatch(funicular.distfiles or "", "[^%s]+") do
310 execute(funicular, 'cp -p distfiles/' .. basename(url) .. ' staging_area/')
310 local source_name = basename(url)
311 local dest_name = source_name
312 if funicular.name_map and funicular.name_map[source_name] then
313 dest_name = funicular.name_map[source_name]
314 end
315 execute(funicular, 'cp -p distfiles/' .. source_name .. ' staging_area/' .. dest_name)
311316 end
312317 for url in string.gmatch(funicular.distrepos_hg or "", "[^%s]+") do
313318 if funicular.toolshelf_inside then
319324 end
320325 end
321326 for url in string.gmatch(funicular.distrepos_git or "", "[^%s]+") do
322 execute(funicular, 'cd distrepos && tar zcf ../staging_area/github.com,catseye,' ..
323 basename(url) .. '-master.tar.gz ' .. basename(url))
327 if funicular.toolshelf_inside then
328 execute(funicular, 'cd distrepos && tar zcf ../staging_area/github.com,catseye,' ..
329 basename(url) .. '-master.tar.gz ' .. basename(url))
330 else
331 execute(funicular, 'cd distrepos && tar zcf ../staging_area/' ..
332 basename(url) .. '.tgz ' .. basename(url))
333 end
324334 end
325335
326336 if exists('skel') then
446456
447457 local result, error = loadfile("Funicularfile")
448458 if result == nil then
449 print("No Funicularfile found in this directory.")
459 print("No valid Funicularfile found in this directory.")
450460 os.exit(1)
451461 end
452462 local funicular = result()