OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 02-Jul-2004 15:24:02
Branch: HEAD Handle: -NONE-
Modified files:
openpkg-src/openpkg HISTORY shtool
Log:
upgrade to GNU shtool 2.0.0
Summary:
Revision Changes Path
1.195 +1 -0 openpkg-src/openpkg/HISTORY
1.24 +27 -10 openpkg-src/openpkg/shtool
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/openpkg/HISTORY
============================================================================
$ cvs diff -u -r1.194 -r1.195 HISTORY
--- openpkg-src/openpkg/HISTORY 2 Jul 2004 07:27:17 -0000 1.194
+++ openpkg-src/openpkg/HISTORY 2 Jul 2004 13:24:01 -0000 1.195
@@ -2,6 +2,7 @@
2004
====
+20040702 upgrade to GNU shtool 2.0.0
20040702 update platform prerequisite checks for OpenPKG 2.1 platform set
20040701 add support for openpkg-audit package
20040609 add support for recognizing package class in old 1.3 Distribution headers
during building
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/openpkg/shtool
============================================================================
$ cvs diff -u -r1.23 -r1.24 shtool
--- openpkg-src/openpkg/shtool 7 Jun 2004 15:17:17 -0000 1.23
+++ openpkg-src/openpkg/shtool 2 Jul 2004 13:24:01 -0000 1.24
@@ -6,7 +6,7 @@
## See http://www.gnu.org/software/shtool/ for more information.
## See ftp://ftp.gnu.org/gnu/shtool/ for latest version.
##
-## Version: 2.0b3 (08-May-2004)
+## Version: 2.0.0 (02-Jul-2004)
## Contents: all available modules
##
@@ -65,7 +65,7 @@
exit 1
fi
if [ ".$1" = ".-h" ] || [ ".$1" = ".--help" ]; then
- echo "This is GNU shtool, version 2.0b3 (08-May-2004)"
+ echo "This is GNU shtool, version 2.0.0 (02-Jul-2004)"
echo "Copyright (c) 1994-2004 Ralf S. Engelschall <[EMAIL PROTECTED]>"
echo "Report bugs to <[EMAIL PROTECTED]>"
echo ''
@@ -107,9 +107,10 @@
echo ' [-c|--compress <prog>] [-d|--directory <dir>] [-u|--user'
echo ' <user>] [-g|--group <group>] [-e|--exclude <pattern>]'
echo ' <path> [<path> ...]'
- echo ' subst [-v|--verbose] [-t|--trace] [-n|--nop] [-q|--quiet]'
- echo ' [-s|--stealth] [-i|--interactive] [-b|--backup <ext>]'
- echo ' [-e|--exec <cmd>] [-f|--file <cmd-file>] [<file>] [...]'
+ echo ' subst [-v|--verbose] [-t|--trace] [-n|--nop] [-w|--warning]'
+ echo ' [-q|--quiet] [-s|--stealth] [-i|--interactive] [-b|--backup'
+ echo ' <ext>] [-e|--exec <cmd>] [-f|--file <cmd-file>] [<file>]'
+ echo ' [...]'
echo ' platform [-F|--format <format>] [-S|--sep <string>] [-C|--conc'
echo ' <string>] [-L|--lower] [-U|--upper] [-v|--verbose]'
echo ' [-c|--concise] [-n|--no-newline] [-t|--type <type>]'
@@ -131,7 +132,7 @@
exit 0
fi
if [ ".$1" = ".-v" ] || [ ".$1" = ".--version" ]; then
- echo "GNU shtool 2.0b3 (08-May-2004)"
+ echo "GNU shtool 2.0.0 (02-Jul-2004)"
exit 0
fi
if [ ".$1" = ".-r" ] || [ ".$1" = ".--recreate" ]; then
@@ -317,14 +318,15 @@
;;
subst )
str_tool="subst"
- str_usage="[-v|--verbose] [-t|--trace] [-n|--nop] [-q|--quiet]
[-s|--stealth] [-i|--interactive] [-b|--backup <ext>] [-e|--exec <cmd>] [-f|--file
<cmd-file>] [<file>] [...]"
+ str_usage="[-v|--verbose] [-t|--trace] [-n|--nop] [-w|--warning]
[-q|--quiet] [-s|--stealth] [-i|--interactive] [-b|--backup <ext>] [-e|--exec <cmd>]
[-f|--file <cmd-file>] [<file>] [...]"
gen_tmpfile=yes
arg_spec="0+"
- opt_spec="v.t.n.q.s.i.b:e+f:"
-
opt_alias="v:verbose,t:trace,n:nop,q:quiet,s:stealth,i:interactive,b:backup,e:exec,f:file"
+ opt_spec="v.t.n.w.q.s.i.b:e+f:"
+
opt_alias="v:verbose,t:trace,n:nop,w:warning,q:quiet,s:stealth,i:interactive,b:backup,e:exec,f:file"
opt_v=no
opt_t=no
opt_n=no
+ opt_w=no
opt_q=no
opt_s=no
opt_i=no
@@ -2347,6 +2349,7 @@
# remember optional list of file(s)
files="$*"
+ files_num="$#"
# parameter consistency check
if [ $# -eq 0 ] && [ ".$opt_b" != . ]; then
@@ -2386,6 +2389,7 @@
# apply sed(1) operation(s)
if [ ".$files" != . ]; then
# apply operation(s) to files
+ substdone=no
for file in $files; do
test ".$file" = . && continue
if [ ! -f $file ]; then
@@ -2455,7 +2459,11 @@
# optionally check whether any content change actually occurred
if [ ".$opt_q" = .no ]; then
if cmp $file$orig $file >/dev/null 2>&1; then
- echo "$msgprefix:Warning: substitution operation results in no
content change" 1>&2
+ if [ ".$opt_w" = .yes ]; then
+ echo "$msgprefix:Warning: substitution resulted in no
content change on file \"$file\"" 1>&2
+ fi
+ else
+ substdone=yes
fi
fi
@@ -2469,6 +2477,15 @@
fi
fi
done
+ if [ ".$opt_q" = .no ] && [ ".$opt_w" = .no ]; then
+ if [ ".$substdone" = .no ]; then
+ if [ ".$files_num" = .1 ]; then
+ echo "$msgprefix:Warning: substitution resulted in no content
change on file \"$file\"" 1>&2
+ else
+ echo "$msgprefix:Warning: substitution resulted in no content
change on any file" 1>&2
+ fi
+ fi
+ fi
else
# apply operation(s) to stdin/stdout
if [ ".$opt_v" = .yes ]; then
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]