@profoundlogic/codermake 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/bin/index.js +1 -1
- package/dist/bin/preprocess-rpg-copy.js +2 -0
- package/dist/bin/rdf-to-dds.js +1 -1
- package/dist/lib/discovery.js +1 -1
- package/dist/lib/executor.js +1 -1
- package/dist/lib/generate-rdf-dds.js +1 -1
- package/dist/lib/license.js +1 -1
- package/dist/lib/makefile-generator.js +1 -1
- package/dist/lib/platform.js +1 -1
- package/dist/lib/preprocessor.js +1 -1
- package/dist/lib/rdf-to-post-data.js +1 -1
- package/dist/lib/rpg-copy-preprocessor.js +1 -0
- package/dist/lib/ssh.js +1 -1
- package/dist/lib/writer.js +1 -1
- package/dist/makefiles/base.mk +17 -0
- package/dist/makefiles/ibmi.mk +15 -6
- package/dist/makefiles/unix.mk +31 -8
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x4ae2ed,_0xd04041){const _0x38444f=_0x1859,_0x4dd4e8=_0x4ae2ed();while(!![]){try{const _0x1baf1a=parseInt(_0x38444f(0x1e6))/0x1+parseInt(_0x38444f(0x1b8))/0x2+parseInt(_0x38444f(0x1cf))/0x3*(-parseInt(_0x38444f(0x1db))/0x4)+-parseInt(_0x38444f(0x1d8))/0x5+parseInt(_0x38444f(0x1d2))/0x6*(parseInt(_0x38444f(0x1e1))/0x7)+-parseInt(_0x38444f(0x1bb))/0x8+parseInt(_0x38444f(0x1f7))/0x9;if(_0x1baf1a===_0xd04041)break;else _0x4dd4e8['push'](_0x4dd4e8['shift']());}catch(_0x540cf2){_0x4dd4e8['push'](_0x4dd4e8['shift']());}}}(_0x5b7e,0xc2ac9));import{readFileSync,writeFileSync,mkdirSync,copyFileSync,readdirSync}from'fs';import{dirname,join}from'path';import{randomUUID}from'crypto';export function detectFormat(_0x2ba443){const _0x11686d=_0x1859,_0x5cb58e={};_0x5cb58e[_0x11686d(0x1cb)]=_0x11686d(0x1ee);const _0x2cb122=_0x5cb58e;if(/^\*\*free$/i[_0x11686d(0x1c6)](_0x2ba443['trimEnd']()))return _0x11686d(0x1f3);return _0x2cb122[_0x11686d(0x1cb)];}export function extractDirective(_0x5396f2,_0x30e952){const _0x56e6ca=_0x1859,_0x5f2a63={};_0x5f2a63[_0x56e6ca(0x1e8)]=function(_0x3dfa99,_0x3ff79d){return _0x3dfa99===_0x3ff79d;},_0x5f2a63[_0x56e6ca(0x1be)]='free',_0x5f2a63[_0x56e6ca(0x1ed)]=function(_0x31177d,_0x330fd6){return _0x31177d+_0x330fd6;},_0x5f2a63[_0x56e6ca(0x1d9)]=function(_0x5d953d,_0x2079b6){return _0x5d953d+_0x2079b6;},_0x5f2a63[_0x56e6ca(0x1e5)]=function(_0x1d6fab,_0x372dce){return _0x1d6fab+_0x372dce;};const _0x517f18=_0x5f2a63;let _0x422bac,_0x474dd1;if(_0x517f18[_0x56e6ca(0x1e8)](_0x30e952,_0x517f18[_0x56e6ca(0x1be)])){const _0x479f42=_0x5396f2['match'](/^\s*\/(copy|include) (\S)/i);if(!_0x479f42)return null;const _0x2640e9=_0x5396f2[_0x56e6ca(0x1ef)]();if(_0x2640e9['startsWith']('//'))return null;_0x422bac=_0x479f42[0x1][_0x56e6ca(0x1dd)](),_0x474dd1=_0x5396f2[_0x56e6ca(0x1f6)](_0x517f18[_0x56e6ca(0x1ed)](_0x479f42[_0x56e6ca(0x1dc)],_0x479f42[0x0][_0x56e6ca(0x1b6)])-0x1);}else{if(_0x5396f2['length']<0x7)return null;if(_0x5396f2[0x6]!=='/')return null;const _0x13afb0=_0x5396f2['substring'](0x7),_0x592981=_0x13afb0[_0x56e6ca(0x1b3)](/^(copy|include) (\S)/i);if(!_0x592981)return null;_0x422bac=_0x592981[0x1][_0x56e6ca(0x1dd)](),_0x474dd1=_0x13afb0['substring'](_0x592981[0x0]['length']-0x1);}let _0x1ba664;if(_0x474dd1[_0x56e6ca(0x1c4)]('\x27')){const _0x31a520=_0x474dd1[_0x56e6ca(0x1c7)]('\x27',0x1);_0x1ba664=_0x31a520===-0x1?_0x474dd1[_0x56e6ca(0x1c8)]():_0x474dd1[_0x56e6ca(0x1f6)](0x0,_0x517f18[_0x56e6ca(0x1d9)](_0x31a520,0x1));}else{if(_0x474dd1[_0x56e6ca(0x1c4)]('\x22')){const _0x727df=_0x474dd1[_0x56e6ca(0x1c7)]('\x22',0x1);_0x1ba664=_0x727df===-0x1?_0x474dd1['trim']():_0x474dd1[_0x56e6ca(0x1f6)](0x0,_0x517f18['NDoQg'](_0x727df,0x1));}else _0x1ba664=_0x474dd1['split'](/\s/)[0x0];}const _0x1908d4={};return _0x1908d4[_0x56e6ca(0x1eb)]=_0x422bac,_0x1908d4[_0x56e6ca(0x1e9)]=_0x1ba664,_0x1908d4;}export function classifyDirectiveOperand(_0x401835){const _0x1e7047=_0x1859,_0x1b45b0={};_0x1b45b0['qIrmD']='ifs',_0x1b45b0['hqFEa']='member';const _0x367a13=_0x1b45b0;if(_0x401835['startsWith']('\x27')||_0x401835[_0x1e7047(0x1c4)]('\x22')){const _0x3b327f={};return _0x3b327f[_0x1e7047(0x1d6)]=_0x367a13[_0x1e7047(0x1c0)],_0x3b327f;}if(_0x401835[_0x1e7047(0x1e7)](',')){const _0x213aed=_0x401835[_0x1e7047(0x1c7)](','),_0xe0fe64=_0x401835[_0x1e7047(0x1f6)](0x0,_0x213aed),_0x2c96aa=_0x401835[_0x1e7047(0x1f6)](_0x213aed+0x1),_0x209574=_0xe0fe64[_0x1e7047(0x1c7)]('/');if(_0x209574!==-0x1)return{'type':_0x1e7047(0x1c2),'library':_0xe0fe64[_0x1e7047(0x1f6)](0x0,_0x209574),'fileName':_0xe0fe64[_0x1e7047(0x1f6)](_0x209574+0x1),'memberName':_0x2c96aa};const _0x50f7d8={};return _0x50f7d8['type']=_0x1e7047(0x1c2),_0x50f7d8[_0x1e7047(0x1b2)]=null,_0x50f7d8[_0x1e7047(0x1f1)]=_0xe0fe64,_0x50f7d8[_0x1e7047(0x1b5)]=_0x2c96aa,_0x50f7d8;}if(_0x401835[_0x1e7047(0x1e7)]('/')){const _0x2b6297={};return _0x2b6297['type']=_0x1e7047(0x1bf),_0x2b6297;}if(/\.rpgle$/i[_0x1e7047(0x1c6)](_0x401835)||/\.sqlrpgle$/i[_0x1e7047(0x1c6)](_0x401835)){const _0x49f37f={};return _0x49f37f[_0x1e7047(0x1d6)]=_0x1e7047(0x1bf),_0x49f37f;}const _0x1ca98a={};return _0x1ca98a[_0x1e7047(0x1d6)]=_0x367a13[_0x1e7047(0x1d5)],_0x1ca98a[_0x1e7047(0x1b2)]=null,_0x1ca98a[_0x1e7047(0x1f1)]=null,_0x1ca98a[_0x1e7047(0x1b5)]=_0x401835,_0x1ca98a;}function findFileInsensitive(_0x20421a,_0x4db9cc){const _0x375bf4=_0x1859;let _0xa1c34f;try{_0xa1c34f=readdirSync(_0x20421a);}catch{return null;}if(_0xa1c34f[_0x375bf4(0x1e7)](_0x4db9cc))return _0x4db9cc;const _0x4438b2=_0x4db9cc['toLowerCase']();return _0xa1c34f[_0x375bf4(0x1bc)](_0x5147a6=>_0x5147a6[_0x375bf4(0x1dd)]()===_0x4438b2)||null;}function findDirInsensitive(_0x445a3a,_0x39bf98){const _0x32588e=_0x1859,_0x23b8b8={'YyMpQ':function(_0x132095,_0x59049e){return _0x132095(_0x59049e);}};let _0x29f2b8;try{_0x29f2b8=_0x23b8b8[_0x32588e(0x1d7)](readdirSync,_0x445a3a);}catch{return null;}if(_0x29f2b8[_0x32588e(0x1e7)](_0x39bf98))return _0x39bf98;const _0x1168c6=_0x39bf98['toLowerCase']();return _0x29f2b8[_0x32588e(0x1bc)](_0x557f93=>_0x557f93[_0x32588e(0x1dd)]()===_0x1168c6)||null;}export function resolveSourceMember(_0x4c2075,_0x1e952d){const _0x82617b=_0x1859,_0x5c0762={'CATYK':_0x82617b(0x1cc),'SIbtb':function(_0x56f7f7,_0x428d9d){return _0x56f7f7+_0x428d9d;},'ffxPa':function(_0x5859ea,_0x9daeb5,_0x17e818){return _0x5859ea(_0x9daeb5,_0x17e818);}},{library:_0x47f6de,fileName:_0x55fd76,memberName:_0x4d4adf}=_0x4c2075;let _0x2e9f2e;if(_0x55fd76===null)_0x2e9f2e='qrpglesrc';else _0x47f6de!==null?_0x2e9f2e=_0x47f6de+'/'+_0x55fd76:_0x2e9f2e=_0x55fd76;const _0x5ed232=_0x2e9f2e[_0x82617b(0x1e3)]('/');let _0x11d2b6=_0x1e952d;const _0xd6379=[];for(const _0x6c4665 of _0x5ed232){const _0x580130=findDirInsensitive(_0x11d2b6,_0x6c4665);if(!_0x580130)throw new Error(_0x82617b(0x1b9)+_0x2e9f2e+_0x82617b(0x1f5)+_0x6c4665+_0x82617b(0x1df)+_0x11d2b6+'\x27)');_0xd6379['push'](_0x580130),_0x11d2b6=join(_0x11d2b6,_0x580130);}const _0x10d8ec=_0xd6379[_0x82617b(0x1d4)]('/'),_0x44a3e4=[_0x5c0762[_0x82617b(0x1da)],_0x82617b(0x1ca)];for(const _0x233ef1 of _0x44a3e4){const _0x3d7e47=_0x5c0762[_0x82617b(0x1ec)](_0x4d4adf,_0x233ef1),_0x19af51=findFileInsensitive(_0x5c0762[_0x82617b(0x1f4)](join,_0x1e952d,_0x10d8ec),_0x3d7e47);if(_0x19af51)return _0x10d8ec+'/'+_0x19af51;}throw new Error(_0x82617b(0x1c9)+_0x4d4adf+_0x82617b(0x1f0)+_0x10d8ec+_0x82617b(0x1de));}export function preprocessFileContent(_0x48b7d5,_0x426bbc){const _0xdf87a2=_0x1859,_0x50e4d0={'lEFUD':function(_0xed549a,_0x5d0f36){return _0xed549a(_0x5d0f36);},'ZnPyF':function(_0x1c0ef4,_0x1530de){return _0x1c0ef4===_0x1530de;},'JmOWP':function(_0x48f128,_0x41ff62){return _0x48f128+_0x41ff62;}},_0xa97476=_0x48b7d5[_0xdf87a2(0x1e3)]('\x0a'),_0x91db74={};_0x91db74[_0xdf87a2(0x1ea)]=_0x48b7d5,_0x91db74['modified']=![];if(_0xa97476[_0xdf87a2(0x1b6)]===0x0)return _0x91db74;const _0x1ca200=_0x50e4d0[_0xdf87a2(0x1d1)](detectFormat,_0xa97476[0x0]);let _0xad7dea=![];const _0x25fbca=[];for(let _0x2b2189=0x0;_0x2b2189<_0xa97476['length'];_0x2b2189++){const _0x2e49a7=_0xa97476[_0x2b2189],_0x297cd2=extractDirective(_0x2e49a7,_0x1ca200);if(!_0x297cd2){_0x25fbca[_0xdf87a2(0x1cd)](_0x2e49a7);continue;}const _0x2b5847=classifyDirectiveOperand(_0x297cd2[_0xdf87a2(0x1e9)]);if(_0x2b5847[_0xdf87a2(0x1d6)]===_0xdf87a2(0x1bf)){_0x25fbca[_0xdf87a2(0x1cd)](_0x2e49a7);continue;}let _0x57ec45;try{_0x57ec45=resolveSourceMember(_0x2b5847,_0x426bbc);}catch(_0x36d4bc){const _0x5e198d=_0x2b2189+0x1;throw new Error(_0x36d4bc[_0xdf87a2(0x1b7)]+'\x0a'+('\x20\x20File:\x20line\x20'+_0x5e198d+'\x0a')+(_0xdf87a2(0x1ce)+_0x2e49a7[_0xdf87a2(0x1ef)]()));}let _0x134904;if(_0x50e4d0['ZnPyF'](_0x1ca200,'free')){const _0x1af541=_0x2e49a7[_0xdf87a2(0x1b3)](/^(\s*\/)(copy|include) /i),_0xde37ca=_0x1af541[0x1],_0x2674f2=_0x1af541[0x2],_0x2d22fe=_0x2e49a7[_0xdf87a2(0x1f6)](_0x1af541[0x0]['length']+_0x297cd2['operand'][_0xdf87a2(0x1b6)]);_0x134904=''+_0xde37ca+_0x2674f2+'\x20'+_0x57ec45+_0x2d22fe;}else{const _0x5c9aa1=_0x2e49a7[_0xdf87a2(0x1f6)](0x0,0x6),_0x370934=_0x2e49a7[_0xdf87a2(0x1f6)](0x7)[_0xdf87a2(0x1b3)](/^(copy|include) /i),_0x11071f=_0x370934[0x1],_0x393754=0x7+_0x370934[0x0][_0xdf87a2(0x1b6)],_0x56752e=_0x2e49a7[_0xdf87a2(0x1f6)](_0x50e4d0['JmOWP'](_0x393754,_0x297cd2['operand'][_0xdf87a2(0x1b6)]));_0x134904=_0x5c9aa1+'/'+_0x11071f+'\x20'+_0x57ec45+_0x56752e;}_0x25fbca[_0xdf87a2(0x1cd)](_0x134904),_0xad7dea=!![];}return{'content':_0x25fbca['join']('\x0a'),'modified':_0xad7dea};}export function preprocessFile(_0x18e30f,_0x31a0b7){const _0x13d2a5=_0x1859,_0x4a6757={'YnALR':function(_0x21ca49,_0x59ae80,_0x20018c){return _0x21ca49(_0x59ae80,_0x20018c);},'UmPpY':_0x13d2a5(0x1b4),'QDJvF':function(_0x54a17f,_0x29a15a,_0x171bda){return _0x54a17f(_0x29a15a,_0x171bda);}};if(!/\.(rpgle|sqlrpgle)$/i['test'](_0x18e30f)){const _0x16ef94={};return _0x16ef94[_0x13d2a5(0x1bd)]=![],_0x16ef94;}const _0x285920=_0x4a6757[_0x13d2a5(0x1d3)](readFileSync,_0x18e30f,_0x4a6757[_0x13d2a5(0x1f2)]);try{return _0x4a6757[_0x13d2a5(0x1e2)](preprocessFileContent,_0x285920,_0x31a0b7);}catch(_0x2cbc10){const _0xc9c791=_0x2cbc10['message'][_0x13d2a5(0x1e0)](/^(.*\n {2})File: /,_0x13d2a5(0x1c1)+_0x18e30f+',\x20');throw new Error(_0xc9c791);}}export function preprocessFiles(_0x51f1d8,_0x2575ee,_0x247f48){const _0x3a93ad=_0x1859,_0x1351ea={'nMxoa':function(_0x42d9e8,_0x3782d7,_0x31db7e){return _0x42d9e8(_0x3782d7,_0x31db7e);},'mLNCc':function(_0x9f2a10){return _0x9f2a10();},'tRllj':function(_0x57a330,_0x543314){return _0x57a330<_0x543314;},'aifGX':function(_0x6588c7,_0x248de6,_0x3fbeaa){return _0x6588c7(_0x248de6,_0x3fbeaa);},'FSTNV':function(_0x5bb92f,_0x15712b){return _0x5bb92f(_0x15712b);}},_0x21df10=[];let _0x261b0f=![];for(const _0x42cb2f of _0x51f1d8){const _0x56a4ba=_0x1351ea['nMxoa'](join,_0x2575ee,_0x42cb2f),_0x9a1d06=preprocessFile(_0x56a4ba,_0x2575ee),_0x5ecc9a={'filePath':_0x42cb2f,..._0x9a1d06};_0x21df10['push'](_0x5ecc9a);if(_0x9a1d06['modified'])_0x261b0f=!![];}if(!_0x261b0f){const _0x44a3df={};return _0x44a3df[_0x3a93ad(0x1e4)]=![],_0x44a3df[_0x3a93ad(0x1d0)]='.',_0x44a3df;}const _0x341845=_0x247f48+'-'+_0x1351ea['mLNCc'](randomUUID);for(let _0x2a356d=0x0;_0x1351ea[_0x3a93ad(0x1c3)](_0x2a356d,_0x51f1d8[_0x3a93ad(0x1b6)]);_0x2a356d++){const _0x219c1a=_0x51f1d8[_0x2a356d],_0x20f605=_0x21df10[_0x2a356d],_0x6f6c8c=_0x1351ea['aifGX'](join,_0x341845,_0x219c1a),_0x4f7df3={};_0x4f7df3[_0x3a93ad(0x1c5)]=!![],mkdirSync(_0x1351ea['FSTNV'](dirname,_0x6f6c8c),_0x4f7df3),_0x20f605['modified']?writeFileSync(_0x6f6c8c,_0x20f605[_0x3a93ad(0x1ea)]):_0x1351ea[_0x3a93ad(0x1ba)](copyFileSync,_0x1351ea[_0x3a93ad(0x1ba)](join,_0x2575ee,_0x219c1a),_0x6f6c8c);}const _0x354646={};return _0x354646[_0x3a93ad(0x1e4)]=!![],_0x354646['sourceRoot']=_0x341845,_0x354646;}function _0x1859(_0x1bd11a,_0x17f025){_0x1bd11a=_0x1bd11a-0x1b2;const _0x5b7e93=_0x5b7e();let _0x1859c2=_0x5b7e93[_0x1bd11a];if(_0x1859['Owvvrl']===undefined){var _0x5f1686=function(_0x2619ba){const _0x453413='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x42d7ef='',_0x473ee5='';for(let _0x59d3b0=0x0,_0x54a20c,_0x11b943,_0x4fe0b2=0x0;_0x11b943=_0x2619ba['charAt'](_0x4fe0b2++);~_0x11b943&&(_0x54a20c=_0x59d3b0%0x4?_0x54a20c*0x40+_0x11b943:_0x11b943,_0x59d3b0++%0x4)?_0x42d7ef+=String['fromCharCode'](0xff&_0x54a20c>>(-0x2*_0x59d3b0&0x6)):0x0){_0x11b943=_0x453413['indexOf'](_0x11b943);}for(let _0x5ee373=0x0,_0x25cea7=_0x42d7ef['length'];_0x5ee373<_0x25cea7;_0x5ee373++){_0x473ee5+='%'+('00'+_0x42d7ef['charCodeAt'](_0x5ee373)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x473ee5);};_0x1859['sbdPLe']=_0x5f1686,_0x1859['ynZLJn']={},_0x1859['Owvvrl']=!![];}const _0x38b9ca=_0x5b7e93[0x0],_0x54ea7c=_0x1bd11a+_0x38b9ca,_0x3b59be=_0x1859['ynZLJn'][_0x54ea7c];return!_0x3b59be?(_0x1859c2=_0x1859['sbdPLe'](_0x1859c2),_0x1859['ynZLJn'][_0x54ea7c]=_0x1859c2):_0x1859c2=_0x3b59be,_0x1859c2;}function _0x5b7e(){const _0x27630d=['vw1qCfK','zNjLzq','zMz4uge','icHSB29RAw5NigzVCIaN','C3vIC3rYAw5N','ndiWntK0m1LSrvrhDq','BgLICMfYEq','Bwf0y2G','DxrMoa','BwvTyMvYtMfTzq','BgvUz3rO','BwvZC2fNzq','mtm3mJaWzvLZzxbn','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','ywLMr1G','nZG0mZyWmgvPEMnNDq','zMLUza','Bw9KAwzPzwq','wKjRCeG','AwzZ','CuLYBuq','jdfgAwXLoIa','BwvTyMvY','DfjSBgO','C3rHCNrZv2L0Aa','CMvJDxjZAxzL','DgvZDa','Aw5KzxHpzG','DhjPBq','u291CMnLig1LBwjLCIbUB3qGzM91BMq6ia','lNnXBhjWz2XL','rwfsywK','lNjWz2XL','ChvZAa','icbeAxjLy3rPDMu6ia','mJCZmg94Dfbbwq','C291CMnLuM9VDa','Bevgvuq','mJq4otu4u0rLsxrw','ww5btfi','AM9PBG','Ahfgrwe','DhLWzq','wxLnCfe','mZCWmZi1EezLAfLk','wwrfvLi','q0fuwuS','mtyZnKvSDvLbsq','Aw5KzxG','Dg9mB3DLCKnHC2u','lYaODhjPzwqGlNjWz2XLlcaUC3fSCNbNBguP','jYbPBIaN','CMvWBgfJzq','nZb0rvvkt2y','uurkDKy','C3bSAxq','BMvLzgvK','tKrVuwC','mti3mZiZm0LhBfzsDq','Aw5JBhvKzxm','y25Zuw8','B3bLCMfUza','y29UDgvUDa','A2v5D29Yza','u0LIDgi','z1bpA2y','zML4zwq','DhjPBvn0yxj0','igLUia','zMLSzu5HBwu'];_0x5b7e=function(){return _0x27630d;};return _0x5b7e();}
|
package/dist/lib/ssh.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2b71ef,_0x413acf){const _0x4e681d=_0x2868,_0x1db576=_0x2b71ef();while(!![]){try{const _0x54b9dd=-parseInt(_0x4e681d(0x182))/0x1+parseInt(_0x4e681d(0x192))/0x2+parseInt(_0x4e681d(0x17c))/0x3+parseInt(_0x4e681d(0x18a))/0x4+parseInt(_0x4e681d(0x191))/0x5+-parseInt(_0x4e681d(0x18e))/0x6*(-parseInt(_0x4e681d(0x176))/0x7)+-parseInt(_0x4e681d(0x175))/0x8;if(_0x54b9dd===_0x413acf)break;else _0x1db576['push'](_0x1db576['shift']());}catch(_0x2ec084){_0x1db576['push'](_0x1db576['shift']());}}}(_0x319e,0x983b6));import{spawn}from'child_process';import{readdirSync}from'fs';async function waitForSSHSocket(_0x8a3411,_0x2e5f30,_0x20d668=0x3a98){const _0x5317ed={'qVTbF':function(_0x2d011c,_0x1f603a){return _0x2d011c!==_0x1f603a;},'SCAwl':function(_0x10f811,_0xada373){return _0x10f811(_0xada373);},'kdzOo':function(_0x4a371e){return _0x4a371e();},'hhkhm':function(_0x1f0eb5,_0x3be408){return _0x1f0eb5>=_0x3be408;},'uANdt':'exit'};return new Promise((_0xe10915,_0x931db6)=>{const _0x1b6fe2=_0x2868;let _0x156fa3=![],_0x29cb5c=null;_0x2e5f30['on'](_0x5317ed[_0x1b6fe2(0x180)],_0x2edeef=>{const _0x165446=_0x1b6fe2;_0x29cb5c=_0x2edeef,!_0x156fa3&&_0x5317ed[_0x165446(0x194)](_0x2edeef,0x0)&&(_0x156fa3=!![],_0x931db6(new Error('SSH\x20master\x20exited\x20with\x20code\x20'+_0x2edeef)));});const _0x498e3f=Date[_0x1b6fe2(0x17a)](),_0x562add=()=>{const _0x3e72f5=_0x1b6fe2;if(_0x156fa3)return;const _0x17a877=_0x5317ed['SCAwl'](readdirSync,_0x8a3411);if(_0x17a877[_0x3e72f5(0x193)](_0xef2841=>_0xef2841['startsWith'](_0x3e72f5(0x179)))){_0x156fa3=!![],_0x5317ed['kdzOo'](_0xe10915);return;}if(_0x5317ed[_0x3e72f5(0x187)](Date[_0x3e72f5(0x17a)]()-_0x498e3f,_0x20d668)){_0x156fa3=!![];const _0x5b041e=_0x29cb5c!==null?'\x20(process\x20exited\x20with\x20code\x20'+_0x29cb5c+')':'';_0x5317ed[_0x3e72f5(0x17f)](_0x931db6,new Error(_0x3e72f5(0x186)+_0x20d668+'ms'+_0x5b041e));return;}setTimeout(_0x562add,0x64);};_0x562add();});}function _0x2868(_0x4cf512,_0x423961){_0x4cf512=_0x4cf512-0x174;const _0x319e5b=_0x319e();let _0x28689f=_0x319e5b[_0x4cf512];if(_0x2868['Auttmd']===undefined){var _0x2a7ca6=function(_0xd8d7d4){const _0x223cc0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4c8406='',_0x244280='';for(let _0x54a8a5=0x0,_0x10c651,_0x802f2b,_0x147bbf=0x0;_0x802f2b=_0xd8d7d4['charAt'](_0x147bbf++);~_0x802f2b&&(_0x10c651=_0x54a8a5%0x4?_0x10c651*0x40+_0x802f2b:_0x802f2b,_0x54a8a5++%0x4)?_0x4c8406+=String['fromCharCode'](0xff&_0x10c651>>(-0x2*_0x54a8a5&0x6)):0x0){_0x802f2b=_0x223cc0['indexOf'](_0x802f2b);}for(let _0x21f266=0x0,_0x64c9ad=_0x4c8406['length'];_0x21f266<_0x64c9ad;_0x21f266++){_0x244280+='%'+('00'+_0x4c8406['charCodeAt'](_0x21f266)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x244280);};_0x2868['hvdoVE']=_0x2a7ca6,_0x2868['nUifwA']={},_0x2868['Auttmd']=!![];}const _0x3094c2=_0x319e5b[0x0],_0x353958=_0x4cf512+_0x3094c2,_0xbc8d68=_0x2868['nUifwA'][_0x353958];return!_0xbc8d68?(_0x28689f=_0x2868['hvdoVE'](_0x28689f),_0x2868['nUifwA'][_0x353958]=_0x28689f):_0x28689f=_0xbc8d68,_0x28689f;}function _0x319e(){const _0x1bf9dd=['q29UDhjVBe1HC3rLCJ15zxm','u0nbD2W','Dufozhq','ifntscbTyxn0zxiGzxn0ywjSAxnOzwq','mtiZnZm5n2X2whPArW','l3nZAc0LqW','w3nZAf0','C3nO','u1niig1HC3rLCIbKAwqGBM90ihn0yxj0ihDPDgHPBIa','AgHRAg0','ChvZAa','q29UDhjVBfbHDgG9','mti5mJG0oevItxzkta','u3rYAwn0sg9ZDeTLEunOzwnRAw5Npw5V','tgPgB24','Dw5Yzwy','mtuXmJa3ofPOwvnLBG','Bg9N','CwrJrvq','ntCYnZmXnwHsrxHWyW','mtq4odiWohjxreXUAW','C29Tzq','CvzuyKy','A3bRzw0','oti0ntmYmgz6qxfhzW','mJflzezdrLO','t3blrwS','u2vYDMvYqwXPDMvdB3vUDe1HEd0Z','C3nOlq','BM93','rxDfsuu','mtqZmZu4qKfOEe13','DxP5tfm'];_0x319e=function(){return _0x1bf9dd;};return _0x319e();}export async function establishSSHMaster(_0x5c55f6,_0x1472d9={}){const _0x14dea5=_0x2868,_0x15f8da={'kpkem':_0x14dea5(0x17e),'OpKEk':_0x14dea5(0x18b),'ELvVb':'PasswordAuthentication=no','uzyLS':_0x14dea5(0x178),'EwEIE':function(_0x597697,_0x5f2b00,_0x4cf16d,_0x277318){return _0x597697(_0x5f2b00,_0x4cf16d,_0x277318);},'qdcET':_0x14dea5(0x185),'LjFon':'ignore'},{host:_0x2091ec,user:_0xa49460,sshKey:_0x4eaa4c,debug:debug=![],debugPrefix:debugPrefix=_0x14dea5(0x184)}=_0x1472d9;if(!_0x2091ec||!_0xa49460)return;const _0x4b4785=readdirSync(_0x5c55f6);if(_0x4b4785[_0x14dea5(0x193)](_0x4c4f27=>_0x4c4f27['startsWith'](_0x14dea5(0x179)))){if(debug)console[_0x14dea5(0x18f)](debugPrefix+'\x20SSH\x20master\x20already\x20exists,\x20reusing');return;}if(debug)console[_0x14dea5(0x18f)](debugPrefix+'\x20Pre-establishing\x20SSH\x20master\x20connection...');const _0x57a4f1=['-o',_0x15f8da[_0x14dea5(0x174)],'-o',_0x14dea5(0x189)+_0x5c55f6+_0x14dea5(0x183),'-o','ControlPersist=10m','-o',_0x15f8da[_0x14dea5(0x177)],'-o',_0x15f8da['ELvVb'],'-o','ServerAliveInterval=60','-o',_0x15f8da[_0x14dea5(0x17d)],'-N','-f'];_0x4eaa4c&&_0x57a4f1[_0x14dea5(0x188)]('-i',_0x4eaa4c);_0x57a4f1[_0x14dea5(0x188)](_0xa49460+'@'+_0x2091ec);const _0x5c4eaa=_0x15f8da[_0x14dea5(0x17b)](spawn,_0x15f8da[_0x14dea5(0x190)],_0x57a4f1,{'detached':!![],'stdio':_0x15f8da[_0x14dea5(0x18c)]});_0x5c4eaa[_0x14dea5(0x18d)](),await waitForSSHSocket(_0x5c55f6,_0x5c4eaa,0x3a98);if(debug)console['log'](debugPrefix+_0x14dea5(0x181));}
|
package/dist/lib/writer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x29497b,_0x4db117){const _0x36bf53=_0x451e,_0x858e45=_0x29497b();while(!![]){try{const _0x1b6410=parseInt(_0x36bf53(0x1ea))/0x1+-parseInt(_0x36bf53(0x1ec))/0x2+-parseInt(_0x36bf53(0x1e1))/0x3+-parseInt(_0x36bf53(0x1f1))/0x4*(parseInt(_0x36bf53(0x1de))/0x5)+-parseInt(_0x36bf53(0x1e3))/0x6*(parseInt(_0x36bf53(0x1e8))/0x7)+-parseInt(_0x36bf53(0x1ed))/0x8+parseInt(_0x36bf53(0x1f3))/0x9*(parseInt(_0x36bf53(0x1eb))/0xa);if(_0x1b6410===_0x4db117)break;else _0x858e45['push'](_0x858e45['shift']());}catch(_0x1555e6){_0x858e45['push'](_0x858e45['shift']());}}}(_0xd1bc,0x81ed3));function _0x451e(_0x21eaf7,_0x449a55){_0x21eaf7=_0x21eaf7-0x1de;const _0xd1bc09=_0xd1bc();let _0x451e0b=_0xd1bc09[_0x21eaf7];if(_0x451e['AuxfSG']===undefined){var _0x1fbabd=function(_0xfd6c3){const _0x38171b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x35097d='',_0x6e3274='';for(let _0x283352=0x0,_0x314687,_0x27a247,_0x5b3bcd=0x0;_0x27a247=_0xfd6c3['charAt'](_0x5b3bcd++);~_0x27a247&&(_0x314687=_0x283352%0x4?_0x314687*0x40+_0x27a247:_0x27a247,_0x283352++%0x4)?_0x35097d+=String['fromCharCode'](0xff&_0x314687>>(-0x2*_0x283352&0x6)):0x0){_0x27a247=_0x38171b['indexOf'](_0x27a247);}for(let _0x261a2a=0x0,_0x537cb3=_0x35097d['length'];_0x261a2a<_0x537cb3;_0x261a2a++){_0x6e3274+='%'+('00'+_0x35097d['charCodeAt'](_0x261a2a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x6e3274);};_0x451e['bKrkeU']=_0x1fbabd,_0x451e['IEIyHN']={},_0x451e['AuxfSG']=!![];}const _0x1c6e35=_0xd1bc09[0x0],_0x90f606=_0x21eaf7+_0x1c6e35,_0xd75410=_0x451e['IEIyHN'][_0x90f606];return!_0xd75410?(_0x451e0b=_0x451e['bKrkeU'](_0x451e0b),_0x451e['IEIyHN'][_0x90f606]=_0x451e0b):_0x451e0b=_0xd75410,_0x451e0b;}import{writeFileSync,mkdirSync,existsSync}from'fs';import{join}from'path';import{randomUUID}from'crypto';function _0xd1bc(){const _0x57ee0b=['Dg1WrgLY','z2Pnvwq','mtC1nJCZngDWAen2rG','AM9PBG','nM1MrKroza','CNvSzxmUBwS','CNvSzxngAwXL','BwfWCgLUz0zPBgu','DgfYz2v0CY5TAW','nduZodu2ou9ZyuPwDG','txrbt1i','ndm3otDsExzbzfy','mtmWmZm0me9TyLPjsa','mtC0nJa3oePsC2D5CG','mZq2mdy4mgLyCwrbDa','EK5NtfC','y20T','DxrMoa','nZi0v0PlAhbZ','u01XEM4','mJm0wxnhwvLY','vhHQDuu','C3rYAw5NAwz5','tMfuEuy','CMvWBgfJzq','uNfruxm','EK9qwxK','otK2nwXLDxPtvG'];_0xd1bc=function(){return _0x57ee0b;};return _0xd1bc();}import{tmpdir}from'os';function ensureDir(_0x163eed){const _0x14f869=_0x451e,_0x687dc={'zOPYy':function(_0x367771,_0x1df2e7,_0x252468){return _0x367771(_0x1df2e7,_0x252468);}};if(!existsSync(_0x163eed)){const _0x114440={};_0x114440['recursive']=!![],_0x687dc[_0x14f869(0x1f9)](mkdirSync,_0x163eed,_0x114440);}}export function writeRules(_0x2788f3,_0x30843f,_0xb55a76={},_0x559333=null){const _0x1ab85f=_0x451e,_0x227775={'zNgLW':function(_0x4b2273){return _0x4b2273();},'gjMUd':function(_0x57ae46,_0x229117,_0x5dfb84){return _0x57ae46(_0x229117,_0x5dfb84);},'SMqzn':_0x1ab85f(0x1e7),'RqQQs':function(_0xb43339,_0xff7949){return _0xb43339+_0xff7949;},'NaTyF':function(_0x566ecc,_0x55a342,_0x30a45a,_0x7dc14d){return _0x566ecc(_0x55a342,_0x30a45a,_0x7dc14d);},'MtAOR':_0x1ab85f(0x1f0),'TxjuE':function(_0x2f242c,_0x11220e,_0x336f03,_0x4f8be3){return _0x2f242c(_0x11220e,_0x336f03,_0x4f8be3);}};if(!_0x559333){const _0x3b9d2a=_0x227775[_0x1ab85f(0x1ee)](randomUUID)[_0x1ab85f(0x1f7)](/-/g,'');_0x559333=join(tmpdir(),_0x1ab85f(0x1ef)+_0x3b9d2a);}ensureDir(_0x559333);const _0x2778bd=_0x227775['gjMUd'](join,_0x559333,_0x1ab85f(0x1e4)),_0x4f7803=join(_0x559333,_0x227775[_0x1ab85f(0x1f2)]),_0x12a7d1=_0x227775[_0x1ab85f(0x1e0)](join,_0x559333,'target-mapping.json'),_0x280138=_0x227775[_0x1ab85f(0x1f8)](_0x2788f3[_0x1ab85f(0x1e2)]('\x0a'),'\x0a');_0x227775[_0x1ab85f(0x1f6)](writeFileSync,_0x2778bd,_0x280138,_0x227775[_0x1ab85f(0x1e9)]);const _0x5af2af='TARGETS\x20:=\x20'+_0x30843f['join']('\x20')+'\x0a';_0x227775['NaTyF'](writeFileSync,_0x4f7803,_0x5af2af,_0x227775['MtAOR']);const _0x189649=JSON[_0x1ab85f(0x1f5)](_0xb55a76,null,0x2);_0x227775[_0x1ab85f(0x1f4)](writeFileSync,_0x12a7d1,_0x189649,'utf8');const _0x6f5527={};return _0x6f5527[_0x1ab85f(0x1e5)]=_0x2778bd,_0x6f5527['targetsFile']=_0x4f7803,_0x6f5527[_0x1ab85f(0x1e6)]=_0x12a7d1,_0x6f5527[_0x1ab85f(0x1df)]=_0x559333,_0x6f5527;}
|
package/dist/makefiles/base.mk
CHANGED
|
@@ -22,3 +22,20 @@ if liblist | grep -Eiq '^$(LIBRARY)[[:space:]]+'; then
|
|
|
22
22
|
fi
|
|
23
23
|
liblist -af $(LIBRARY)
|
|
24
24
|
endef
|
|
25
|
+
|
|
26
|
+
######
|
|
27
|
+
# RPG /COPY preprocessor - converts source member style directives to IFS paths
|
|
28
|
+
# $(1) = space-separated list of source files involved in the recipe
|
|
29
|
+
# Sets shell variable RPG_SRC_ROOT to the effective source root:
|
|
30
|
+
# '.' if no preprocessing needed, or a generated temp dir path if any file was preprocessed
|
|
31
|
+
######
|
|
32
|
+
define RPG_PREPROCESS_SOURCES
|
|
33
|
+
RPG_SRC_ROOT=$$('$(CODERMAKE_NODE)' '$(CODERMAKE_PACKAGE_DIR)/bin/preprocess-rpg-copy.js' $(1) --temp-prefix tmp/rpg-pp)
|
|
34
|
+
endef
|
|
35
|
+
|
|
36
|
+
######
|
|
37
|
+
# Cleanup RPG preprocessor temp dir (only if preprocessing created one)
|
|
38
|
+
######
|
|
39
|
+
define RPG_CLEANUP_SOURCES
|
|
40
|
+
if [ "$$RPG_SRC_ROOT" != "." ]; then rm -rf "$$RPG_SRC_ROOT"; fi
|
|
41
|
+
endef
|
package/dist/makefiles/ibmi.mk
CHANGED
|
@@ -84,29 +84,37 @@ $(LIBRARY_PATH):
|
|
|
84
84
|
# Build RPGLE program (bound)
|
|
85
85
|
define BUILD_RPGLE_PGM
|
|
86
86
|
$(call SETUP_LOG,$(notdir $@))
|
|
87
|
+
$(call RPG_PREPROCESS_SOURCES,$< $(filter-out $(LIBRARY_PATH)/%,$^))
|
|
87
88
|
$(SET_LIBL)
|
|
88
|
-
system "crtbndrpg pgm($(LIBRARY)/$(basename $(@F))) srcstmf('
|
|
89
|
+
system "crtbndrpg pgm($(LIBRARY)/$(basename $(@F))) srcstmf('$$RPG_SRC_ROOT/$<') incdir('$$RPG_SRC_ROOT') tgtccsid(*job) output(*print) dbgview(*all)"
|
|
90
|
+
$(call RPG_CLEANUP_SOURCES)
|
|
89
91
|
endef
|
|
90
92
|
|
|
91
93
|
# Build SQL RPGLE program
|
|
92
94
|
define BUILD_SQLRPGLE_PGM
|
|
93
95
|
$(call SETUP_LOG,$(notdir $@))
|
|
96
|
+
$(call RPG_PREPROCESS_SOURCES,$< $(filter-out $(LIBRARY_PATH)/%,$^))
|
|
94
97
|
$(SET_LIBL)
|
|
95
|
-
system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*pgm) srcstmf('
|
|
98
|
+
system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*pgm) srcstmf('$$RPG_SRC_ROOT/$<') cvtccsid(*job) output(*print) rpgppopt(*lvl1) compileopt('incdir(''$$RPG_SRC_ROOT'') tgtccsid(*job) output(*print)') dbgview(*source)"
|
|
99
|
+
$(call RPG_CLEANUP_SOURCES)
|
|
96
100
|
endef
|
|
97
101
|
|
|
98
102
|
# Build RPGLE module
|
|
99
103
|
define BUILD_RPGLE_MODULE
|
|
100
104
|
$(call SETUP_LOG,$(notdir $@))
|
|
105
|
+
$(call RPG_PREPROCESS_SOURCES,$< $(filter-out $(LIBRARY_PATH)/%,$^))
|
|
101
106
|
$(SET_LIBL)
|
|
102
|
-
system "crtrpgmod module($(LIBRARY)/$(basename $(@F))) srcstmf('
|
|
107
|
+
system "crtrpgmod module($(LIBRARY)/$(basename $(@F))) srcstmf('$$RPG_SRC_ROOT/$<') incdir('$$RPG_SRC_ROOT') tgtccsid(*job) output(*print) dbgview(*all)"
|
|
108
|
+
$(call RPG_CLEANUP_SOURCES)
|
|
103
109
|
endef
|
|
104
110
|
|
|
105
111
|
# Build SQL RPGLE module
|
|
106
112
|
define BUILD_SQLRPGLE_MODULE
|
|
107
113
|
$(call SETUP_LOG,$(notdir $@))
|
|
114
|
+
$(call RPG_PREPROCESS_SOURCES,$< $(filter-out $(LIBRARY_PATH)/%,$^))
|
|
108
115
|
$(SET_LIBL)
|
|
109
|
-
system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*module) srcstmf('
|
|
116
|
+
system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*module) srcstmf('$$RPG_SRC_ROOT/$<') cvtccsid(*job) output(*print) rpgppopt(*lvl1) compileopt('incdir(''$$RPG_SRC_ROOT'') tgtccsid(*job) output(*print)') dbgview(*source)"
|
|
117
|
+
$(call RPG_CLEANUP_SOURCES)
|
|
110
118
|
endef
|
|
111
119
|
|
|
112
120
|
# Build ILE CL program (bound)
|
|
@@ -156,7 +164,7 @@ endef
|
|
|
156
164
|
# Build display file from RDF (Rich Display File) JSON
|
|
157
165
|
define BUILD_RDF_TO_FILE
|
|
158
166
|
$(call SETUP_LOG,$(notdir $@))
|
|
159
|
-
|
|
167
|
+
'$(CODERMAKE_NODE)' '$(CODERMAKE_PACKAGE_DIR)/bin/rdf-to-dds.js' '$<' 'tmp/$(basename $(@F)).dspf'
|
|
160
168
|
$(call CREATE_SOURCE_MEMBER,tmp/$(basename $(@F)).dspf,qddssrc)
|
|
161
169
|
$(SET_LIBL)
|
|
162
170
|
system "crtdspf file($(LIBRARY)/$(basename $(@F))) srcfile($(LIBRARY)/qddssrc) enhdsp(*yes)"
|
|
@@ -232,7 +240,8 @@ endef
|
|
|
232
240
|
######
|
|
233
241
|
.PHONY: platform-clean
|
|
234
242
|
platform-clean:
|
|
235
|
-
@
|
|
243
|
+
@rm -rf tmp/rpg-pp-*
|
|
244
|
+
if [ -n "$(TARGETS)" ] && [ -d $(LIBRARY_PATH) ]; then
|
|
236
245
|
for pass in 1 2; do
|
|
237
246
|
for target in $(TARGETS); do
|
|
238
247
|
if [ "$${target%.file}" != "$$target" ]; then
|
package/dist/makefiles/unix.mk
CHANGED
|
@@ -110,9 +110,14 @@ endef
|
|
|
110
110
|
#
|
|
111
111
|
# Build command runs with current directory set to the remote temp directory.
|
|
112
112
|
######
|
|
113
|
-
|
|
113
|
+
######
|
|
114
|
+
# $(1) = source root directory to tar from (use '.' for current directory)
|
|
115
|
+
# $(2) = space-separated list of files (relative to source root)
|
|
116
|
+
# $(3) = build command to execute
|
|
117
|
+
######
|
|
118
|
+
define REMOTE_BUILD_FROM
|
|
114
119
|
TAR_FILE=tmp/codermake_$$(uuidgen).tar
|
|
115
|
-
tar -cf "$$TAR_FILE" $(
|
|
120
|
+
tar -C "$(1)" -cf "$$TAR_FILE" $(2)
|
|
116
121
|
REMOTE_DIR=/tmp/codermake_$$(uuidgen)
|
|
117
122
|
$(SSH) "$(QSHELL) -c 'mkdir $$REMOTE_DIR'"
|
|
118
123
|
EXIT_CODE=0
|
|
@@ -123,7 +128,7 @@ EXIT_CODE=0
|
|
|
123
128
|
tar -xf sources.tar
|
|
124
129
|
cd $$REMOTE_DIR
|
|
125
130
|
$(SET_LIBL)
|
|
126
|
-
$(
|
|
131
|
+
$(3)
|
|
127
132
|
EOF
|
|
128
133
|
) || EXIT_CODE=$$?
|
|
129
134
|
rm -f "$$TAR_FILE"
|
|
@@ -133,6 +138,15 @@ if [ $$EXIT_CODE -ne 0 ]; then
|
|
|
133
138
|
fi
|
|
134
139
|
endef
|
|
135
140
|
|
|
141
|
+
######
|
|
142
|
+
# Original REMOTE_BUILD is now a convenience wrapper (source root = '.')
|
|
143
|
+
# $(1) = space-separated list of local files to upload
|
|
144
|
+
# $(2) = build command to execute
|
|
145
|
+
######
|
|
146
|
+
define REMOTE_BUILD
|
|
147
|
+
$(call REMOTE_BUILD_FROM,.,$(1),$(2))
|
|
148
|
+
endef
|
|
149
|
+
|
|
136
150
|
######
|
|
137
151
|
# Prerun actions.
|
|
138
152
|
######
|
|
@@ -158,28 +172,36 @@ build/$(LIBRARY).lib:
|
|
|
158
172
|
# Build RPGLE program (bound)
|
|
159
173
|
define BUILD_RPGLE_PGM
|
|
160
174
|
$(call SETUP_LOG,$(notdir $@))
|
|
161
|
-
$(call
|
|
175
|
+
$(call RPG_PREPROCESS_SOURCES,$(filter-out build/%,$^))
|
|
176
|
+
$(call REMOTE_BUILD_FROM,$$RPG_SRC_ROOT,$(filter-out build/%,$^),system "crtbndrpg pgm($(LIBRARY)/$(basename $(@F))) srcstmf('$<') incdir('.') tgtccsid(*job) output(*print) dbgview(*all)")
|
|
177
|
+
$(call RPG_CLEANUP_SOURCES)
|
|
162
178
|
touch '$@'
|
|
163
179
|
endef
|
|
164
180
|
|
|
165
181
|
# Build SQL RPGLE program
|
|
166
182
|
define BUILD_SQLRPGLE_PGM
|
|
167
183
|
$(call SETUP_LOG,$(notdir $@))
|
|
168
|
-
$(call
|
|
184
|
+
$(call RPG_PREPROCESS_SOURCES,$(filter-out build/%,$^))
|
|
185
|
+
$(call REMOTE_BUILD_FROM,$$RPG_SRC_ROOT,$(filter-out build/%,$^),system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*pgm) srcstmf('$<') cvtccsid(*job) output(*print) rpgppopt(*lvl1) compileopt('incdir(''.'') tgtccsid(*job) output(*print)') dbgview(*source)")
|
|
186
|
+
$(call RPG_CLEANUP_SOURCES)
|
|
169
187
|
touch '$@'
|
|
170
188
|
endef
|
|
171
189
|
|
|
172
190
|
# Build RPGLE module
|
|
173
191
|
define BUILD_RPGLE_MODULE
|
|
174
192
|
$(call SETUP_LOG,$(notdir $@))
|
|
175
|
-
$(call
|
|
193
|
+
$(call RPG_PREPROCESS_SOURCES,$(filter-out build/%,$^))
|
|
194
|
+
$(call REMOTE_BUILD_FROM,$$RPG_SRC_ROOT,$(filter-out build/%,$^),system "crtrpgmod module($(LIBRARY)/$(basename $(@F))) srcstmf('$<') incdir('.') tgtccsid(*job) output(*print) dbgview(*all)")
|
|
195
|
+
$(call RPG_CLEANUP_SOURCES)
|
|
176
196
|
touch '$@'
|
|
177
197
|
endef
|
|
178
198
|
|
|
179
199
|
# Build SQL RPGLE module
|
|
180
200
|
define BUILD_SQLRPGLE_MODULE
|
|
181
201
|
$(call SETUP_LOG,$(notdir $@))
|
|
182
|
-
$(call
|
|
202
|
+
$(call RPG_PREPROCESS_SOURCES,$(filter-out build/%,$^))
|
|
203
|
+
$(call REMOTE_BUILD_FROM,$$RPG_SRC_ROOT,$(filter-out build/%,$^),system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*module) srcstmf('$<') cvtccsid(*job) output(*print) rpgppopt(*lvl1) compileopt('incdir(''.'') tgtccsid(*job) output(*print)') dbgview(*source)")
|
|
204
|
+
$(call RPG_CLEANUP_SOURCES)
|
|
183
205
|
touch '$@'
|
|
184
206
|
endef
|
|
185
207
|
|
|
@@ -239,7 +261,7 @@ endef
|
|
|
239
261
|
# Build display file from RDF (Rich Display File) JSON
|
|
240
262
|
define BUILD_RDF_TO_FILE
|
|
241
263
|
$(call SETUP_LOG,$(notdir $@))
|
|
242
|
-
|
|
264
|
+
'$(CODERMAKE_NODE)' '$(CODERMAKE_PACKAGE_DIR)/bin/rdf-to-dds.js' '$<' 'tmp/$(basename $(@F)).dspf'
|
|
243
265
|
$(call CREATE_SOURCE_MEMBER,tmp/$(basename $(@F)).dspf,qddssrc)
|
|
244
266
|
$(SSH) $(QSHELL) <<'EOF'
|
|
245
267
|
$(SET_LIBL)
|
|
@@ -335,6 +357,7 @@ platform-clean:
|
|
|
335
357
|
@rm -rf build/*
|
|
336
358
|
rm -rf tmp/logs
|
|
337
359
|
rm -rf tmp/codermake_*.tar
|
|
360
|
+
rm -rf tmp/rpg-pp-*
|
|
338
361
|
@CLEAN_TARGETS="$(notdir $(TARGETS))"
|
|
339
362
|
if [ -n "$$CLEAN_TARGETS" ]; then
|
|
340
363
|
$(SSH) $(QSHELL) <<EOF
|