File: 0001-Adapt-crudini-help-script.patch

package info (click to toggle)
crudini 0.9.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 284 kB
  • sloc: python: 938; sh: 586; makefile: 16
file content (40 lines) | stat: -rw-r--r-- 1,127 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From: =?utf-8?b?SsOpcsO0bWUgQ2hhcmFvdWk=?= <jerome@riseup.net>
Date: Sun, 12 Feb 2023 16:13:27 -0500
Subject: Adapt crudini-help script

Forwarded: not-needed
---
 crudini-help | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/crudini-help b/crudini-help
index 57c3fb1..e5d8d51 100755
--- a/crudini-help
+++ b/crudini-help
@@ -5,14 +5,14 @@
 if [ "$1" = '--help' ]; then
   {
   printf '%s' 'crudini - '
-  ./crudini.py --help | sed 's/crudini\.py/crudini/g;'
+  python3 crudini.py --help | sed 's/crudini\.py/crudini/g;'
   echo
   cat EXAMPLES
   }
 elif [ "$1" = '--markdown' ]; then
   {
   printf '%s' '# crudini - '
-  ./crudini.py --help | sed 's/crudini\.py/crudini/g;'
+  python3 crudini.py --help | sed 's/crudini\.py/crudini/g;'
   echo
   cat EXAMPLES
   } |
@@ -21,8 +21,7 @@ elif [ "$1" = '--markdown' ]; then
   sed 's/^ *or: *//' | # Delete help2man synopsis formatting
   sed '0,/```/{/```/d;}' # Delete first ```
   echo '```'  # Add terminating ```
-  cat INSTALL # Already marked up
 elif [ "$1" = '--version' ]; then
-  ./crudini.py --version
+  python3 crudini.py --version
 fi