The MinGW.org Installation Manager Tool
Révision | 8a3d6f40926d3039d1ae7a0ca86b98b46e5e28ef (tree) |
---|---|
l'heure | 2013-08-25 00:02:09 |
Auteur | Keith Marshall <keithmarshall@user...> |
Commiter | Keith Marshall |
Reassign default URL for download of setup tool components.
@@ -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 | + | |
1 | 14 | 2013-08-21 Keith Marshall <keithmarshall@users.sourceforge.net> |
2 | 15 | |
3 | 16 | Simplify guimain.exe duplicate instance prevention. |
@@ -134,6 +134,7 @@ TAG_SCRIPT = tag=$(BUILD_TAG); \ | ||
134 | 134 | -e "s!%PACKAGE_VERINFO_PRODUCT_VERSION%!`$(PACKAGE_VERINFO_SCRIPT)`!g" \ |
135 | 135 | -e "s!%PACKAGE_BASE_DISTNAME%!$(PACKAGE_DISTNAME)$$tag-%s.$(TAREXT)!g" \ |
136 | 136 | -e "s!%PACKAGE_DATA_DISTNAME%!$(SETUP_DISTNAME)$$tag-%s.$(TAREXT)!g" \ |
137 | + -e "s!%PACKAGE_DIST_URL%!@PACKAGE_DIST_DOMAIN@/@PACKAGE_DIST_DIR@!g" \ | |
137 | 138 | -e "s!%COPYRIGHT_HOLDER%!@COPYRIGHT_HOLDER@!g" \ |
138 | 139 | -e "s!%YEARS_OF_ISSUE%!@YEARS_OF_ISSUE@!g" |
139 | 140 |
@@ -3,7 +3,7 @@ | ||
3 | 3 | # $Id$ |
4 | 4 | # |
5 | 5 | # Written by Keith Marshall <keithmarshall@users.sourceforge.net> |
6 | -# Copyright (C) 2009, 2010, MinGW Project | |
6 | +# Copyright (C) 2009, 2010, 2013, MinGW.org Project | |
7 | 7 | # |
8 | 8 | # |
9 | 9 | # Configuration script for mingw-get |
@@ -25,6 +25,20 @@ | ||
25 | 25 | m4_include([build-aux/m4/missing.m4]) |
26 | 26 | m4_include([build-aux/m4/makeopts.m4]) |
27 | 27 | |
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 | + | |
28 | 42 | # MINGW_AC_OUTPUT |
29 | 43 | # --------------- |
30 | 44 | # A wrapper for AC_OUTPUT itself, to ensure that missing prerequisite |
@@ -28,6 +28,13 @@ | ||
28 | 28 | AC_SUBST([COPYRIGHT_HOLDER],["MinGW.org Project"]) |
29 | 29 | AC_SUBST([YEARS_OF_ISSUE],["2009-2013"]) |
30 | 30 | |
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 | + | |
31 | 38 | # Identify the formal release classes for each of the CLI and the GUI |
32 | 39 | # application sub-packages; these may be overriden at configure time, |
33 | 40 | # by specifying a common SNAPSHOT_CLASS definition, (e.g. by running |
@@ -93,7 +93,7 @@ STRINGTABLE DISCARDABLE | ||
93 | 93 | ID_MAIN_WINDOW_CLASS "mingw-get" |
94 | 94 | ID_MAIN_WINDOW_CAPTION "MinGW Installation Manager" |
95 | 95 | 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" | |
97 | 97 | ID_PACKAGE_BASE_DISTNAME "%PACKAGE_BASE_DISTNAME%" |
98 | 98 | ID_PACKAGE_DATA_DISTNAME "%PACKAGE_DATA_DISTNAME%" |
99 | 99 | ID_FONT_PREF "Verdana" |