Browse Source

* changed lib/sde-package/patch-cksum.sh to use cksum.sh instead of it's

own functionality to calculate file checksums - close #261


git-svn-id: svn://svn.opensde.net/opensde/opensde/trunk@20154 10447126-35f2-4685-b0cf-6dd780d3921f
misl/sde-wrapper
Alejandro Mery 18 years ago
parent
commit
7018bf9a1b
1 changed files with 4 additions and 10 deletions
  1. +4
    -10
      lib/sde-package/patch-cksum.sh

+ 4
- 10
lib/sde-package/patch-cksum.sh

@ -3,7 +3,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: lib/sde-package/patch-cksum.sh
# Copyright (C) 2006 The OpenSDE Project
# Copyright (C) 2006 - 2007 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf
#
@ -76,13 +76,9 @@ cksum_file() {
continue
fi
if [[ "$bzfile" = *.bz2 ]] || [[ "$bzfile" = *.tbz2 ]] ; then
echo -n "$bzfile (bzip2): " >&2
newcksum="`bunzip2 < $bzfile | cksum | cut -f1 -d' '`"
else
echo -n "$gzfile (raw): " >&2
newcksum="`cksum $gzfile | cut -f1 -d' '`"
fi
echo -n "$bzfile: " >&2
newcksum=$( sh lib/sde-download/cksum.sh "$bzfile" | cut -d' ' -f2 )
echo $newcksum >&2
if [ "$cksum" != 0 -a "$cksum" != "$newcksum" ]; then
@ -96,8 +92,6 @@ cksum_file() {
rm -f /tmp/$$
}
echo "Creating cksum.patch ..." >&2
for f in $files; do
cksum_file $f
done

Loading…
Cancel
Save