Aegisub/tests/setup.sh

49 lines
886 B
Bash
Raw Normal View History

2014-07-02 18:51:59 +02:00
d=$(dirname $0)/
if test -d data; then
chmod 777 data/*
chmod -R 777 data/
fi
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 '{"Video" : ["Entry One", "Entry Two"]}' > data/mru_ok.json
echo '{"Video" : [1, 3]}' > data/mru_invalid.json
2013-02-02 15:44:13 +01:00
printf %s '1234567890' > data/ten_bytes
touch -r $0 data/touch_mod_time
mkdir data/options
2014-07-02 18:51:59 +02:00
cp $d/options/* data/options
2013-02-02 15:44:13 +01:00
mkdir data/dir_iterator
touch data/dir_iterator/1.a
touch data/dir_iterator/2.a
touch data/dir_iterator/1.b
touch data/dir_iterator/2.b
mkdir data/vfr
mkdir data/vfr/in
mkdir data/vfr/out
2014-07-02 18:51:59 +02:00
cp $d/vfr/* data/vfr/in/
mkdir data/keyframe
2014-07-02 18:51:59 +02:00
cp $d/keyframe/* data/keyframe