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 777 data/*
chmod -R 777 data/ chmod -R 777 data/
fi
rm -rf data rm -rf data
mkdir -p data mkdir -p data
@ -28,7 +31,7 @@ printf %s '1234567890' > data/ten_bytes
touch data/touch_mod_time touch data/touch_mod_time
mkdir data/options mkdir data/options
cp options/* data/options cp $d/options/* data/options
mkdir data/dir_iterator mkdir data/dir_iterator
touch data/dir_iterator/1.a touch data/dir_iterator/1.a
@ -39,7 +42,7 @@ touch data/dir_iterator/2.b
mkdir data/vfr mkdir data/vfr
mkdir data/vfr/in mkdir data/vfr/in
mkdir data/vfr/out mkdir data/vfr/out
cp vfr/* data/vfr/in/ cp $d/vfr/* data/vfr/in/
mkdir data/keyframe 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 // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "main.h" #include <main.h>
#include <libaegisub/access.h> #include <libaegisub/access.h>
#include <libaegisub/fs.h> #include <libaegisub/fs.h>

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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