aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xupdate.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/update.sh b/update.sh
index f7c38c9..9c49ad5 100755
--- a/update.sh
+++ b/update.sh
@@ -44,7 +44,16 @@ libtls_version=$major:$minor:0
44echo "libtls version $libtls_version" 44echo "libtls version $libtls_version"
45echo $libtls_version > tls/VERSION 45echo $libtls_version > tls/VERSION
46 46
47do_mv() {
48 if ! cmp -s "$1" "$2"
49 then
50 mv "$1" "$2"
51 else
52 rm -f "$1"
53 fi
54}
47CP='cp -p' 55CP='cp -p'
56MV='do_mv'
48 57
49$CP $libssl_src/src/LICENSE COPYING 58$CP $libssl_src/src/LICENSE COPYING
50 59
@@ -68,8 +77,8 @@ $CP $libcrypto_src/crypto/arc4random_*.h crypto/compat
68 perl objects.pl objects.txt obj_mac.num obj_mac.h; 77 perl objects.pl objects.txt obj_mac.num obj_mac.h;
69 perl obj_dat.pl obj_mac.h obj_dat.h ) 78 perl obj_dat.pl obj_mac.h obj_dat.h )
70mkdir -p include/openssl crypto/objects 79mkdir -p include/openssl crypto/objects
71mv $libssl_src/src/crypto/objects/obj_mac.h ./include/openssl/obj_mac.h 80$MV $libssl_src/src/crypto/objects/obj_mac.h ./include/openssl/obj_mac.h
72mv $libssl_src/src/crypto/objects/obj_dat.h ./crypto/objects/obj_dat.h 81$MV $libssl_src/src/crypto/objects/obj_dat.h ./crypto/objects/obj_dat.h
73 82
74copy_hdrs() { 83copy_hdrs() {
75 for file in $2; do 84 for file in $2; do