Aegisub/aegisub/tests/setup.sh
Amar Takhar 40e12403d5 Merge all changes from the libaegisub branch into trunk, the effective range is r4175:4330. All options have been re-done and now use Cajun to support a json-backed format.
Initial support for low-level access and file I/O methods are included as well.

Originally committed to SVN as r4331.
2010-05-21 01:13:36 +00:00

40 lines
1.1 KiB
Bash
Executable file

chmod 664 data/*
rm -rf data
mkdir -p data
touch data/file
mkdir data/dir
touch data/file_access_denied
chmod 000 data/file_access_denied
touch data/file_read_only
chmod 444 data/file_read_only
mkdir data/dir_access_denied
chmod 000 data/dir_access_denied
mkdir data/dir_read_only
chmod 444 data/dir_read_only
echo '{"Valid" : []}' > data/mru_ok.json
echo '{"Invalid" : [1 3]}' > data/mru_invalid.json
touch data/rename_me
touch data/rename_me_overwrite
touch data/rename_me_overwrite_renamed
echo '{"String" : "This is a test"}' > data/option_string.json
echo '{"Integer" : 1}' > data/option_integer.json
echo '{"Double" : 2.1}' > data/option_double.json
echo '{"Bool" : true}' > data/option_bool.json
echo '{"Null" : null}' > data/option_null.json
echo '{"String" : [{"string" : "This is a test"}, {"string" : "This is a test"}]}' > data/option_array_string
echo '{"Integer" : [{"int" : 1}, {"int" : 1}]}' > data/option_array_integer
echo '{"Double" : [{"double" : 2.1}, {"double" : 2.1}]}' > data/option_array_double
echo '{"Bool" : [{"bool" : true}, {"bool" : true}]}' > data/option_array_bool