• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

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

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

Experimental package creation tool for MinGW.org


コミットメタ情報

リビジョン4048d0425a74b318ebe2db421910cb4311d2a319 (tree)
日時2018-10-31 18:04:02
作者Keith Marshall <keith@user...>
コミッターKeith Marshall

ログメッセージ

Add a verbose mode progress reporting option.

* src/modules/options.sh (option_verbose): Define it; it sets...
(OPTION_VERBOSE): ...this shell variable with value of "true".
* src/modules/pkgspec.sh (COMPRESS_CMD) [OPTION_VERBOSE]: Use it.
* src/modules/help.sh (help_options): Document it.

変更サマリ

差分

--- a/src/modules/help.sh
+++ b/src/modules/help.sh
@@ -56,7 +56,7 @@
5656 --licence Display the $cmd licence, and exit.
5757 --license A synonym for "--licence".
5858
59- --version Display the $cmd version, and exit.
59+ -V, --version Display the $cmd version, and exit.
6060
6161 --srcdir=path Specify the relative path from the build directory
6262 to the package source tree; this becomes a "sticky"
@@ -81,6 +81,10 @@
8181 --pre-staged When creating a distributable package set, do not
8282 run an "install" step, to refresh the staged image.
8383
84+ -v, --verbose Make diagnostic output more verbose; currently,
85+ this only enables progress reporting, when creating
86+ distributable package sets in lzma or xz format.
87+
8488 -c, --stdout Direct output from the "mkspec" action to standard
8589 output, rather than creating or overwriting the
8690 default package specification file.
--- a/src/modules/options.sh
+++ b/src/modules/options.sh
@@ -36,13 +36,16 @@
3636 optdefine h help optional_argument
3737 opteval_help(){ require module help $optarg; }
3838
39- optdefine version
39+ optdefine V version
4040 opteval_version(){ require module licence short; }
4141
4242 optdefine licence
4343 optalias license=licence
4444 opteval_licence(){ require module licence full; }
4545
46+ optdefine v verbose
47+ opteval_verbose(){ OPTION_VERBOSE=true; }
48+
4649 optdefine c stdout
4750 opteval_stdout(){ OUTPUT_STREAMING_OPTION=stdout; }
4851
--- a/src/modules/pkgspec.sh
+++ b/src/modules/pkgspec.sh
@@ -99,11 +99,11 @@
9999 ARCHIVE_CMD="tar"
100100 case $1 in .*) PKGEXT="$1" ;; *) PKGEXT=".$1" ;; esac
101101 case $PKGEXT in
102- .tar ) COMPRESS_CMD="none" ;;
103- .tgz | .tar.gz ) COMPRESS_CMD="gzip" ;;
104- .tar.bz2 ) COMPRESS_CMD="bzip2" ;;
105- .tar.lzma ) COMPRESS_CMD="lzma" ;;
106- .tar.xz ) COMPRESS_CMD="xz" ;;
102+ .tar ) COMPRESS_CMD="none" ;;
103+ .tgz | .tar.gz ) COMPRESS_CMD="gzip" ;;
104+ .tar.bz2 ) COMPRESS_CMD="bzip2" ;;
105+ .tar.lzma ) COMPRESS_CMD="lzma ${OPTION_VERBOSE+-v}" ;;
106+ .tar.xz ) COMPRESS_CMD="xz ${OPTION_VERBOSE+-v}" ;;
107107
108108 *) warning "unknown package type '$1'; reverting to '.tar.gz'"
109109 COMPRESS_CMD="gzip" PKGEXT=".tar.gz"