Support running setup.sh out-of-tree

This commit is contained in:
Thomas Goyne 2014-07-02 09:51:59 -07:00 committed by Thomas Goyne
parent a084f02a2d
commit 1c94439909
24 changed files with 42 additions and 39 deletions

View file

@ -1,5 +1,8 @@
d=$(dirname $0)/
if test -d data; then
chmod 777 data/*
chmod -R 777 data/
fi
rm -rf data
mkdir -p data
@ -28,7 +31,7 @@ printf %s '1234567890' > data/ten_bytes
touch data/touch_mod_time
mkdir data/options
cp options/* data/options
cp $d/options/* data/options
mkdir data/dir_iterator
touch data/dir_iterator/1.a
@ -39,7 +42,7 @@ touch data/dir_iterator/2.b
mkdir data/vfr
mkdir data/vfr/in
mkdir data/vfr/out
cp vfr/* data/vfr/in/
cp $d/vfr/* data/vfr/in/
mkdir data/keyframe
cp keyframe/* data/keyframe
cp $d/keyframe/* data/keyframe

View file

@ -12,7 +12,7 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "main.h"
#include <main.h>
#include <libaegisub/access.h>
#include <libaegisub/fs.h>

View file

@ -18,7 +18,7 @@
/// @brief Cajun/Json tests.
/// @ingroup cajun
#include "main.h"
#include <main.h>
#include <libaegisub/cajun/reader.h>
#include <libaegisub/cajun/writer.h>

View file

@ -16,8 +16,8 @@
#include <libaegisub/color.h>
#include "main.h"
#include "util.h"
#include <main.h>
#include <util.h>
class lagi_color : public libagi {
};

View file

@ -14,8 +14,8 @@
#include <libaegisub/ass/dialogue_parser.h>
#include "main.h"
#include "util.h"
#include <main.h>
#include <util.h>
class lagi_dialogue_lexer : public libagi {
};

View file

@ -14,8 +14,8 @@
//
// Aegisub Project http://www.aegisub.org/
#include "main.h"
#include "util.h"
#include <main.h>
#include <util.h>
#include <libaegisub/format.h>
#include <libaegisub/format_path.h>

View file

@ -14,8 +14,8 @@
//
// Aegisub Project http://www.aegisub.org/
#include "main.h"
#include "util.h"
#include <main.h>
#include <util.h>
#include <libaegisub/fs.h>

View file

@ -12,7 +12,7 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "main.h"
#include <main.h>
#include <libaegisub/fs.h>
#include <libaegisub/hotkey.h>

View file

@ -15,7 +15,7 @@
#include <stdint.h>
#include <libaegisub/charset_conv.h>
#include "main.h"
#include <main.h>
using namespace agi::charset;

View file

@ -16,7 +16,7 @@
#include <libaegisub/util.h>
#include "main.h"
#include <main.h>
#define IFIND(haystack, needle) \
std::pair<size_t, size_t> pos; \

View file

@ -14,8 +14,8 @@
#include <libaegisub/karaoke_matcher.h>
#include "main.h"
#include "util.h"
#include <main.h>
#include <util.h>
class lagi_karaoke_matcher : public libagi { };

View file

@ -22,8 +22,8 @@
#include <fstream>
#include <iterator>
#include "main.h"
#include "util.h"
#include <main.h>
#include <util.h>
using namespace agi::keyframe;
using namespace util;

View file

@ -20,8 +20,8 @@
#include <string>
#include <vector>
#include "main.h"
#include "util.h"
#include <main.h>
#include <util.h>
using agi::line_iterator;

View file

@ -14,8 +14,8 @@
#include <libaegisub/line_wrap.h>
#include "main.h"
#include "util.h"
#include <main.h>
#include <util.h>
using namespace agi;
using namespace util;

View file

@ -15,7 +15,7 @@
#include <libaegisub/fs.h>
#include <libaegisub/mru.h>
#include "main.h"
#include <main.h>
static const char default_mru[] = "{\"Valid\" : []}";

View file

@ -16,8 +16,8 @@
#include <libaegisub/option.h>
#include <libaegisub/option_value.h>
#include "main.h"
#include "util.h"
#include <main.h>
#include <util.h>
#include <fstream>

View file

@ -16,7 +16,7 @@
#include <libaegisub/fs.h>
#include <libaegisub/path.h>
#include "main.h"
#include <main.h>
#include <boost/filesystem.hpp>

View file

@ -14,7 +14,7 @@
#include <libaegisub/signal.h>
#include "main.h"
#include <main.h>
using namespace agi::signal;

View file

@ -15,7 +15,7 @@
#include <libaegisub/ass/dialogue_parser.h>
#include <libaegisub/spellchecker.h>
#include "main.h"
#include <main.h>
class MockSpellChecker : public agi::SpellChecker {
void AddWord(std::string const&) override { }

View file

@ -15,8 +15,8 @@
#include <libaegisub/fs.h>
#include <libaegisub/thesaurus.h>
#include "main.h"
#include "util.h"
#include <main.h>
#include <util.h>
#include <fstream>

View file

@ -16,7 +16,7 @@
#include <libaegisub/util.h>
#include "main.h"
#include <main.h>
class lagi_util : public libagi { };

View file

@ -16,7 +16,7 @@
#include <libaegisub/ass/uuencode.h>
#include "main.h"
#include <main.h>
#include <boost/algorithm/string/replace.hpp>

View file

@ -21,8 +21,8 @@
#include <fstream>
#include <iterator>
#include "main.h"
#include "util.h"
#include <main.h>
#include <util.h>
using namespace agi::vfr;
using namespace util;

View file

@ -12,7 +12,7 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "main.h"
#include <main.h>
#include <libaegisub/ass/dialogue_parser.h>