On Saturday, November 10, 2018 at 7:57:24 AM UTC-5, Jeffrey Walton wrote: > > Hi Everyone, > > Filenames like pp-simd.h and ppc-simd.cpp cause some tools, like GDB, some > trouble. It breaks filename autocomplete and makes it more difficult to > perform symbol lookups. > > I'm getting ready to perform a massive rename by replacing dashes with > underscores. The rename will occur in two stages. First, the library will > have the rename applied. This includes the Makefiles and Visual Studio > projects. Second, the Autotools and CMake projects will have the rename > applied. > > After the rename you should probably delete build artifacts and then > rebuild the library. Windows users will probably find it easiest to close > VS, delete Win32/ x64/ and ipch/ folders; and delete *.sdf and *.suo files. > > I will also cite the commit in a follow-up. The commit will include the > script I used to perform the rename so folks maintaining their own build > system can script the change. > > Also see https://github.com/weidai11/cryptopp/issues/736 . >
Committed at https://github.com/weidai11/cryptopp/commit/896225069db7. The script is below. ======================================== $ cat rename.sh #!/usr/bin/env bash # Reset the repo git reset --hard HEAD~4 git pull # File list FILES=(adv-simd.h aes-armv4.h ppc-simd.h aes-armv4.S aria-simd.cpp crc-simd.cppshacal2-simd.cpp speck128-simd.cpp blake2b-simd.cpp gcm-simd.cpp sha-simd.cpp speck64-simd.cpp blake2s-simd.cpp lea-simd.cpp simeck-simd.cpp sse-simd.cpp chacha-avx.cpp neon-simd.cpp simon128-simd.cpp chacha-simd.cpp ppc-simd.cpp simon64-simd.cpp cham-simd.cpp rijndael-simd.cpp sm4-simd.cpp) # The bulk rename for file in "${FILES[@]}" do newFile=$(echo "$file" | tr '-' '_') rm -f "$newFile" git mv "$file" "$newFile" sed -i "s/$file/$newFile/g" *.txt sed -i "s/$file/$newFile/g" *.vcxproj sed -i "s/$file/$newFile/g" *.asm sed -i "s/$file/$newFile/g" *.h sed -i "s/$file/$newFile/g" *.c sed -i "s/$file/$newFile/g" *.S sed -i "s/$file/$newFile/g" *.cpp sed -i "s/$file/$newFile/g" GNUmakefile sed -i "s/$file/$newFile/g" GNUmakefile-cross done # Straglers used in Makefile recipes sed -i "s/-armv4.o/_armv4.o/g" GNUmakefile sed -i "s/-armv4.o/_armv4.o/g" GNUmakefile-cross sed -i "s/-simd.o/_simd.o/g" GNUmakefile sed -i "s/-simd.o/_simd.o/g" GNUmakefile-cross sed -i "s/-avx.o/_avx.o/g" GNUmakefile sed -i "s/-avx.o/_avx.o/g" GNUmakefile-cross # Convert line endings after sed changes to Unix&Linux make trim -- You received this message because you are subscribed to "Crypto++ Users". More information about Crypto++ and this group is available at http://www.cryptopp.com and http://groups.google.com/forum/#!forum/cryptopp-users. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
