|
@@ -12,7 +12,7 @@ plugins_linux=""
|
12
|
12
|
showHelp() {
|
13
|
13
|
echo "This will generate the different DMDirc installers."
|
14
|
14
|
echo "Usage: ${0} [params] <release>"
|
15
|
|
- echo "Release can be either 'trunk', a valid tag, or a branch (if -b is passed)"
|
|
15
|
+ echo "Release can be either 'trunk', 'this', a valid tag, or a branch (if -b is passed)"
|
16
|
16
|
echo "The following params are known:"
|
17
|
17
|
echo "---------------------"
|
18
|
18
|
echo "-b, --branch <release> is a branch"
|
|
@@ -72,6 +72,30 @@ fi;
|
72
|
72
|
if [ "${LAST}" != "" ]; then
|
73
|
73
|
if [ "${LAST}" = "trunk" ]; then
|
74
|
74
|
RELEASE=""
|
|
75
|
+ elif [ "${LAST}" = "this" ]; then
|
|
76
|
+ # Work out what type of build this is!
|
|
77
|
+ thisDIR=${PWD}
|
|
78
|
+ cd ..
|
|
79
|
+ tempDIR=${PWD##*/}
|
|
80
|
+ if [ "${tempDIR}" = "trunk" ]; then
|
|
81
|
+ echo "This is a trunk release.";
|
|
82
|
+ else
|
|
83
|
+ echo "This is not a trunk release.";
|
|
84
|
+ version=${tempDIR}
|
|
85
|
+ cd ..
|
|
86
|
+ tempDIR=${PWD##*/}
|
|
87
|
+ if [ "${tempDIR}" = "tags" ]; then
|
|
88
|
+ echo "Release of tag "${version}
|
|
89
|
+ elif [ "${tempDIR}" = "branches" ]; then
|
|
90
|
+ echo "Release of branch "${version}
|
|
91
|
+ BRANCH="-b "
|
|
92
|
+ else
|
|
93
|
+ echo "Unknown release target."
|
|
94
|
+ exit 0;
|
|
95
|
+ fi
|
|
96
|
+ RELEASE="-r "${version}
|
|
97
|
+ fi;
|
|
98
|
+ cd ${thisDIR}
|
75
|
99
|
elif [ "${BRANCH}" != "" -a ! -e "../../branches/"${LAST} ]; then
|
76
|
100
|
echo "Branch '"${LAST}"' not found."
|
77
|
101
|
exit 1;
|
|
@@ -83,7 +107,7 @@ if [ "${LAST}" != "" ]; then
|
83
|
107
|
fi
|
84
|
108
|
else
|
85
|
109
|
echo "Usage: ${0} [params] <release>"
|
86
|
|
- echo "Release can be either 'trunk' or a valid tag. (see ${0} --help for further information)"
|
|
110
|
+ echo "Release can be either 'this', 'trunk' or a valid tag. (see ${0} --help for further information)"
|
87
|
111
|
exit 1;
|
88
|
112
|
fi
|
89
|
113
|
|