• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

XML catalogue of packages which are available for installation, using the mingw-get installer.


Commit MetaInfo

Revisionb26313044524bbb8cf12b10493a26abf950fbc23 (tree)
Time2013-08-28 05:24:03
AuthorKeith Marshall <keithmarshall@user...>
CommiterKeith Marshall

Log Message

Add support for automated catalogue publication.

Change Summary

Incremental Difference

--- a/ChangeLog
+++ b/ChangeLog
@@ -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+
119 2013-08-26 Keith Marshall <keithmarshall@users.sourceforge.net>
220
321 Correct a catalogue publication anomaly.
--- a/Makefile.comm.in
+++ b/Makefile.comm.in
@@ -141,9 +141,11 @@ unpublished:
141141
142142 # Package lists are dynamically updated, to record the latest issues of each
143143 # 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.
145147 #
146-update-references issue.sed: FORCE
148+published update-references issue.sed: FORCE
147149 cd ${top_builddir}; $(MAKE) $@
148150
149151 # Requests to update references will be redirected back to each sub-directory
--- a/Makefile.in
+++ b/Makefile.in
@@ -90,6 +90,42 @@ update-references: FORCE
9090 #
9191 update-local-references: @mingw_ac_subdirs@
9292
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+
93129 # The following goals may be specified, when building as a sub-project
94130 # of mingw-get-setup; pass each request to all designated subdirectories,
95131 # in each of which it will become a no-op.
--- a/configure.ac
+++ b/configure.ac
@@ -22,7 +22,12 @@
2222 # MinGW Project, accept liability for any damages, however caused,
2323 # arising from the use of this software.
2424 #
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]])
2631
2732 # Check for required tools.
2833 #