Skip to content

Commit

Permalink
3.1 (20221011)
Browse files Browse the repository at this point in the history
  • Loading branch information
raforg committed Oct 11, 2022
1 parent 3806567 commit d532163
Show file tree
Hide file tree
Showing 57 changed files with 296 additions and 218 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
3.1 (20221011)

- Add built-in symbols for Linux ext2-style file attributes: attr proj gen
- Add real /etc/rawhide.conf.d/attributes (for Linux with libe2p installed)
- Add reference file fields: attr proj gen attribute project generation
- Add -L %e %J %I conversions (Linux ext2-style file attributes project generation)
- Add to -L %j (JSON) output, Linux ext2-style file attributes project generation
- Add replacing "/".i "/".re "/".rei with implicit "/".ipath "/".repath "/".reipath
- Add identifying pattern modifiers by unique prefixes (e.g., "/".p for "/".path)
- Add "make default" target (extracted from make dist, to undo ./configure)
- Fix -l column width buglet when user/group names contain multi-byte characters
- Fix max path length buglet when crossing filesystem boundaries during traversal
- Allow multiple -f options (but not multiple -f- because stdin can't be read twice)
- Allow -f option argument to be a directory or to have a corresponding .d directory
- Cache test-related getenv values that were being checked many times in normal use
- Add a few more tests to maximize coverage within reason (97.04% on my Debian dev VM)
- Add explicit PCRE2 JIT compilation (not noticeably faster - maybe default behaviour)

3.0 (20220330)

- Update (after 32 years!) to compile and work again (ISO/IEC C, POSIX)
Expand Down
4 changes: 3 additions & 1 deletion COPYING
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ COPYING
rawhide - find files using pretty C expressions
https://raf.org/rawhide
https://github.com/raforg/rawhide
https://codeberg.org/raforg/rawhide

Copyright (C) 1990 Ken Stauffer, 2022 raf <raf@raf.org>

Expand Down Expand Up @@ -51,6 +52,7 @@ All rights reserved.

URL: https://raf.org/rawhide
GIT: https://github.com/raforg/rawhide
Date: 20220330
GIT: https://codeberg.org/raforg/rawhide
Date: 20221011
Authors: 1990 Ken Stauffer, 2022 raf <raf@raf.org>

7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# rawhide - find files using pretty C expressions
# https://raf.org/rawhide
# https://github.com/raforg/rawhide
# https://codeberg.org/raforg/rawhide
#
# Copyright (C) 1990 Ken Stauffer, 2022 raf <raf@raf.org>
#
Expand All @@ -17,7 +18,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <https://www.gnu.org/licenses/>.
#
# 20220330 raf <raf@raf.org>
# 20221011 raf <raf@raf.org>

DESTDIR =
#PREFIX = /usr
Expand All @@ -42,8 +43,8 @@ FMT_MANDIR = $(MAN_INSDIR)/man$(FMT_MANSECT)
MAN_GZIP = 0

RAWHIDE_NAME = rawhide
RAWHIDE_VERSION = 3.0
RAWHIDE_DATE = 20220330
RAWHIDE_VERSION = 3.1
RAWHIDE_DATE = 20221011
RAWHIDE_PROG_NAME = rh
RAWHIDE_ID = $(RAWHIDE_NAME)-$(RAWHIDE_VERSION)
RAWHIDE_DIST = $(RAWHIDE_ID).tar.gz
Expand Down
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ a high-level interface to the built-in symbols mentioned above, and makes

usage: rh [options] [path...]
options:
-h --help - Show this message, then exit
-h --help - Show this help message, then exit
-V --version - Show the version message, then exit
-N - Don't read system-wide config (/etc/rawhide.conf)
-n - Don't read user-specific config (~/.rhrc)
Expand All @@ -80,7 +80,7 @@ a high-level interface to the built-in symbols mentioned above, and makes
-D - Depth-first searching (contents before directory)
-1 - Single filesystem (don't cross filesystem boundaries)
-y - Follow symlinks on the cmdline and in reference files
-Y - Follow symlinks while searching as well
-Y - Follow symlinks encountered while searching as well

alternative action options:
-x 'cmd %s' - Execute a shell command for each match (racy)
Expand Down Expand Up @@ -450,8 +450,8 @@ Find files on *Solaris* with setuid executable extended attributes (silly):

*Rawhide*'s source distribution can be downloaded from these locations:

- <https://raf.org/rawhide/download/rawhide-3.0.tar.gz>
- <https://github.com/raforg/rawhide/releases/download/v3.0/rawhide-3.0.tar.gz>
- <https://raf.org/rawhide/download/rawhide-3.1.tar.gz> (or [archive.org](https://web.archive.org/web/20220000000000*/https://raf.org/rawhide/download/rawhide-3.1.tar.gz))
- <https://github.com/raforg/rawhide/releases/download/v3.1/rawhide-3.1.tar.gz>

This is free software released under the terms of the GNU General Public
Licence version 3 or later (*GPLv3+*).
Expand All @@ -460,8 +460,8 @@ Licence version 3 or later (*GPLv3+*).

To install *rawhide*:

tar xzf rawhide-3.0.tar.gz
cd rawhide-3.0
tar xzf rawhide-3.1.tar.gz
cd rawhide-3.1
./configure
make
make test # optional (lots of output, or set quiet=1)
Expand Down Expand Up @@ -501,8 +501,9 @@ with a *C* compiler and *make*. It has been thoroughly tested on

The *configure* script only knows about these systems as far as installation
locations are concerned, and whether or not manual entries should be
gzipped. For other systems, you can accept the defaults, or adjust the
*configure* script or the *Makefile* for your needs.
gzipped. For other systems, you can accept the defaults, or override them
with the *configure* script's options, or manually adjust the *Makefile* to
suit your needs.

The (non-*POSIX*) *major()* and *minor()* macros are expected to be in
`<sys/types.h>`, `<sys/sysmacros.h>`, or `<sys/mkdev.h>`. If they are
Expand Down Expand Up @@ -530,6 +531,7 @@ character encodings are not supported.

URL: https://raf.org/rawhide
GIT: https://github.com/raforg/rawhide
Date: 20220330
GIT: https://codeberg.org/raforg/rawhide
Date: 20221011
Authors: 1990 Ken Stauffer, 2022 raf <raf@raf.org>

5 changes: 3 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# rawhide - find files using pretty C expressions
# https://raf.org/rawhide
# https://github.com/raforg/rawhide
# https://codeberg.org/raforg/rawhide
#
# Copyright (C) 1990 Ken Stauffer, 2022 raf <raf@raf.org>
#
Expand All @@ -19,7 +20,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <https://www.gnu.org/licenses/>.
#
# 20220330 raf <raf@raf.org>
# 20221011 raf <raf@raf.org>

# Show the usage messge for --help

Expand All @@ -29,7 +30,7 @@ do
--help|-h)
echo "$0 [options]"
echo "options:"
echo " --help, -h - Print this message then exit"
echo " --help, -h - Output this help message, then exit"
echo " --verbose, -v - Show resulting config diffs (Note: no option bundling)"
echo " --test, -n - Don't modify anything (Note: no option bundling)"
echo " --destdir=/path - Override DESTDIR in Makefile for building packages"
Expand Down
3 changes: 2 additions & 1 deletion gcov_summary
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use strict;
# rawhide - find files using pretty C expressions
# https://raf.org/rawhide
# https://github.com/raforg/rawhide
# https://codeberg.org/raforg/rawhide
#
# Copyright (C) 1990 Ken Stauffer, 2022 raf <raf@raf.org>
#
Expand All @@ -21,7 +22,7 @@ use strict;
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <https://www.gnu.org/licenses/>.
#
# 20220330 raf <raf@raf.org>
# 20221011 raf <raf@raf.org>

# gcov_summary - Summarise the contents of *.c.gcov (first run gcov *.c)

Expand Down
3 changes: 2 additions & 1 deletion md2html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# rawhide - find files using pretty C expressions
# https://raf.org/rawhide
# https://github.com/raforg/rawhide
# https://codeberg.org/raforg/rawhide
#
# Copyright (C) 1990 Ken Stauffer, 2022 raf <raf@raf.org>
#
Expand All @@ -19,7 +20,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <https://www.gnu.org/licenses/>.
#
# 20220330 raf <raf@raf.org>
# 20221011 raf <raf@raf.org>

# md2html - Convert a markdown file into a complete HTML document file

Expand Down
7 changes: 4 additions & 3 deletions rawhide.conf.5.pod
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# rawhide - find files using pretty C expressions
# https://raf.org/rawhide
# https://github.com/raforg/rawhide
# https://codeberg.org/raforg/rawhide
#
# Copyright (C) 1990 Ken Stauffer, 2022 raf <raf@raf.org>
#
Expand All @@ -17,7 +18,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <https://www.gnu.org/licenses/>.
#
# 20220330 raf <raf@raf.org>
# 20221011 raf <raf@raf.org>

=head1 NAME

Expand Down Expand Up @@ -2496,9 +2497,9 @@ I<chattr(1)>, I<lsattr(1)>, I<jq(1)>, I<The C programming language>.

=head1 AUTHORS

19900218 Ken Stauffer (University of Calgary)
1990 Ken Stauffer (University of Calgary)

20220330 raf <raf@raf.org>
2022 raf <raf@raf.org>

=cut

13 changes: 7 additions & 6 deletions rh.1.pod
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# rawhide - find files using pretty C expressions
# https://raf.org/rawhide
# https://github.com/raforg/rawhide
# https://codeberg.org/raforg/rawhide
#
# Copyright (C) 1990 Ken Stauffer, 2022 raf <raf@raf.org>
#
Expand All @@ -17,7 +18,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <https://www.gnu.org/licenses/>.
#
# 20220330 raf <raf@raf.org>
# 20221011 raf <raf@raf.org>

=head1 NAME

Expand All @@ -27,7 +28,7 @@ I<rh> - (I<rawhide>) find files using pretty I<C> expressions

usage: rh [options] [path...]
options:
-h --help - Show this message, then exit
-h --help - Show this help message, then exit
-V --version - Show the version message, then exit
-N - Don't read system-wide config (/etc/rawhide.conf)
-n - Don't read user-specific config (~/.rhrc)
Expand All @@ -41,7 +42,7 @@ I<rh> - (I<rawhide>) find files using pretty I<C> expressions
-D - Depth-first searching (contents before directory)
-1 - Single filesystem (don't cross filesystem boundaries)
-y - Follow symlinks on the cmdline and in reference files
-Y - Follow symlinks while searching as well
-Y - Follow symlinks encountered while searching as well

alternative action options:
-x 'cmd %s' - Execute a shell command for each match (racy)
Expand Down Expand Up @@ -1517,7 +1518,7 @@ by a file test expression, which is optionally terminated by a semicolon
There are built-in symbols that represent the inode metadata (i.e.,
I<stat(2)> structure fields) of candidate files (e.g., C<mode>, C<uid>,
C<size>, C<mtime>, ...), I<Linux> I<ext2>-style file attributes (i.e.,
I<attr>, I<proj>, I<gen>), other useful file information (e.g., C<nouser>,
C<attr>, C<proj>, C<gen>), other useful file information (e.g., C<nouser>,
C<nogroup>, C<readable>, C<writable>, ...), control flow (i.e., C<prune>,
C<trim>, C<exit>), useful values and constants (e.g., C<now>, C<today>,
C<minute>, C<hour>, C<day>, ...), and more constants from I<C>'s
Expand Down Expand Up @@ -2538,9 +2539,9 @@ I<chattr(1)>, I<lsattr(1)>, I<The C programming language>.

=head1 AUTHORS

19900218 Ken Stauffer (University of Calgary)
1990 Ken Stauffer (University of Calgary)

20220330 raf <raf@raf.org>
2022 raf <raf@raf.org>

=cut

Loading

0 comments on commit d532163

Please sign in to comment.