add help opt cmdline
Signed-off-by: Lv Genggeng <lvgenggeng@uniontech.com>
This commit is contained in:
parent
099ff388bc
commit
8041797958
13
add-help-opt.patch
Normal file
13
add-help-opt.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/src/time.c b/src/time.c
|
||||||
|
index 7e07995..231e8cb 100644
|
||||||
|
--- a/src/time.c
|
||||||
|
+++ b/src/time.c
|
||||||
|
@@ -657,7 +657,7 @@ getargs (argc, argv)
|
||||||
|
if (format)
|
||||||
|
output_format = format;
|
||||||
|
|
||||||
|
- while ((optc = getopt_long (argc, argv, "+af:o:pqvV", longopts, (int *) 0))
|
||||||
|
+ while ((optc = getopt_long (argc, argv, "+af:ho:pqvV", longopts, (int *) 0))
|
||||||
|
!= EOF)
|
||||||
|
{
|
||||||
|
switch (optc)
|
||||||
@ -1,10 +1,11 @@
|
|||||||
Name: time
|
Name: time
|
||||||
Version: 1.9
|
Version: 1.9
|
||||||
Release: 7
|
Release: 8
|
||||||
Summary: Monitoring the system resources used by running program
|
Summary: Monitoring the system resources used by running program
|
||||||
License: GPLv3+ and GFDL
|
License: GPLv3+ and GFDL
|
||||||
URL: http://www.gnu.org/software/%{name}/
|
URL: http://www.gnu.org/software/%{name}/
|
||||||
Source0: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
|
Source0: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
|
||||||
|
Patch0: add-help-opt.patch
|
||||||
|
|
||||||
BuildRequires: autoconf automake bash coreutils gcc make texinfo sed
|
BuildRequires: autoconf automake bash coreutils gcc make texinfo sed
|
||||||
|
|
||||||
@ -39,6 +40,12 @@ make check %{?_smp_mflags}
|
|||||||
%{_infodir}/time.info*
|
%{_infodir}/time.info*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 22 2022 Lv Genggeng <lvgenggeng@uniontech.com> - 1.9-8
|
||||||
|
- Type: enhancement
|
||||||
|
- ID: NA
|
||||||
|
- SUG: NA
|
||||||
|
- DESC: add help opt in cmdline
|
||||||
|
|
||||||
* Wed Jan 8 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.9-7
|
* Wed Jan 8 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.9-7
|
||||||
- Type: enhancement
|
- Type: enhancement
|
||||||
- ID: NA
|
- ID: NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user