blob: d71bd42410ca35c55afce4f29e7c7a77a494a496 [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é-Gonnardb20a70f2015-04-08 14:56:51 +020011scripts/rename.pl -f old2new \
12 library/*.c tests/suites/* configs/* scripts/data_files/*.fmt
13scripts/rename.pl -f old2new -s \
14 library/error.c library/version_features.c \
15 library/memory_buffer_alloc.c include/mbedtls/*.h \
16 library/ecp.c library/ssl_???.c tests/ssl-opt.sh \
17 programs/*.c programs/*/*.c scripts/* tests/scripts/*
Manuel Pégourié-Gonnardf7d945f2015-04-03 15:21:50 +020018
19for i in scripts/generate_errors.pl scripts/memory.sh tests/compat.sh \
20 tests/suites/test_suite_version.data configs/README.txt
21do
22 sed -e 's/POLARSSL/MBEDTLS/g' -e 's/polarssl/mbedtls/g' < $i > $i.tmp
23 mv $i.tmp $i
24done
25chmod +x scripts/generate_errors.pl scripts/memory.sh tests/compat.sh
26
Manuel Pégourié-Gonnardb5904d22015-04-07 11:36:46 +020027sed -e 's/server5-mbedtls_sha1/server5-sha1/' -i.tmp tests/ssl-opt.sh
28rm -f tests/ssl-opt.sh.tmp
29
Manuel Pégourié-Gonnardf7d945f2015-04-03 15:21:50 +020030echo; echo 'Done. Remaining polarssl occurences:'
31rm -f enum-consts exported-symbols extra-names identifiers macros old2new \
32 prefix-enum-consts prefix-identifiers prefix-macros public-names \
33 tags cscope*
34grep -R --exclude-dir=.git --exclude-dir=mpg --exclude-dir=tmp \
35 --exclude=.travis.yml --exclude=ChangeLog \
36 -i polarssl . \
37 | egrep -v 'OU?=PolarSSL|"PolarSSL|polarssl\.example' || true