Loading scripts/prepare_instrumentation.sh +3 −9 Original line number Diff line number Diff line Loading @@ -30,13 +30,9 @@ # the United Nations Convention on Contracts on the International Sales of Goods. # emulator="" system=`uname -s` if [[ ($system == "Linux") && (`uname -a` =~ (microsoft|Microsoft|wsl|WSL) ) ]]; then system="WSL" fi if [[ ($system == "Linux") || ($system == "Darwin") ]]; then emulator="wine" system="Linux" fi coan_exists () { Loading Loading @@ -100,10 +96,8 @@ fi find $targetdir -name "*.[ch]" -exec sed -i.bak -e "s/\(0x[0-9a-fA-F]*\)UL/\(\(unsigned long\)\1\)/" \{\} \; # run wmc_tool using wine ${emulator} ./wmc_tool.exe $targetdir/lib_enc/*.c /ic /op > /dev/null ${emulator} ./wmc_tool.exe $targetdir/lib_com/*.c /ic /op > /dev/null ${emulator} ./wmc_tool.exe $targetdir/lib_dec/*.c /ic /op > /dev/null ${emulator} ./wmc_tool.exe $targetdir/lib_rend/*.c /ic /op > /dev/null scripts/tools/$system/wmc_tool -m "$targetdir/apps/encoder.c" "$targetdir/lib_enc/*.c" "$targetdir/lib_com/*.c" > /dev/null scripts/tools/$system/wmc_tool -m "$targetdir/apps/decoder.c" "$targetdir/lib_dec/*.c" "$targetdir/lib_com/*.c" "$targetdir/lib_rend/*.c" > /dev/null # automatically enable #define WMOPS in options.h sed -i.bak -e "s/\/\*\s*\(#define\s*WMOPS\)\s*\*\//\1/g" $targetdir/lib_com/options.h Loading Loading
scripts/prepare_instrumentation.sh +3 −9 Original line number Diff line number Diff line Loading @@ -30,13 +30,9 @@ # the United Nations Convention on Contracts on the International Sales of Goods. # emulator="" system=`uname -s` if [[ ($system == "Linux") && (`uname -a` =~ (microsoft|Microsoft|wsl|WSL) ) ]]; then system="WSL" fi if [[ ($system == "Linux") || ($system == "Darwin") ]]; then emulator="wine" system="Linux" fi coan_exists () { Loading Loading @@ -100,10 +96,8 @@ fi find $targetdir -name "*.[ch]" -exec sed -i.bak -e "s/\(0x[0-9a-fA-F]*\)UL/\(\(unsigned long\)\1\)/" \{\} \; # run wmc_tool using wine ${emulator} ./wmc_tool.exe $targetdir/lib_enc/*.c /ic /op > /dev/null ${emulator} ./wmc_tool.exe $targetdir/lib_com/*.c /ic /op > /dev/null ${emulator} ./wmc_tool.exe $targetdir/lib_dec/*.c /ic /op > /dev/null ${emulator} ./wmc_tool.exe $targetdir/lib_rend/*.c /ic /op > /dev/null scripts/tools/$system/wmc_tool -m "$targetdir/apps/encoder.c" "$targetdir/lib_enc/*.c" "$targetdir/lib_com/*.c" > /dev/null scripts/tools/$system/wmc_tool -m "$targetdir/apps/decoder.c" "$targetdir/lib_dec/*.c" "$targetdir/lib_com/*.c" "$targetdir/lib_rend/*.c" > /dev/null # automatically enable #define WMOPS in options.h sed -i.bak -e "s/\/\*\s*\(#define\s*WMOPS\)\s*\*\//\1/g" $targetdir/lib_com/options.h Loading