blob: f12e230276f5afa43e9d1a1234ba9985615d4443 [file] [log] [blame]
Manuel Pégourié-Gonnard3385cf42015-04-02 17:59:30 +01001#!/bin/sh
2
3# test result with:
4# make all check
Manuel Pégourié-Gonnard3385cf42015-04-02 17:59:30 +01005
6set -eu
7
Manuel Pégourié-Gonnard88323c72015-04-03 14:38:02 +02008tmp/analyze-names.sh
9tmp/makelist.pl public-names extra-names > old2new
Manuel Pégourié-Gonnard3385cf42015-04-02 17:59:30 +010010
Manuel Pégourié-Gonnardb5904d22015-04-07 11:36:46 +020011tmp/rename.pl old2new library/*.c tests/suites/* \
Manuel Pégourié-Gonnardf7d945f2015-04-03 15:21:50 +020012 configs/* scripts/data_files/*.fmt
13tmp/rename.pl -s old2new library/error.c library/version_features.c \
14 library/memory_buffer_alloc.c include/mbedtls/*.h \
Manuel Pégourié-Gonnardb5904d22015-04-07 11:36:46 +020015 library/ecp.c library/ssl_???.c tests/ssl-opt.sh \
Manuel Pégourié-Gonnardf7d945f2015-04-03 15:21:50 +020016 programs/*.c programs/*/*.c scripts/* tests/scripts/*
17
18for i in scripts/generate_errors.pl scripts/memory.sh tests/compat.sh \
19 tests/suites/test_suite_version.data configs/README.txt
20do
21 sed -e 's/POLARSSL/MBEDTLS/g' -e 's/polarssl/mbedtls/g' < $i > $i.tmp
22 mv $i.tmp $i
23done
24chmod +x scripts/generate_errors.pl scripts/memory.sh tests/compat.sh
25
Manuel Pégourié-Gonnardb5904d22015-04-07 11:36:46 +020026sed -e 's/server5-mbedtls_sha1/server5-sha1/' -i.tmp tests/ssl-opt.sh
27rm -f tests/ssl-opt.sh.tmp
28
Manuel Pégourié-Gonnardf7d945f2015-04-03 15:21:50 +020029echo; echo 'Done. Remaining polarssl occurences:'
30rm -f enum-consts exported-symbols extra-names identifiers macros old2new \
31 prefix-enum-consts prefix-identifiers prefix-macros public-names \
32 tags cscope*
33grep -R --exclude-dir=.git --exclude-dir=mpg --exclude-dir=tmp \
34 --exclude=.travis.yml --exclude=ChangeLog \
35 -i polarssl . \
36 | egrep -v 'OU?=PolarSSL|"PolarSSL|polarssl\.example' || true