Skip to content

Commit e92794b

Browse files
authored
spk.mk: Allow generating publish-<arch>-<version>.log files (SynoCommunity#5681)
1 parent 2028621 commit e92794b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mk/spksrc.spk.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ endif
431431

432432
### Clean rules
433433
clean:
434-
rm -fr work work-* build-*.log
434+
rm -fr work work-* build-*.log publish-*.log
435435

436436
spkclean:
437437
rm -fr work-*/.copy_done \
@@ -622,7 +622,7 @@ ifneq ($(strip $(REQUIRE_KERNEL_MODULE)),)
622622
else
623623
# handle and allow parallel build for: arch-<arch> | make arch-<arch>-X.Y
624624
@$(MSG) BUILDING and PUBLISHING package for arch $*
625-
@MAKEFLAGS= $(PSTAT_TIME) GCC_DEBUG_INFO="$(GCC_DEBUG_INFO)" $(MAKE) ARCH=$(basename $(subst -,.,$(basename $(subst .,,$*)))) TCVERSION=$(if $(findstring $*,$(basename $(subst -,.,$(basename $(subst .,,$*))))),$(DEFAULT_TC),$(notdir $(subst -,/,$*))) publish 2>&1 | tee --append build-$*.log ; \
625+
@MAKEFLAGS= $(PSTAT_TIME) GCC_DEBUG_INFO="$(GCC_DEBUG_INFO)" $(MAKE) ARCH=$(basename $(subst -,.,$(basename $(subst .,,$*)))) TCVERSION=$(if $(findstring $*,$(basename $(subst -,.,$(basename $(subst .,,$*))))),$(DEFAULT_TC),$(notdir $(subst -,/,$*))) publish 2>&1 | tee --append build-$*.log >(grep -e '^http' -e '^{"package":' -e '^{"message":' >> publish-$*.log) ; \
626626
[ $${PIPESTATUS[0]} -eq 0 ] || false
627627
endif
628628

0 commit comments

Comments
 (0)