Support running setup.sh out-of-tree
This commit is contained in:
parent
a084f02a2d
commit
1c94439909
24 changed files with 42 additions and 39 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 {
|
||||
};
|
||||
|
|
|
@ -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 {
|
||||
};
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <stdint.h>
|
||||
#include <libaegisub/charset_conv.h>
|
||||
|
||||
#include "main.h"
|
||||
#include <main.h>
|
||||
|
||||
using namespace agi::charset;
|
||||
|
||||
|
|
|
@ -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; \
|
||||
|
|
|
@ -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 { };
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "main.h"
|
||||
#include "util.h"
|
||||
#include <main.h>
|
||||
#include <util.h>
|
||||
|
||||
using agi::line_iterator;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <libaegisub/fs.h>
|
||||
#include <libaegisub/mru.h>
|
||||
|
||||
#include "main.h"
|
||||
#include <main.h>
|
||||
|
||||
static const char default_mru[] = "{\"Valid\" : []}";
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <libaegisub/fs.h>
|
||||
#include <libaegisub/path.h>
|
||||
|
||||
#include "main.h"
|
||||
#include <main.h>
|
||||
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
#include <libaegisub/signal.h>
|
||||
|
||||
#include "main.h"
|
||||
#include <main.h>
|
||||
|
||||
using namespace agi::signal;
|
||||
|
||||
|
|
|
@ -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 { }
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include <libaegisub/util.h>
|
||||
|
||||
#include "main.h"
|
||||
#include <main.h>
|
||||
|
||||
class lagi_util : public libagi { };
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include <libaegisub/ass/uuencode.h>
|
||||
|
||||
#include "main.h"
|
||||
#include <main.h>
|
||||
|
||||
#include <boost/algorithm/string/replace.hpp>
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue