@@ -61,6 +61,7 @@ MAIN_SRC_FILES ?= $(addsuffix .pnml,$(BASE_FILENAME))
61
61
# Add any additional, not usual files here, too, including
62
62
# their relative path to the root of the repository
63
63
BUNDLE_FILES ?= $(GRF_FILES ) $(DOC_FILES )
64
+ BANANAS_INI ?= bananas.ini
64
65
65
66
# Replacement strings in the source and in the documentation
66
67
# You may only change the values, not add new definitions
@@ -84,7 +85,7 @@ all: $(GRF_FILES) $(GENERATE_DOC) bundle_tar
84
85
85
86
# general definitions (no rules!)
86
87
-include Makefile.dist
87
- .PHONY : all clean distclean doc bundle bundle_bsrc bundle_bzip bundle_gsrc bundle_src bundle_tar bundle_xsrc bundle_xz bundle_zip bundle_zsrc check
88
+ .PHONY : all clean distclean doc bananas bundle bundle_bsrc bundle_bzip bundle_gsrc bundle_src bundle_tar bundle_xsrc bundle_xz bundle_zip bundle_zsrc check
88
89
89
90
# We want to disable the default rules. It's not c/c++ anyway
90
91
.SUFFIXES :
@@ -123,6 +124,8 @@ HG ?= hg
123
124
124
125
PYTHON ?= python
125
126
127
+ MUSA ?= musa.py
128
+
126
129
UNIX2DOS ?= unix2dos
127
130
UNIX2DOS_FLAGS ?= $(shell [ -n $(UNIX2DOS ) ] && $(UNIX2DOS ) -q --version 2>/dev/null && echo "-q" || echo "")
128
131
@@ -426,6 +429,11 @@ bundle_xz: $(DIR_NAME).tar.xz
426
429
$(_E ) " [BUNDLE XZ] $@ "
427
430
$(_V ) $(XZ ) $(XZ_FLAGS ) $^
428
431
432
+ bananas : $(DIR_NAME )
433
+ $(_E ) " [BaNaNaS]"
434
+ $(_V ) sed ' s/^version *=.*/version = $(FILE_VERSION_STRING)/' $(BANANAS_INI ) > $(DIR_NAME ) .bananas.ini
435
+ $(_V ) $(MUSA ) -r -x license.txt -c $(DIR_NAME ) .bananas.ini $(DIR_NAME )
436
+
429
437
clean ::
430
438
$(_E ) " [CLEAN BUNDLE]"
431
439
$(_V ) -rm -rf $(DIR_NAME )
@@ -591,7 +599,6 @@ endif
591
599
$(_E) " Reset the repository to prestine state and delete files which can be generated"
592
600
$(_E)
593
601
$(_E) "Bundles for distribution:"
594
- $(_E) "bundle: Build the distribution bundle in $(DIR_NAME)"
595
602
$(_E) "bundle_tar: Build the distritubion bundle as tar archive ($(DIR_NAME).tar)"
596
603
$(_E) "bundle_zip: Build the distritubion bundle and compress with zip ($(DIR_NAME).tar.zip)"
597
604
$(_E) "bundle_xz: Build the distritubion bundle and compress with xz ($(DIR_NAME).tar.xz)"
@@ -603,6 +610,9 @@ endif
603
610
$(_E) "bundle_xsrc: Build the source bundle as tar archive compressed with xz"
604
611
$(_E) "bundle_zsrc: Build the source bundle as tar archive compressed with zip"
605
612
$(_E)
613
+ $(_E) "Release:"
614
+ $(_E) "bananas: Upload bundle to BaNaNaS
615
+ $(_E)
606
616
$(_E) "Valid command line variables are:"
607
617
$(_E) "Helper programmes:"
608
618
$(_E) "MAKE MAKE_FLAGS. defaults: $(MAKE) $(MAKE_FLAGS)"
0 commit comments