blob: f1ba618b6e942e3f5f1c1754a05e2f7303d6e6ed [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é-Gonnardf7d945f2015-04-03 15:21:50 +020011tmp/rename.pl old2new library/*.c tests/suites/* tests/ssl-opt.sh \
12 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 \
15 library/ecp.c \
16 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
26echo; echo 'Done. Remaining polarssl occurences:'
27rm -f enum-consts exported-symbols extra-names identifiers macros old2new \
28 prefix-enum-consts prefix-identifiers prefix-macros public-names \
29 tags cscope*
30grep -R --exclude-dir=.git --exclude-dir=mpg --exclude-dir=tmp \
31 --exclude=.travis.yml --exclude=ChangeLog \
32 -i polarssl . \
33 | egrep -v 'OU?=PolarSSL|"PolarSSL|polarssl\.example' || true