"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "fslint/supprt/fslver" between
fslint-2.44.tar.gz and fslint-2.46.tar.gz

About: fslint is a toolkit to find and clean various forms of lint on a filesystem (for e.g. duplicate files).

fslver  (fslint-2.44):fslver  (fslint-2.46)
skipping to change at line 12 skipping to change at line 12
set -e set -e
# Store \n in a variable for use in scripts # Store \n in a variable for use in scripts
LF=' LF='
' '
# Quote a parameter for safe interpretation by shell # Quote a parameter for safe interpretation by shell
shell_quote() { shell_quote() {
# bash has printf %q for this # bash has printf %q for this
printf '"' printf '"'
echo -n "$*" | sed 's/\([`"$\]\)/\\\1/g' echo -n "$*" | sed 's/\([`"$\]\)/\\\1/g;'"s/'/'\\\\''/g"
printf '"' printf '"'
} }
# The following is essentially to speedup sort & grep # The following is essentially to speedup sort & grep
# (which redhat really crippled speedwise around redhat 8/9 for UTF8 locales). # (which redhat really crippled speedwise around redhat 8/9 for UTF8 locales).
# Note since glibc 2.3.3 this causes (error) messages from # Note since glibc 2.3.3 this causes (error) messages from
# subordinate tools to not use the charset in LC_MESSAGES. # subordinate tools to not use the charset in LC_MESSAGES.
# (see `info libc "Charset conversion in gettext"`). # (see `info libc "Charset conversion in gettext"`).
export LC_CTYPE=C #uncomment for speed (noting the caveats above) export LC_CTYPE=C #uncomment for speed (noting the caveats above)
export LC_COLLATE=C #for even more speed export LC_COLLATE=C #for even more speed
# I noticed Fedora 7 was much slower than FC4 for grep. # I noticed Fedora 7 was much slower than FC4 for grep.
# The following change restores the faster operation. # The following change restores the faster operation.
# Also DFA seems more correct wrt multibyte input? # Also DFA seems more correct wrt multibyte input?
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=121313 # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=121313
export GREP_USE_DFA=1 export GREP_USE_DFA=1
Version() { Version() {
echo "FSlint 2.44" && exit echo "FSlint 2.46" && exit
} }
check_uniq() { check_uniq() {
#This uniq feature is very new (9/9/02) so check explicitly #This uniq feature is very new (9/9/02) so check explicitly
echo | uniq --all-repeated=prepend > /dev/null 2>&1 || \ echo | uniq --all-repeated=prepend > /dev/null 2>&1 || \
{ echo "Error: uniq must have --all-repeated=prepend option. \ { echo "Error: uniq must have --all-repeated=prepend option. \
Get the latest version from GNU coreutils or textutils-2.0.21" >&2; exit 1; } Get the latest version from GNU coreutils or textutils-2.0.21" >&2; exit 1; }
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS