Skip to content

Commit b99a1dd

Browse files
committed
Added 6.1 option. Made 6.1 the default.
1 parent 06a6dc3 commit b99a1dd

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

makeIOC.sh

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ num_args=$#
66
#!echo $num_args
77
INDENT="> "
88

9-
# Default to synApps_5_8 for now
10-
VER="_5_8"
11-
CHANGE_PREFIX="changePrefix.pl"
9+
# Default to synApps_6_1
10+
VER="_6_1"
11+
CHANGE_PREFIX="changePrefix"
1212

1313
case $num_args in
1414
3 )
@@ -22,15 +22,19 @@ case $num_args in
2222
case $VERSION in
2323
"5.8" )
2424
VER="_5_8"
25+
CHANGE_PREFIX="changePrefix.pl"
2526
;;
2627

2728
"6.0" )
2829
VER="_6_0"
29-
CHANGE_PREFIX="changePrefix"
30+
;;
31+
32+
"6.1" )
33+
VER="_6_1"
3034
;;
3135

3236
* )
33-
echo "Invalid synApps version. Valid options: 5.8, 6.0"
37+
echo "Invalid synApps version. Valid options: 5.8, 6.0, 6.1"
3438
exit 1
3539
;;
3640
esac
@@ -41,14 +45,14 @@ case $num_args in
4145
#!echo "$2"
4246
OS=$1
4347
PREFIX=$2
44-
# Default to synApps_5_8 for now
45-
VER="_5_8"
48+
# Default to synApps_6_1 for now
49+
VER="_6_1"
4650
;;
4751

4852
* )
4953
echo "Usage: makeIOC.sh <vxWorks|Linux|Darwin|Windows> <ioc_name>"
5054
echo "or"
51-
echo "Usage: makeiOC.sh <vxWorks|Linux|Darwin|Windows> <5.8|6.0> <ioc_name>"
55+
echo "Usage: makeiOC.sh <vxWorks|Linux|Darwin|Windows> <5.8|6.0|6.1> <ioc_name>"
5256
exit 1
5357
;;
5458
esac
@@ -59,6 +63,12 @@ then
5963
echo "\"${OS}\" is not a valid OS choice. Choose vxWorks, Linux, Darwin or Windows."
6064
exit 1
6165
else
66+
# Check for invalid Darwin versions
67+
if [ "${OS}" == "Darwin" ] && [ "${VER}" != "_5_8" ]
68+
then
69+
echo "Darwin is only available for synApps 5.8"
70+
exit 1
71+
fi
6272
BRANCH_OS="${OS}${VER}"
6373
fi
6474

0 commit comments

Comments
 (0)