• R/O
  • HTTP
  • SSH
  • HTTPS

mingw-get: Commit

The MinGW.OSDN Installation Manager Tool


Commit MetaInfo

Revisão670f37a385b2dfb5745c92d452a21da1b6a96a71 (tree)
Hora2020-06-13 06:15:08
AutorKeith Marshall <keith@user...>
CommiterKeith Marshall

Mensagem de Log

Use XML templates to adapt to download host changes.

Mudança Sumário

Diff

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,23 @@
1+2020-06-12 Keith Marshall <keith@users.osdn.me>
2+
3+ Use XML templates to adapt to download host changes.
4+
5+ * configure.ac (MINGW_PACKAGE_DIST_URL): Update to OSDN host URL.
6+
7+ * xml/profile.xml: Rename it as...
8+ * xml/profile.xml.in: ...this; replace hard-coded repository URL...
9+ (%PACKAGE_LIST_URL%/%F.xml.lzma): ...this template.
10+
11+ * xml/setup.xml: Likewise, rename it as...
12+ * xml/setup.xml.in: ...this, with corresponding URL update.
13+
14+ * Makefile.in (install-profile): Modify procedure, using...
15+ (%.xml: %.xml.in): ...this new pattern rule, to generate installed XML
16+ files, from source templates.
17+
18+ * src/setup.rc (STRINGTABLE) <ID_DOWNLOAD_HOST_URI>: Remove trailing
19+ "?download" qualifier.
20+
121 2020-06-11 Keith Marshall <keith@users.osdn.me>
222
323 Discontinue formal use of the build-aux submodule.
--- a/Makefile.in
+++ b/Makefile.in
@@ -357,9 +357,12 @@ install: installdirs install-profile
357357 $(INSTALL_DATA) $$image ${libexecdir}/${PACKAGE_TARNAME}; \
358358 done
359359
360-install-profile:
361- $(INSTALL_DATA) ${srcdir}/xml/profile.xml \
362- ${PACKAGE_CONFIG_DIR}/defaults.xml
360+vpath %.xml.in ${srcdir}/xml
361+install-profile: install-%: %.xml
362+ $(INSTALL_DATA) $*.xml ${PACKAGE_CONFIG_DIR}/defaults.xml
363+
364+%.xml: %.xml.in
365+ $(TAG_SCRIPT) $< > $@
363366
364367 install-strip: install
365368 for image in $(BIN_PROGRAMS); do \
--- a/configure.ac
+++ b/configure.ac
@@ -33,7 +33,7 @@
3333 # at configure time, by specifying alternatives for either, or both of
3434 # the precious variables, PACKAGE_DIST_DOMAIN and PACKAGE_DIST_DIR.
3535 #
36- MINGW_AC_PACKAGE_DIST_URL([http://prdownloads.sourceforge.net],[mingw])
36+ MINGW_AC_PACKAGE_DIST_URL([https://osdn.net],[dl/mingw])
3737
3838 # Identify the formal release classes for each of the CLI and the GUI
3939 # application sub-packages; these may be overriden at configure time,
--- a/src/setup.rc
+++ b/src/setup.rc
@@ -3,8 +3,8 @@
33 *
44 * $Id$
55 *
6- * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
7- * Copyright (C) 2013, MinGW.org Project
6+ * Written by Keith Marshall <keith@users.osdn.me>
7+ * Copyright (C) 2013, 2017, 2020, MinGW.org Project
88 *
99 *
1010 * Resource definitions for the mingw-get-setup.exe implementation.
@@ -93,9 +93,9 @@ STRINGTABLE DISCARDABLE
9393 ID_MAIN_WINDOW_CLASS "mingw-get"
9494 ID_MAIN_WINDOW_CAPTION "MinGW Installation Manager"
9595 ID_MAIN_DIALOGUE_CAPTION VERINFO_FILE_DESCRIPTION
96- ID_DOWNLOAD_HOST_URI "%PACKAGE_DIST_URL%/%F?download"
9796 ID_PACKAGE_BASE_DISTNAME "%PACKAGE_BASE_DISTNAME%"
9897 ID_PACKAGE_DATA_DISTNAME "%PACKAGE_DATA_DISTNAME%"
98+ ID_DOWNLOAD_HOST_URI "%PACKAGE_DIST_URL%/%F"
9999 ID_FONT_PREF "Verdana"
100100 END
101101
--- a/xml/profile.xml
+++ b/xml/profile.xml.in
@@ -3,8 +3,8 @@
33 <!--
44 $Id$
55
6- Written by Keith Marshall <keithmarshall@users.sourceforge.net>
7- Copyright (C) 2009, 2010, 2012, 2013, MinGW.org Project
6+ Written by Keith Marshall <keith@users.osdn.me>
7+ Copyright (C) 2009-2013, 2017, 2020, MinGW.org Project
88
99
1010 Master configuration profile for mingw-get.
@@ -70,7 +70,7 @@
7070 <option name="start-menu" />
7171 </preferences>
7272
73- <repository uri="http://prdownloads.sourceforge.net/mingw/%F.xml.lzma?download">
73+ <repository uri="%PACKAGE_DIST_URL%/%F.xml.lzma">
7474 <!--
7575 The "repository" specification identifies the URI where package
7676 list catalogues may be downloaded; each catalogue download URI is
--- a/xml/setup.xml
+++ b/xml/setup.xml.in
@@ -3,8 +3,8 @@
33 <!--
44 $Id$
55
6- Written by Keith Marshall <keithmarshall@users.sourceforge.net>
7- Copyright (C) 2013, MinGW.org Project
6+ Written by Keith Marshall <keith@users.osdn.me>
7+ Copyright (C) 2013, 2017, 2020, MinGW.org Project
88
99
1010 Initial configuration profile for mingw-get-setup.
@@ -24,7 +24,7 @@
2424 arising from the use of this software.
2525 -->
2626
27- <repository uri="http://prdownloads.sourceforge.net/mingw/%F.xml.lzma?download">
27+ <repository uri="%PACKAGE_DIST_URL%/%F.xml.lzma">
2828 <!--
2929 The "repository" specification identifies the URI whence package
3030 list catalogues may be downloaded; each catalogue download URI is
Show on old repository browser