• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

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

The MinGW.org Installation Manager Tool


コミットメタ情報

リビジョン3d84744cfac535aa1fb817faaecdf4da53452c69 (tree)
日時2013-06-15 06:08:52
作者Keith Marshall <keithmarshall@user...>
コミッターKeith Marshall

ログメッセージ

Collect distributable package files in user specified directory.

変更サマリ

差分

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
11 2013-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
22
3+ Collect distributable package files in user specified directory.
4+
5+ * Makefile.in (distdir): New macro; define default as abs_builddir.
6+ (srcdist, bindist, licdist): Use it; direct generated tarballs to it.
7+ (%.txt.dist): New pattern rule; define, and use it to make a copy...
8+ (readme.txt): ...of this, in distdir, when processing...
9+ (dist): ...this build objective.
10+
11+2013-06-14 Keith Marshall <keithmarshall@users.sourceforge.net>
12+
313 Handle Microsoft's 32-bit vs. 64-bit time_t ambiguity.
414
515 * src/apihook.c: New file; it provides...
--- a/Makefile.in
+++ b/Makefile.in
@@ -361,7 +361,17 @@ PACKAGE_DISTVERSION = `echo $(PACKAGE_VERSION)-$(PACKAGE_SUBSYSTEM) | sed \
361361 -e 's,-$(PACKAGE_SUBSYSTEM),$(SNAPSHOT)&,'`
362362 PACKAGE_DISTNAME = $(PACKAGE_TARNAME)-$(PACKAGE_DISTVERSION)
363363
364-dist: srcdist bindist readme.txt
364+dist: srcdist bindist readme.txt.dist
365+
366+# Specify where distributable files should be collected; by default,
367+# we will simply use the current build directory.
368+#
369+distdir = @abs_builddir@
370+
371+# "Install" distributable text files into the distribution directory.
372+#
373+%.txt.dist: %.txt
374+ cmp -s $< ${distdir}/$(<F) 2>/dev/null || $(INSTALL_DATA) $< ${distdir}
365375
366376 # Specify default compression command, and associated file name extension,
367377 # for creation and identification of packaged tar archives.
@@ -379,32 +389,34 @@ GCMTAG = `>> $(BLDTAG); cat $(BLDTAG) | sed 's,.,-$(GUI_RELEASE_CLASS)-&,'`
379389
380390 bindist: all licdist
381391 rm -rf staged
392+ $(mkinstalldirs) ${distdir}
382393 $(MAKE) --no-print-directory prefix=`pwd`/staged install-strip
383394 cd staged; tar chf - bin/pkginfo$(EXEEXT) | $(TARZIP) -c > \
384- ../pkginfo-$(PACKAGE_DISTVERSION)$(SCMTAG)-bin.$(TAREXT)
395+ ${distdir}/pkginfo-$(PACKAGE_DISTVERSION)$(SCMTAG)-bin.$(TAREXT)
385396 rm staged/bin/pkginfo$(EXEEXT)
386397 cd staged; tar chf - libexec/mingw-get/guimain$(EXEEXT) | \
387- $(TARZIP) -c > ../$(PACKAGE_DISTNAME)$(GCMTAG)-gui.$(TAREXT)
398+ $(TARZIP) -c > ${distdir}/$(PACKAGE_DISTNAME)$(GCMTAG)-gui.$(TAREXT)
388399 rm staged/libexec/mingw-get/guimain$(EXEEXT)
389400 cd staged; tar chf - * | $(TARZIP) -c > \
390- ../$(PACKAGE_DISTNAME)$(SCMTAG)-bin.$(TAREXT)
391- cd staged; zip -r ../$(PACKAGE_DISTNAME)$(SCMTAG)-bin.zip *
401+ ${distdir}/$(PACKAGE_DISTNAME)$(SCMTAG)-bin.$(TAREXT)
402+ cd staged; zip -r ${distdir}/$(PACKAGE_DISTNAME)$(SCMTAG)-bin.zip *
392403 rm -rf staged
393404
394405 licdist:
395406 rm -rf share
396- $(mkinstalldirs) ./share/doc/${PACKAGE_TARNAME}
407+ $(mkinstalldirs) ${distdir} ./share/doc/${PACKAGE_TARNAME}
397408 cd ./share/doc/${PACKAGE_TARNAME}; for file in $(LICENCE_FILES); \
398409 do test -f ${abs_top_srcdir}/$$file \
399410 && $(LN_S) ${abs_top_srcdir}/$$file . \
400411 || $(LN_S) ${CURDIR}/$$file .; \
401412 done
402413 tar chf - share | $(TARZIP) -c > \
403- $(PACKAGE_DISTNAME)$(SCMTAG)-lic.$(TAREXT)
414+ ${distdir}/$(PACKAGE_DISTNAME)$(SCMTAG)-lic.$(TAREXT)
404415 rm -rf share
405416
406417 srcdist: srcdist-doc pkginfo.c
407- rm -rf ${PACKAGE_DISTROOT} && mkdir ${PACKAGE_DISTROOT}
418+ rm -rf ${PACKAGE_DISTROOT}
419+ $(mkinstalldirs) ${distdir} ${PACKAGE_DISTROOT}
408420 cd ${PACKAGE_DISTROOT}; for file in $(SRCDIST_FILES); do \
409421 test -f ${abs_top_srcdir}/$$file \
410422 && $(LN_S) ${abs_top_srcdir}/$$file . \
@@ -430,7 +442,7 @@ srcdist: srcdist-doc pkginfo.c
430442 cd ${CURDIR}; done
431443 cd ${PACKAGE_DISTROOT}/src/pkginfo; $(LN_S) ${CURDIR}/pkginfo.c .
432444 tar chf - ${PACKAGE_DISTROOT} | $(TARZIP) -c > \
433- $(PACKAGE_DISTNAME)$(SCMTAG)-src.$(TAREXT)
445+ ${distdir}/$(PACKAGE_DISTNAME)$(SCMTAG)-src.$(TAREXT)
434446 rm -rf ${PACKAGE_DISTROOT}
435447
436448 # README, INSTALL and NEWS files to be included in the source distribution