Hello community,

here is the log from the commit of package cv for openSUSE:Factory checked in 
at 2014-09-15 17:40:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cv (Old)
 and      /work/SRC/openSUSE:Factory/.cv.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cv"

Changes:
--------
--- /work/SRC/openSUSE:Factory/cv/cv.changes    2014-08-20 10:50:53.000000000 
+0200
+++ /work/SRC/openSUSE:Factory/.cv.new/cv.changes       2014-09-15 
18:24:28.000000000 +0200
@@ -1,0 +2,8 @@
+Fri Sep 12 11:58:31 UTC 2014 - [email protected]
+
+- Update to version 0.5.1
+  * cv is now less verbose
+- Remove seperate manpage, as it was accepted upstream and is now
+  distributet in the source archive.
+
+-------------------------------------------------------------------

Old:
----
  cv.1
  v0.4.1.tar.gz

New:
----
  v0.5.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cv.spec ++++++
--- /var/tmp/diff_new_pack.zASw55/_old  2014-09-15 18:24:29.000000000 +0200
+++ /var/tmp/diff_new_pack.zASw55/_new  2014-09-15 18:24:29.000000000 +0200
@@ -16,14 +16,13 @@
 #
 
 Name:           cv
-Version:        0.4.1
+Version:        0.5.1
 Release:        0
 Summary:        Coreutils Viewer
 License:        GPL-3.0+
 Group:          System/cmd
 Url:            https://github.com/Xfennec/cv
 Source0:        http://github.com/Xfennec/cv/archive/v%{version}.tar.gz
-Source1:        cv.1
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  ncurses-devel
 
@@ -42,8 +41,6 @@
 
 %install
 make %{?_smp_mflags} PREFIX=%{buildroot}%{_prefix} install
-mkdir -p %{buildroot}%{_mandir}/man1/
-install -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/
 
 %clean
 rm -rf %{buildroot}

++++++ v0.4.1.tar.gz -> v0.5.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cv-0.4.1/Makefile new/cv-0.5.1/Makefile
--- old/cv-0.4.1/Makefile       2014-07-21 18:00:01.000000000 +0200
+++ new/cv-0.5.1/Makefile       2014-09-02 11:46:54.000000000 +0200
@@ -1,17 +1,22 @@
-OBJ=cv
-CFLAGS=-g -Wall -D_FILE_OFFSET_BITS=64
-LFLAGS=-lncurses -lm
-PREFIX = $(DESTDIR)/usr/local
+OBJ = cv
+override CFLAGS += -g -Wall -D_FILE_OFFSET_BITS=64
+override LFLAGS += -lncurses -lm
+PREFIX ?= /usr/local
 BINDIR = $(PREFIX)/bin
+MANDIR = $(PREFIX)/share/man/man1
 
 $(OBJ) : cv.o sizes.o hlist.o
-       gcc -Wall $^ -o $@ $(LFLAGS)
+       $(CC) -Wall $^ -o $@ $(LFLAGS)
 %.o : %.c
-       gcc $(CFLAGS) -c $^
+       $(CC) $(CFLAGS) -c $^
 clean :
        rm -f *.o $(OBJ)
 install : $(OBJ)
-       @echo "Installing to $(BINDIR) ..."
-       @mkdir -p $(BINDIR)
-       @install -m 0755 $(OBJ) $(BINDIR)/$(TARGET) || \
+       @echo "Installing program to $(DESTDIR)$(BINDIR) ..."
+       @mkdir -p $(DESTDIR)$(BINDIR)
+       @install -pm0755 $(OBJ) $(DESTDIR)$(BINDIR)/$(TARGET) || \
+       echo "Failed. Try "make PREFIX=~ install" ?"
+       @echo "Installing manpage to $(DESTDIR)$(MANDIR) ..."
+       @mkdir -p $(DESTDIR)$(MANDIR)
+       @install -pm0644 cv.1 $(DESTDIR)$(MANDIR)/ || \
        echo "Failed. Try "make PREFIX=~ install" ?"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cv-0.4.1/README.md new/cv-0.5.1/README.md
--- old/cv-0.4.1/README.md      2014-07-21 18:00:01.000000000 +0200
+++ new/cv-0.5.1/README.md      2014-09-02 11:46:54.000000000 +0200
@@ -27,6 +27,7 @@
 make && make install
 ```
 
+It depends on ncurses library, you may have to install corresponding packages.
 
 How do you run it ?
 -------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cv-0.4.1/cv.1 new/cv-0.5.1/cv.1
--- old/cv-0.4.1/cv.1   1970-01-01 01:00:00.000000000 +0100
+++ new/cv-0.5.1/cv.1   2014-09-02 11:46:54.000000000 +0200
@@ -0,0 +1,56 @@
+.TH CV 1 "September 01, 2014" "cv"
+
+.SH NAME
+cv \- Coreutils Viewer
+.SH SYNOPSIS
+.B cv
+.I [-vqwmMh] [-W] [-c command]
+.br
+
+.SH DESCRIPTION
+This manual page briefly documents the \fBcv\fP command.
+.PP
+This tool can be described as a Tiny Dirty Linux Only* C command that looks 
for coreutils basic
+commands (cp, mv, dd, tar, gzip/gunzip, cat, ...) currently running on your 
system and displays
+the percentage of copied data.
+
+It can now also display an estimated throughput (using -w flag).
+
+.SH OPTIONS
+.TP
+.B \-v (\-\-version)
+show version
+.TP
+.B \-q (\-\-quiet)
+hides all messages
+.TP
+.B \-d (\-\-debug)
+shows all warning/error messages
+.TP
+.B \-w (\-\-wait)
+estimate I/O throughput and ETA (slower display)
+.TP
+.B \-W (\-\-wait\-delay secs)
+wait 'secs' seconds for I/O estimation (implies -w)
+.TP
+.B \-m (\-\-monitor)
+loop while monitored processes are still running
+.TP
+.B \-M (\-\-monitor\-continous)
+like monitor but never stop (similar to watch cv)
+.TP
+.B \-h (\-\-help)
+this message
+.TP
+.B \-c (\-\-command cmd)
+monitor only this command name (ex: firefox)
+
+.SH BUGS
+Please report bugs at: http://github.com/Xfennec/cv/issues
+
+.SH HOMEPAGE
+http://github.com/Xfennec/cv
+
+.SH AUTHOR
+This manual page was written by Thomas Zimmermann <[email protected]>,
+for the openSUSE project (and may be used by others).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cv-0.4.1/cv.c new/cv-0.5.1/cv.c
--- old/cv-0.4.1/cv.c   2014-07-21 18:00:01.000000000 +0200
+++ new/cv-0.5.1/cv.c   2014-09-02 11:46:54.000000000 +0200
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 2013 Xfennec, CQFD Corp.
+   Copyright (C) 2014 Xfennec, CQFD Corp.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -48,6 +48,7 @@
 char *proc_specifiq = NULL;
 WINDOW *mainwin;
 signed char flag_quiet = 0;
+signed char flag_debug = 0;
 signed char flag_throughput = 0;
 signed char flag_monitor = 0;
 signed char flag_monitor_continous = 0;
@@ -115,7 +116,7 @@
     snprintf(fullpath_dir, MAXPATHLEN, "%s/%s", PROC_PATH, direntp->d_name);
 
     if(stat(fullpath_dir, &stat_buf) == -1) {
-        if (!flag_quiet)
+        if (flag_debug)
             nperror("stat (find_pids_by_binary_name)");
         continue;
     }
@@ -168,7 +169,7 @@
 while((direntp = readdir(proc)) != NULL) {
     snprintf(fullpath, MAXPATHLEN, "%s/%s", path_dir, direntp->d_name);
     if(stat(fullpath, &stat_buf) == -1) {
-        if (!flag_quiet)
+        if (flag_debug)
             nperror("stat (find_fd_for_pid)");
         continue;
     }
@@ -224,7 +225,7 @@
 
 if(stat(fd_info->name, &stat_buf) == -1) {
     //~ printf("[debug] %i - %s\n",pid,fd_info->name);
-    if (!flag_quiet)
+    if (flag_debug)
         nperror("stat (get_fdinfo)");
     return 0;
 }
@@ -235,13 +236,13 @@
     fd = open(fd_info->name, O_RDONLY);
 
     if (fd < 0) {
-        if (!flag_quiet)
+        if (flag_debug)
             nperror("open (get_fdinfo)");
         return 0;
     }
 
     if (ioctl(fd, BLKGETSIZE64, &fd_info->size) < 0) {
-        if (!flag_quiet)
+        if (flag_debug)
             nperror("ioctl (get_fdinfo)");
         close(fd);
         return 0;
@@ -259,7 +260,7 @@
 gettimeofday(&fd_info->tv, &tz);
 
 if(!fp) {
-    if (!flag_quiet)
+    if (flag_debug)
         nperror("fopen (get_fdinfo)");
     return 0;
 }
@@ -300,6 +301,7 @@
 static struct option long_options[] = {
     {"version",           no_argument,       0, 'v'},
     {"quiet",             no_argument,       0, 'q'},
+    {"debug",             no_argument,       0, 'd'},
     {"wait",              no_argument,       0, 'w'},
     {"wait-delay",        required_argument, 0, 'W'},
     {"monitor",           no_argument,       0, 'm'},
@@ -309,7 +311,7 @@
     {0, 0, 0, 0}
 };
 
-static char *options_string = "vqwmMhc:W:";
+static char *options_string = "vqdwmMhc:W:";
 int c,i;
 int option_index = 0;
 
@@ -336,7 +338,8 @@
             printf("\n");
             printf("Usage: %s [-vqwmMh] [-W] [-c command]\n",argv[0]);
             printf("  -v --version            show version\n");
-            printf("  -q --quiet              hides some warning/error 
messages\n");
+            printf("  -q --quiet              hides all messages\n");
+            printf("  -d --debug              shows all warning/error 
messages\n");
             printf("  -w --wait               estimate I/O throughput and ETA 
(slower display)\n");
             printf("  -W --wait-delay secs    wait 'secs' seconds for I/O 
estimation (implies -w, default=%.1f)\n", throughput_wait_secs);
             printf("  -m --monitor            loop while monitored processes 
are still running\n");
@@ -351,6 +354,10 @@
             flag_quiet = 1;
             break;
 
+        case 'd':
+            flag_debug = 1;
+            break;
+
         case 'c':
             proc_specifiq = strdup(optarg);
             break;
@@ -582,7 +589,6 @@
   exit(0);
 }
 
-// TODO: deal with --help
 
 int main(int argc, char *argv[])
 {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cv-0.4.1/cv.h new/cv-0.5.1/cv.h
--- old/cv-0.4.1/cv.h   2014-07-21 18:00:01.000000000 +0200
+++ new/cv-0.5.1/cv.h   2014-09-02 11:46:54.000000000 +0200
@@ -8,7 +8,7 @@
 
 #include "hlist.h"
 
-#define CV_VERSION         "0.4"
+#define CV_VERSION         "0.5"
 
 #define PROC_PATH       "/proc"
 #define MAX_PIDS        32

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to