annotate Common/CryptoPPPackage.sh @ 207:ee2c53ebdf3e

todo
author Alain Mazy <am@orthanc.team>
date Wed, 26 Jun 2024 17:55:56 +0200
parents 9c0dfd10d5d0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38
9c0dfd10d5d0 statically link against libcrypto++
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 #!/bin/bash
9c0dfd10d5d0 statically link against libcrypto++
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2
9c0dfd10d5d0 statically link against libcrypto++
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 set -ex
9c0dfd10d5d0 statically link against libcrypto++
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4
9c0dfd10d5d0 statically link against libcrypto++
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5 VERSION=840
9c0dfd10d5d0 statically link against libcrypto++
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6
9c0dfd10d5d0 statically link against libcrypto++
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 TARGET=/tmp/cryptopp-${VERSION}
9c0dfd10d5d0 statically link against libcrypto++
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 rm -rf ${TARGET}
9c0dfd10d5d0 statically link against libcrypto++
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 mkdir -p ${TARGET}/cryptopp
9c0dfd10d5d0 statically link against libcrypto++
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 cd ${TARGET}/cryptopp
9c0dfd10d5d0 statically link against libcrypto++
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 wget https://www.cryptopp.com/cryptopp${VERSION}.zip
9c0dfd10d5d0 statically link against libcrypto++
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 unzip ./cryptopp${VERSION}.zip
9c0dfd10d5d0 statically link against libcrypto++
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 rm ./cryptopp${VERSION}.zip
9c0dfd10d5d0 statically link against libcrypto++
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 rm -rf ./TestData
9c0dfd10d5d0 statically link against libcrypto++
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 rm -rf ./TestPrograms
9c0dfd10d5d0 statically link against libcrypto++
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 rm -rf ./TestVectors
9c0dfd10d5d0 statically link against libcrypto++
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 cd /tmp
9c0dfd10d5d0 statically link against libcrypto++
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 tar cvfz cryptopp-${VERSION}.tar.gz cryptopp-${VERSION}
9c0dfd10d5d0 statically link against libcrypto++
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19
9c0dfd10d5d0 statically link against libcrypto++
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 md5sum /tmp/cryptopp-${VERSION}.tar.gz