• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

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

The MinGW.org Installation Manager Tool


Commit MetaInfo

修訂8a3d6f40926d3039d1ae7a0ca86b98b46e5e28ef (tree)
時間2013-08-25 00:02:09
作者Keith Marshall <keithmarshall@user...>
CommiterKeith Marshall

Log Message

Reassign default URL for download of setup tool components.

Change Summary

差異

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
1+2013-08-24 Keith Marshall <keithmarshall@users.sourceforge.net>
2+
3+ Reassign default URL for download of setup tool components.
4+
5+ * aclocal.m4 (PACKAGE_DIST_DOMAIN, PACKAGE_DIST_DIR): New precious
6+ variables; declare them as such, and assign default values by using...
7+ (MINGW_AC_PACKAGE_DIST_URL): ...this new macro; implement it.
8+
9+ * configure.ac (MINGW_AC_PACKAGE_DIST_URL): Use it.
10+ * Makefile.in (TAG_SCRIPT): Capture assigned URL; substitute it...
11+ (PACKAGE_DIST_URL): ...for this replacement text marker...
12+ * src/setup.rc (ID_DOWNLOAD_HOST_URI): ...here.
13+
114 2013-08-21 Keith Marshall <keithmarshall@users.sourceforge.net>
215
316 Simplify guimain.exe duplicate instance prevention.
--- a/Makefile.in
+++ b/Makefile.in
@@ -134,6 +134,7 @@ TAG_SCRIPT = tag=$(BUILD_TAG); \
134134 -e "s!%PACKAGE_VERINFO_PRODUCT_VERSION%!`$(PACKAGE_VERINFO_SCRIPT)`!g" \
135135 -e "s!%PACKAGE_BASE_DISTNAME%!$(PACKAGE_DISTNAME)$$tag-%s.$(TAREXT)!g" \
136136 -e "s!%PACKAGE_DATA_DISTNAME%!$(SETUP_DISTNAME)$$tag-%s.$(TAREXT)!g" \
137+ -e "s!%PACKAGE_DIST_URL%!@PACKAGE_DIST_DOMAIN@/@PACKAGE_DIST_DIR@!g" \
137138 -e "s!%COPYRIGHT_HOLDER%!@COPYRIGHT_HOLDER@!g" \
138139 -e "s!%YEARS_OF_ISSUE%!@YEARS_OF_ISSUE@!g"
139140
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -3,7 +3,7 @@
33 # $Id$
44 #
55 # Written by Keith Marshall <keithmarshall@users.sourceforge.net>
6-# Copyright (C) 2009, 2010, MinGW Project
6+# Copyright (C) 2009, 2010, 2013, MinGW.org Project
77 #
88 #
99 # Configuration script for mingw-get
@@ -25,6 +25,20 @@
2525 m4_include([build-aux/m4/missing.m4])
2626 m4_include([build-aux/m4/makeopts.m4])
2727
28+# MINGW_AC_PACKAGE_DIST_URL( DOMAIN, PATH )
29+# -----------------------------------------
30+# Provides a mechanism for specifying the internet DOMAIN, and the
31+# directory PATH relative to that DOMAIN, whence project packages are
32+# to be offered for download. Precious variables PACKAGE_DIST_DOMAIN
33+# and PACKAGE_DIST_DIR are assigned the default values as specified
34+# for DOMAIN and PATH respectively; AC_SUBST is called for each.
35+#
36+AC_DEFUN([MINGW_AC_PACKAGE_DIST_URL],
37+[: ${PACKAGE_DIST_DOMAIN="$1"} ${PACKAGE_DIST_DIR="$2"}dnl
38+ AC_ARG_VAR([PACKAGE_DIST_DOMAIN],[Package download domain url [$1]])dnl
39+ AC_ARG_VAR([PACKAGE_DIST_DIR],[Package download host directory [$2]])dnl
40+])# MINGW_AC_PACKAGE_DIST_URL
41+
2842 # MINGW_AC_OUTPUT
2943 # ---------------
3044 # A wrapper for AC_OUTPUT itself, to ensure that missing prerequisite
--- a/configure.ac
+++ b/configure.ac
@@ -28,6 +28,13 @@
2828 AC_SUBST([COPYRIGHT_HOLDER],["MinGW.org Project"])
2929 AC_SUBST([YEARS_OF_ISSUE],["2009-2013"])
3030
31+# Specify the default internet domain and relative directory path,
32+# whence packages are to be offered for download; user may remap these
33+# at configure time, by specifying alternatives for either, or both of
34+# the precious variables, PACKAGE_DIST_DOMAIN and PACKAGE_DIST_DIR.
35+#
36+ MINGW_AC_PACKAGE_DIST_URL([http://prdownloads.sourceforge.net],[mingw])
37+
3138 # Identify the formal release classes for each of the CLI and the GUI
3239 # application sub-packages; these may be overriden at configure time,
3340 # by specifying a common SNAPSHOT_CLASS definition, (e.g. by running
--- a/src/setup.rc
+++ b/src/setup.rc
@@ -93,7 +93,7 @@ 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 "http://prdownloads.sourceforge.net/keithmarshall.u/%F?download"
96+ ID_DOWNLOAD_HOST_URI "%PACKAGE_DIST_URL%/%F?download"
9797 ID_PACKAGE_BASE_DISTNAME "%PACKAGE_BASE_DISTNAME%"
9898 ID_PACKAGE_DATA_DISTNAME "%PACKAGE_DATA_DISTNAME%"
9999 ID_FONT_PREF "Verdana"