XML catalogue of packages which are available for installation, using the mingw-get installer.
Revision | b26313044524bbb8cf12b10493a26abf950fbc23 (tree) |
---|---|
Time | 2013-08-28 05:24:03 |
Author | Keith Marshall <keithmarshall@user...> |
Commiter | Keith Marshall |
Add support for automated catalogue publication.
@@ -1,3 +1,21 @@ | ||
1 | +2013-08-27 Keith Marshall <keithmarshall@users.sourceforge.net> | |
2 | + | |
3 | + Add support for automated catalogue publication. | |
4 | + | |
5 | + * Makefile.comm.in (published): New build goal; it redirects to the | |
6 | + new primary goal implemented... | |
7 | + | |
8 | + * Makefile.in: ...here. | |
9 | + (published): New primary build goal; implement it, using... | |
10 | + (frs-username-check, frs-publish): ...these new internal build goals; | |
11 | + implement them; they should not normally be invoked directly. | |
12 | + (FRS_USERNAME, FRS_CATALOGUE): New macros; define them. | |
13 | + (FRS_CATALOGUE_HOST, FRS_CATALOGUE_ROOT, FRS_CATALOGUE_PATH): | |
14 | + (MAKE_RECURSIVE, PRIMARY_GOALS): Likewise. | |
15 | + | |
16 | + * configure.ac (AC_INIT): Bump version number to 2.2 | |
17 | + (FRS_USERNAME): Declare it as precious; assign "anonymous" as default. | |
18 | + | |
1 | 19 | 2013-08-26 Keith Marshall <keithmarshall@users.sourceforge.net> |
2 | 20 | |
3 | 21 | Correct a catalogue publication anomaly. |
@@ -141,9 +141,11 @@ unpublished: | ||
141 | 141 | |
142 | 142 | # Package lists are dynamically updated, to record the latest issues of each |
143 | 143 | # referenced package catalogue; the "sed" script used to accomplish this must |
144 | -# be generated, and driven from, within the top build directory. | |
144 | +# be generated, and driven from, within the top build directory. Similarly, | |
145 | +# the procedure for publishing updated catalogues to the file release system | |
146 | +# must be directed to the top build directory, to process the entire tree. | |
145 | 147 | # |
146 | -update-references issue.sed: FORCE | |
148 | +published update-references issue.sed: FORCE | |
147 | 149 | cd ${top_builddir}; $(MAKE) $@ |
148 | 150 | |
149 | 151 | # Requests to update references will be redirected back to each sub-directory |
@@ -90,6 +90,42 @@ update-references: FORCE | ||
90 | 90 | # |
91 | 91 | update-local-references: @mingw_ac_subdirs@ |
92 | 92 | |
93 | +# Approiately authenticated users may publish updated catalogues | |
94 | +# via the SourceForge file release system. | |
95 | +# | |
96 | +FRS_CATALOGUE_HOST = frs.sourceforge.net | |
97 | +FRS_CATALOGUE_ROOT = /home/frs/project/mingw | |
98 | +FRS_CATALOGUE_PATH = $(FRS_CATALOGUE_ROOT)/Installer/mingw-get/catalogue | |
99 | + | |
100 | +FRS_CATALOGUE = $(FRS_CATALOGUE_HOST):$(FRS_CATALOGUE_PATH) | |
101 | + | |
102 | +published: | |
103 | + rm -rf tmp; mkdir tmp | |
104 | + cd tmp; @LN_S@ ../*/unpublished/* . | |
105 | + @test "x`cd tmp; echo *`x" = 'x*x' \ | |
106 | + && echo "NOTE: there are no catalogue files awaiting publication" \ | |
107 | + || $(MAKE_RECURSIVE) frs-publish | |
108 | + rm -rf tmp | |
109 | + | |
110 | +# Publication of updated catalogues, to the file release system, | |
111 | +# requires an authorised SourceForge user name specification. | |
112 | +# | |
113 | +FRS_USERNAME = @FRS_USERNAME@ | |
114 | +MAKE_RECURSIVE = $(MAKE)@NO_PRINT_DIRECTORY@ PRIMARY_GOALS=$(MAKECMDGOALS) | |
115 | +frs-username-check: | |
116 | + @test "x$(FRS_USERNAME)" = "xanonymous" && \ | |
117 | + { echo 'ERROR: "$(FRS_USERNAME)" is not a valid FRS_USERNAME'; \ | |
118 | + echo 'please try "make FRS_USERNAME=username $(PRIMARY_GOALS)"'; \ | |
119 | + exit 1; \ | |
120 | + } || true | |
121 | + | |
122 | +# For potentially valid user names, publication entails an sftp | |
123 | +# upload of all staged catalogues, to the file release system. | |
124 | +# | |
125 | +frs-publish: frs-username-check | |
126 | + cd tmp; echo 'put *' | sftp $(FRS_USERNAME)@$(FRS_CATALOGUE) | |
127 | + rm -f */unpublished/* | |
128 | + | |
93 | 129 | # The following goals may be specified, when building as a sub-project |
94 | 130 | # of mingw-get-setup; pass each request to all designated subdirectories, |
95 | 131 | # in each of which it will become a no-op. |
@@ -22,7 +22,12 @@ | ||
22 | 22 | # MinGW Project, accept liability for any damages, however caused, |
23 | 23 | # arising from the use of this software. |
24 | 24 | # |
25 | - AC_INIT([mingw-dist],[2.1],[http://mingw.org/reporting_bugs]) | |
25 | + AC_INIT([mingw-dist],[2.2],[http://mingw.org/reporting_bugs]) | |
26 | + | |
27 | +# Specify a default (invalid) user name, for authentication to FRS. | |
28 | +# | |
29 | + : ${FRS_USERNAME="anonymous"} | |
30 | + AC_ARG_VAR([FRS_USERNAME],[user name for FRS authentication [anonymous]]) | |
26 | 31 | |
27 | 32 | # Check for required tools. |
28 | 33 | # |