Manuel Pégourié-Gonnard | 3385cf4 | 2015-04-02 17:59:30 +0100 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # test result with: |
| 4 | # make all check |
Manuel Pégourié-Gonnard | 3385cf4 | 2015-04-02 17:59:30 +0100 | [diff] [blame] | 5 | |
| 6 | set -eu |
| 7 | |
Manuel Pégourié-Gonnard | 88323c7 | 2015-04-03 14:38:02 +0200 | [diff] [blame] | 8 | tmp/analyze-names.sh |
| 9 | tmp/makelist.pl public-names extra-names > old2new |
Manuel Pégourié-Gonnard | 3385cf4 | 2015-04-02 17:59:30 +0100 | [diff] [blame] | 10 | |
Manuel Pégourié-Gonnard | f7d945f | 2015-04-03 15:21:50 +0200 | [diff] [blame^] | 11 | tmp/rename.pl old2new library/*.c tests/suites/* tests/ssl-opt.sh \ |
| 12 | configs/* scripts/data_files/*.fmt |
| 13 | tmp/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 | |
| 18 | for i in scripts/generate_errors.pl scripts/memory.sh tests/compat.sh \ |
| 19 | tests/suites/test_suite_version.data configs/README.txt |
| 20 | do |
| 21 | sed -e 's/POLARSSL/MBEDTLS/g' -e 's/polarssl/mbedtls/g' < $i > $i.tmp |
| 22 | mv $i.tmp $i |
| 23 | done |
| 24 | chmod +x scripts/generate_errors.pl scripts/memory.sh tests/compat.sh |
| 25 | |
| 26 | echo; echo 'Done. Remaining polarssl occurences:' |
| 27 | rm -f enum-consts exported-symbols extra-names identifiers macros old2new \ |
| 28 | prefix-enum-consts prefix-identifiers prefix-macros public-names \ |
| 29 | tags cscope* |
| 30 | grep -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 |