-
Notifications
You must be signed in to change notification settings - Fork 0
/
debianfix.sh
27 lines (23 loc) · 1.05 KB
/
debianfix.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
#
# Debian Lenny fix for OTServ 1.0
# Written by Ivan Vucica
# This file is released into public domain.
#
# Only in areas where above statement is not legally applicable:
# (c) 2007-2009 Ivan Vucica
# This is free software: you are free to change and redistribute it.
# There is NO WARRANTY, to the extent permitted by law.
#
echo "Debian fix for TheForgottenServer"
echo "---------------------"
echo "Replacing boost::system..."
find \( -name '*.cpp' -or -name '*.h' \) -exec sed -i 's/boost::system::/asio::/g' {} \; -print
echo "Replacing boost::asio..."
find \( -name '*.cpp' -or -name '*.h' \) -exec sed -i 's/boost::asio::/asio::/g' {} \; -print
echo "Replacing boost/asio.hpp..."
find \( -name '*.cpp' -or -name '*.h' \) -exec sed -i 's/boost\/asio.hpp/asio.hpp/g' {} \; -print
echo "Replacing autoconf stuff..."
sed -i 's/AC_MSG_ERROR("Linking against boost::system library failed.")/AC_MSG_WARN("Linking against boost::system library failed.")/g' configure.ac
echo "Replacing autoconf boost/asio.hpp..."
sed -i 's/boost\/asio.hpp/asio.hpp/g' configure.ac