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 @@
chmod 777 data/*
chmod -R 777 data/
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>