forked from SubtitleEdit/subtitleedit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_helpers.sh
30 lines (27 loc) · 843 Bytes
/
build_helpers.sh
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
#!bin/bash
# Get script folder
if [ ${0%/*} == $0 ]; then
ScriptPath=${PWD}/
elif [ -e ${PWD}/${0%/*} ]; then
ScriptPath=${PWD}/${0%/*}/
else
ScriptPath=${0%/*}/
fi
ConfigurationName="$2"
if [ "$1" == "lang" ]; then
ToolPath=$ScriptPath"src/UpdateLanguageFiles/bin/$ConfigurationName/UpdateLanguageFiles.exe"
if [ -e $ToolPath ]; then
mono $ToolPath $ScriptPath"LanguageBaseEnglish.xml" $ScriptPath"src/ui/Logic/LanguageDeserializer.cs"
else
echo "Compile Subtitle Edit first!"
echo
fi
elif [ "$1" == "rev" ]; then
ToolPath=$ScriptPath"src/UpdateAssemblyInfo/bin/$ConfigurationName/UpdateAssemblyInfo.exe"
if [ -e $ToolPath ]; then
mono $ToolPath $ScriptPath"src/ui/Properties/AssemblyInfo.cs.template" $ScriptPath"src/libse/Properties/AssemblyInfo.cs.template"
else
echo "Compile Subtitle Edit first!"
echo
fi
fi