5 for target in w32 w64; do
6 if [ "$target" = "w32" ]; then
7 LIBGCC_DLL=/usr/lib/gcc/i686-w64-mingw32/`i686-w64-mingw32-g++ -dumpversion`/libgcc_s_sjlj-1.dll
8 LIBSTDCPP_DLL=/usr/lib/gcc/i686-w64-mingw32/`i686-w64-mingw32-g++ -dumpversion`/libstdc++-6.dll
10 LIBGCC_DLL=/usr/lib/gcc/i686-w64-mingw32/`i686-w64-mingw32-g++ -dumpversion`/libgcc_s_sjlj-1.dll
11 LIBSTDCPP_DLL=/usr/lib/gcc/i686-w64-mingw32/`i686-w64-mingw32-g++ -dumpversion`/libstdc++-6.dll
13 mkdir anytun-$VER-$target
14 cp anytun-$target/*.exe anytun-$VER-$target
15 cp $LIBGCC_DLL $LIBSTDCPP_DLL anytun-$VER-$target
16 cp boost-$target/lib/libboost_{date_time,serialization,system,thread_win32,chrono}.dll anytun-$VER-$target
17 cp openssl-$target/bin/libeay32.dll anytun-$VER-$target
18 cp anytun-example.bat anytun-$VER-$target
19 cp ../{AUTHORS,ChangeLog,LICENSE,README,version} anytun-$VER-$target
20 cp -r tap?? anytun-$VER-$target
21 rm -rf anytun-$VER-$target/tap*/.svn
23 zip -r anytun-$VER-$target.zip anytun-$VER-$target
24 rm -rf anytun-$VER-$target