projects
/
osm
/
SO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 98 - Fixed spelling mistake in mano-types.yang
[osm/SO.git]
/
BUILD.sh
diff --git
a/BUILD.sh
b/BUILD.sh
index
222ccad
..
b0c6d27
100755
(executable)
--- a/
BUILD.sh
+++ b/
BUILD.sh
@@
-95,9
+95,14
@@
set -x # Print commands before executing them
###############################################################################
# Find the platform
###############################################################################
# Find the platform
-if python -mplatform | grep -qi fedora; then
+PYTHON=python
+if [[ ! -f /usr/bin/python ]]; then
+ PYTHON=python3
+fi
+
+if $PYTHON -mplatform | grep -qi fedora; then
PLATFORM=fc20
PLATFORM=fc20
-elif
python
-mplatform | grep -qi ubuntu; then
+elif
$PYTHON
-mplatform | grep -qi ubuntu; then
PLATFORM=ub16
else
echo "Unknown platform"
PLATFORM=ub16
else
echo "Unknown platform"
@@
-109,10
+114,10
@@
fi
if [[ $PLATFORM == ub16 ]]; then
PLATFORM_REPOSITORY=${1:-OSM}
if [[ $PLATFORM == ub16 ]]; then
PLATFORM_REPOSITORY=${1:-OSM}
- PLATFORM_VERSION=${2:-4.3.1.0.
49556
}
+ PLATFORM_VERSION=${2:-4.3.1.0.
50309
}
elif [[ $PLATFORM == fc20 ]]; then
PLATFORM_REPOSITORY=${1:-OSM} # change to OSM when published
elif [[ $PLATFORM == fc20 ]]; then
PLATFORM_REPOSITORY=${1:-OSM} # change to OSM when published
- PLATFORM_VERSION=${2:-4.3.1.0.
49553-1
}
+ PLATFORM_VERSION=${2:-4.3.1.0.
50310
}
else
echo "Internal error: unknown platform $PLATFORM"
exit 1
else
echo "Internal error: unknown platform $PLATFORM"
exit 1