@profoundlogic/codermake 2.0.4 → 2.0.6

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.
@@ -218,7 +218,7 @@ define BUILD_DSPF_TO_FILE
218
218
  $(call SETUP_LOG,$(notdir $@))
219
219
  $(call CREATE_SOURCE_MEMBER,$<,qddssrc)
220
220
  $(SET_LIBL)
221
- system "crtdspf file($(TARGET_LIB)/$(basename $(@F))) srcfile($(TARGET_LIB)/qddssrc)"
221
+ system "crtdspf file($(TARGET_LIB)/$(basename $(@F))) srcfile($(TARGET_LIB)/qddssrc) srcmbr($(basename $(notdir $<)))"
222
222
  endef
223
223
 
224
224
  # Build display file from RDF (Rich Display File) JSON
@@ -236,7 +236,7 @@ define BUILD_PF_TO_FILE
236
236
  $(call SETUP_LOG,$(notdir $@))
237
237
  $(call CREATE_SOURCE_MEMBER,$<,qddssrc)
238
238
  $(SET_LIBL)
239
- system "crtpf file($(TARGET_LIB)/$(basename $(@F))) srcfile($(TARGET_LIB)/qddssrc) aut(*change)"
239
+ system "crtpf file($(TARGET_LIB)/$(basename $(@F))) srcfile($(TARGET_LIB)/qddssrc) srcmbr($(basename $(notdir $<))) aut(*change)"
240
240
  endef
241
241
 
242
242
  # Build logical file
@@ -244,7 +244,7 @@ define BUILD_LF_TO_FILE
244
244
  $(call SETUP_LOG,$(notdir $@))
245
245
  $(call CREATE_SOURCE_MEMBER,$<,qddssrc)
246
246
  $(SET_LIBL)
247
- system "crtlf file($(TARGET_LIB)/$(basename $(@F))) srcfile($(TARGET_LIB)/qddssrc)"
247
+ system "crtlf file($(TARGET_LIB)/$(basename $(@F))) srcfile($(TARGET_LIB)/qddssrc) srcmbr($(basename $(notdir $<)))"
248
248
  endef
249
249
 
250
250
  # Build printer file
@@ -252,7 +252,7 @@ define BUILD_PRTF_TO_FILE
252
252
  $(call SETUP_LOG,$(notdir $@))
253
253
  $(call CREATE_SOURCE_MEMBER,$<,qddssrc)
254
254
  $(SET_LIBL)
255
- system "crtprtf file($(TARGET_LIB)/$(basename $(@F))) srcfile($(TARGET_LIB)/qddssrc)"
255
+ system "crtprtf file($(TARGET_LIB)/$(basename $(@F))) srcfile($(TARGET_LIB)/qddssrc) srcmbr($(basename $(notdir $<)))"
256
256
  endef
257
257
 
258
258
  # Build SQL table
@@ -110,6 +110,15 @@ endef
110
110
 
111
111
  ######
112
112
  # Reusable utility for remote builds via SSH.
113
+ #
114
+ # Source files are bundled into a tar locally, streamed over SSH, and extracted
115
+ # on the IBM i. Extraction uses PASE tar (/QOpenSys/usr/bin/tar) rather than
116
+ # QShell tar (/usr/bin/tar). QShell tar tags extracted stream files with the
117
+ # job CCSID (e.g. 37 EBCDIC) regardless of the file's actual byte content,
118
+ # which corrupts UTF-8 source containing extended characters (Ó, Í, Ú, Á, É,
119
+ # Ñ, ...): the bytes survive but the wrong CCSID tag causes the RPG compiler
120
+ # to read garbled source. PASE tar tags extracted files with CCSID 1208 (UTF-8),
121
+ # which matches what local editors produce.
113
122
  ######
114
123
  ######
115
124
  # $(1) = source root directory to tar from (use '.' for current directory)
@@ -126,7 +135,7 @@ EXIT_CODE=0
126
135
  cat "$$TAR_FILE" | $(SSH) "cat > '$$REMOTE_DIR/sources.tar'" && \
127
136
  $(SSH) "REMOTE_DIR=$$REMOTE_DIR $(QSHELL)" <<'EOF'
128
137
  cd $$REMOTE_DIR
129
- tar -xf sources.tar
138
+ /QOpenSys/usr/bin/tar -xf sources.tar
130
139
  cd $$REMOTE_DIR
131
140
  $(SET_LIBL)
132
141
  $(3)
@@ -307,7 +316,7 @@ $(call SETUP_LOG,$(notdir $@))
307
316
  $(call CREATE_SOURCE_MEMBER,$<,qddssrc)
308
317
  $(SSH) $(QSHELL) <<'EOF'
309
318
  $(SET_LIBL)
310
- system "crtdspf file($(TARGET_LIB)/$(basename $(@F))) srcfile($(TARGET_LIB)/qddssrc)"
319
+ system "crtdspf file($(TARGET_LIB)/$(basename $(@F))) srcfile($(TARGET_LIB)/qddssrc) srcmbr($(basename $(notdir $<)))"
311
320
  EOF
312
321
  touch '$@'
313
322
  endef
@@ -331,7 +340,7 @@ $(call SETUP_LOG,$(notdir $@))
331
340
  $(call CREATE_SOURCE_MEMBER,$<,qddssrc)
332
341
  $(SSH) $(QSHELL) <<'EOF'
333
342
  $(SET_LIBL)
334
- system "crtpf file($(TARGET_LIB)/$(basename $(@F))) srcfile($(TARGET_LIB)/qddssrc)"
343
+ system "crtpf file($(TARGET_LIB)/$(basename $(@F))) srcfile($(TARGET_LIB)/qddssrc) srcmbr($(basename $(notdir $<)))"
335
344
  EOF
336
345
  touch '$@'
337
346
  endef
@@ -342,7 +351,7 @@ $(call SETUP_LOG,$(notdir $@))
342
351
  $(call CREATE_SOURCE_MEMBER,$<,qddssrc)
343
352
  $(SSH) $(QSHELL) <<'EOF'
344
353
  $(SET_LIBL)
345
- system "crtlf file($(TARGET_LIB)/$(basename $(@F))) srcfile($(TARGET_LIB)/qddssrc)"
354
+ system "crtlf file($(TARGET_LIB)/$(basename $(@F))) srcfile($(TARGET_LIB)/qddssrc) srcmbr($(basename $(notdir $<)))"
346
355
  EOF
347
356
  touch '$@'
348
357
  endef
@@ -353,7 +362,7 @@ $(call SETUP_LOG,$(notdir $@))
353
362
  $(call CREATE_SOURCE_MEMBER,$<,qddssrc)
354
363
  $(SSH) $(QSHELL) <<'EOF'
355
364
  $(SET_LIBL)
356
- system "crtprtf file($(TARGET_LIB)/$(basename $(@F))) srcfile($(TARGET_LIB)/qddssrc)"
365
+ system "crtprtf file($(TARGET_LIB)/$(basename $(@F))) srcfile($(TARGET_LIB)/qddssrc) srcmbr($(basename $(notdir $<)))"
357
366
  EOF
358
367
  touch '$@'
359
368
  endef
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@profoundlogic/codermake",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "description": "Make wrapper framework for IBM i development that simplifies build rules",
5
5
  "main": "dist/bin/index.js",
6
6
  "type": "module",