public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/gram_grep] f43: Use various long options
Date: Fri, 19 Jun 2026 12:42:42 GMT	[thread overview]
Message-ID: <178187296297.1.10862164508949763553.rpms-gram_grep-c1518a559de1@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/gram_grep
Branch : f43
Commit : c1518a559de1c54caf27a57b24127fe729183a07
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-06-19T13:41:54+01:00
Stats  : +9/-6 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/gram_grep/c/c1518a559de1c54caf27a57b24127fe729183a07?branch=f43

Log:
Use various long options

---
diff --git a/gram_grep.spec b/gram_grep.spec
index f5ce8a4..ff46653 100644
--- a/gram_grep.spec
+++ b/gram_grep.spec
@@ -35,12 +35,13 @@ greater refinement.
 
 # Fix line terminations (particularly for files that may be installed)
 find . -type f -exec file '{}' '+' |
-  grep -E '\bCRLF\b' |
-  cut -d ':' -f 1 |
-  xargs -r dos2unix --keepdate
+  grep --extended-regexp '\bCRLF\b' |
+  cut --delimiter=':' --fields1 |
+  xargs --no-run-if-empty dos2unix --keepdate
 
 # Remove include paths for unbundled header-only library dependencies
-sed -r -i 's@^([[:blank:]]*)(include_directories.*"\.\./)@\1# \2@' \
+sed --regexp-extended --in-place \
+    's@^([[:blank:]]*)(include_directories.*"\.\./)@\1# \2@' \
     CMakeLists.txt
 
 
@@ -55,8 +56,10 @@ sed -r -i 's@^([[:blank:]]*)(include_directories.*"\.\./)@\1# \2@' \
 %install
 # The CMake build system has no provision for installing the program, so
 # %%cmake_install would do nothing. We must install the executable manually.
-install -t '%{buildroot}%{_bindir}' -p -D %{_vpath_builddir}/gram_grep
-install -t '%{buildroot}%{_mandir}/man1' -p -D -m 0644 '%{SOURCE1}'
+install -D --preserve-timestamps \
+    --target='%{buildroot}%{_bindir}' '%{_vpath_builddir}/gram_grep'
+install -D --preserve-timestamps --mode=0644 \
+    --target='%{buildroot}%{_mandir}/man1' '%{SOURCE1}'
 
 
 %check

                 reply	other threads:[~2026-06-19 12:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178187296297.1.10862164508949763553.rpms-gram_grep-c1518a559de1@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox