Document --exclude-pattern in more places

* Sat Aug  7 2010 Miloslav Trmač <mitr@redhat.com> - 2.10-2
- Document --exclude-pattern in more places
  Related: #527425
This commit is contained in:
Miloslav Trmač 2010-08-07 06:01:23 +02:00
parent 9cff9fa8c7
commit c985d8b63e
2 changed files with 52 additions and 1 deletions

42
tmpwatch-2.10-X-doc.patch Normal file
View File

@ -0,0 +1,42 @@
2010-08-07 Miloslav Trmač <mitr@redhat.com>
* tmpwatch.c (usage): Add missing space.
* tmpwatch.8: Add -X to SYNOPSIS as well.
* tmpwatch.c (usage): Mention -X, --exclude-pattern.
* tmpwatch.8: Add --exclude-pattern to SYNOPSIS.
diff -r 7dca472557ba tmpwatch.8
--- a/tmpwatch.8 Fri Jul 23 18:27:36 2010 +0200
+++ b/tmpwatch.8 Sat Aug 07 05:55:07 2010 +0200
@@ -26,10 +26,11 @@
.SH NAME
tmpwatch \- removes files which haven't been accessed for a period of time
.SH SYNOPSIS
-\fBtmpwatch\fR [-u|-m|-c] [-MUadfqstvx] [--verbose] [--force] [--all]
+\fBtmpwatch\fR [-u|-m|-c] [-MUXadfqstvx] [--verbose] [--force] [--all]
[--nodirs] [--nosymlinks] [--test] [--fuser] [--quiet]
[--atime|--mtime|--ctime] [--dirmtime] [--exclude \fIpath\fR]
- [--exclude-user \fIuser\fR] \fItime\fR \fIdirs\fR
+ [--exclude-user \fIuser\fR] [--exclude-pattern \fIpattern\fR]
+ \fItime\fR \fIdirs\fR
.SH DESCRIPTION
\fBtmpwatch\fR recursively removes files which haven't been accessed
diff -r 7dca472557ba tmpwatch.c
--- a/tmpwatch.c Fri Jul 23 18:27:36 2010 +0200
+++ b/tmpwatch.c Sat Aug 07 05:55:07 2010 +0200
@@ -600,10 +600,10 @@
static void attribute__((noreturn))
usage(void)
{
- static const char msg[] = "tmpwatch [-u|-m|-c] [-MUadfqtvx] [--verbose] "
+ static const char msg[] = "tmpwatch [-u|-m|-c] [-MUXadfqtvx] [--verbose] "
"[--force] [--all] [--nodirs] [--nosymlinks] [--test] [--quiet] "
"[--atime|--mtime|--ctime] [--dirmtime] [--exclude <path>] "
- "[--exclude-user <user>] "
+ "[--exclude-user <user>] [--exclude-pattern <pattern>] "
#ifdef FUSER
"[--fuser] "
#endif

View File

@ -1,10 +1,14 @@
Summary: A utility for removing files based on when they were last accessed
Name: tmpwatch
Version: 2.10
Release: 1%{?dist}
Release: 2%{?dist}
URL: https://fedorahosted.org/tmpwatch/
Source0: https://fedorahosted.org/releases/t/m/tmpwatch/tmpwatch-%{version}.tar.bz2
Source1: tmpwatch.daily
# Upstream changesets 7c61ad804818abb8762ecd0ef0f9df7359118b11,
# e8c79b01994b5508256a033521acd10028a8afc8, and
# 55fd4480fa8b797794fee4987da3356875593d18
Patch0: tmpwatch-2.10-X-doc.patch
License: GPLv2
Group: System Environment/Base
Requires: psmisc
@ -21,6 +25,7 @@ removes empty directories and regular files.
%prep
%setup -q
%patch0 -p1 -b .X-doc
%build
%configure
@ -50,6 +55,10 @@ rm -rf %{buildroot}
%config(noreplace) /etc/cron.daily/tmpwatch
%changelog
* Sat Aug 7 2010 Miloslav Trmač <mitr@redhat.com> - 2.10-2
- Document --exclude-pattern in more places
Related: #527425
* Tue Mar 23 2010 Miloslav Trmač <mitr@redhat.com> - 2.10-1
- Update to tmpwatch-2.10.
- Drop no longer neceessary references to BuildRoot: