File: create-testbed-data.sh

package info (click to toggle)
scummvm 2.9.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 450,268 kB
  • sloc: cpp: 4,297,604; asm: 28,322; python: 12,901; sh: 11,219; java: 8,477; xml: 7,843; perl: 2,633; ansic: 2,465; yacc: 1,670; javascript: 1,020; makefile: 933; lex: 578; awk: 275; objc: 82; sed: 11; php: 1
file content (52 lines) | stat: -rwxr-xr-x 792 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/sh

# Create the directory structure
# Avoided bash shortcuts / file-separators in interest of portability

if [ -e testbed ]; then
	echo "Game-data already present as testbed/"
	echo "To regenerate, remove and rerun"
	exit 0
fi

mkdir testbed

cd testbed

# For game detection
echo "ScummVM rocks!" > TESTBED

mkdir test1
mkdir Test2
mkdir TEST3
mkdir tEST4
mkdir test5


cd test1
echo "It works!" > file.txt
cd ..

cd Test2
echo "It works!" > File.txt
cd ..

cd TEST3
echo "It works!" > FILE.txt
cd ..

cd tEST4
echo "It works!" > fILe.txt
cd ..

cd test5
echo "It works!" > file.
cd ..

# back to the top
cd ..

# move the audiocd data to newly created directory
cp -r testbed-audiocd-files testbed/audiocd-files
mv testbed/audiocd-files/music.mid testbed/
echo "Game data created"