-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocess
More file actions
138 lines (128 loc) · 3.97 KB
/
process
File metadata and controls
138 lines (128 loc) · 3.97 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
#!/bin/bash
scriptPath="$1"
filePrefix="$2"
echo "Processing Files for $filePrefix"
read -p " Do you want to re-generate thumbnails for motions? (y/n)" thumbs
echo " Removing Empty Folders"
mkdir -p "./00_Assets/_emptyFolders"
touch ./00_Assets/_emptyFolders/.hidden
find . -type d -empty -exec mv {} ./00_Assets/_emptyFolders/ &>/dev/null \;
if [[ -d "./02_Title" ]]; then
echo " Processing Titles"
cd "./02_Title"
for i in *; do
if [[ -d "./$i" ]]; then
cd "./$i"
bash ${scriptPath}compressFolder "_AE"
if [[ -d "./_Images" ]]; then
echo " Processing Stills for $i"
cd "./_Images"
bash ${scriptPath}processFilenames "$filePrefix"
bash ${scriptPath}processPresets
cd ..
fi
if [[ -d "./_Motions" ]]; then
echo " Processing Motions for $i"
cd "./_Motions"
if [[ "$thumbs" == "y" ]]; then
bash ${scriptPath}generateThumbs "_HD"
fi
bash ${scriptPath}compressMOV
bash ${scriptPath}processFilenames "$filePrefix"
bash ${scriptPath}processPresets
cd ..
fi
cd ..
fi
done
cd ..
fi
if [[ -d "./03_Social" ]]; then
echo " Processing Socials"
cd "./03_Social"
bash ${scriptPath}renameSocials
for i in *; do
cd "./$i"
bash ${scriptPath}compressFolder "_AE"
if [[ -d "./_Images" ]]; then
echo " Processing Stills for $i"
cd "./_Images"
bash ${scriptPath}processFilenames "$filePrefix"
bash ${scriptPath}processPresets
cd ..
fi
if [[ -d "./_Motions" ]]; then
echo " Processing Motions"
cd "./_Motions"
if [[ "$thumbs" == "y" ]]; then
bash ${scriptPath}generateThumbs "_SQ"
fi
bash ${scriptPath}compressMOV "_CH_"
bash ${scriptPath}processFilenames "$filePrefix"
bash ${scriptPath}processPresets
cd ..
fi
cd ..
done
cd ..
fi
if [[ -d "./04_Worship Background/_Motions" ]]; then
echo " Processing Worship Backgrounds"
cd "./04_Worship Background/_Motions"
if [[ "$thumbs" == "y" ]]; then
bash ${scriptPath}generateThumbs
fi
bash ${scriptPath}compressMOV
bash ${scriptPath}processFilenames "$filePrefix"
bash ${scriptPath}processPresets
cd ../../
fi
if [[ -d "./05_Ultra Wide/_Motions" ]]; then
echo " Processing Ultra Wides"
cd "./05_Ultra Wide/_Motions"
if [[ "$thumbs" == "y" ]]; then
bash ${scriptPath}generateThumbs
fi
bash ${scriptPath}compressMOV
bash ${scriptPath}processFilenames "$filePrefix"
bash ${scriptPath}processPresets
cd ../../
fi
if [[ -d "./06_Countdown/_Motions" ]]; then
echo " Processing Countdowns"
cd "./06_Countdown/_Motions"
if [[ "$thumbs" == "y" ]]; then
bash ${scriptPath}generateThumbs "_HD"
fi
bash ${scriptPath}compressMOV
bash ${scriptPath}processFilenames "$filePrefix"
bash ${scriptPath}processPresets
cd ../../
fi
if [[ -d "./07_Trivia/_Motions" ]]; then
echo " Processing Trivia"
cd "./07_Trivia/_Motions"
if [[ "$thumbs" == "y" ]]; then
bash ${scriptPath}generateThumbs "_HD"
fi
bash ${scriptPath}compressMOV
bash ${scriptPath}processFilenames "$filePrefix"
bash ${scriptPath}processPresets
cd ../../
fi
if [[ -d "./08_Bumper" ]]; then
echo " Processing Bumper"
cd "./08_Bumper"
bash ${scriptPath}compressFolder "_AE"
cd "./_Motions"
if [[ "$thumbs" == "y" ]]; then
bash ${scriptPath}generateThumbs "_HD"
fi
bash ${scriptPath}compressMOV
bash ${scriptPath}processFilenames "$filePrefix"
bash ${scriptPath}processPresets
cd ../../
fi
echo
echo "Finished Processing Files for $filePrefix"
echo