mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-30 13:27:40 +00:00
14 lines
410 B
Bash
Executable File
14 lines
410 B
Bash
Executable File
#!/bin/bash
|
|
|
|
OS="$(uname -s)"
|
|
|
|
make -C data/tools reindent
|
|
|
|
if [[ "$OS" == "Linux" ]]; then
|
|
find src/ -name \*.\[ch\]pp -print0 | xargs -0 sed -i 's/[[:blank:]]*$//'
|
|
find data/lua/ -name \*.lua -print0 | xargs -0 sed -i 's/[[:blank:]]*$//'
|
|
else
|
|
find src/ -name \*.\[ch\]pp -print0 | xargs -0 sed -i '' 's/[[:blank:]]*$//'
|
|
find data/lua/ -name \*.lua -print0 | xargs -0 sed -i '' 's/[[:blank:]]*$//'
|
|
fi
|