Created
March 25, 2017 00:28
-
-
Save lool/bc5b34093134d00080fa44dc27c3fa23 to your computer and use it in GitHub Desktop.
OpenSwitch (classic stack, aka OPS) snap build scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e -x | |
# snapcraft deps for Ubuntu 16.04 | |
SNAPCRAFT_PACKAGES="python3-jsonschema python3-magic python3-xdg python3-requests-oauthlib python3-ssoclient python3-progressbar python3-requests-toolbelt python3-docopt python3-petname" | |
sudo apt -y install $SNAPCRAFT_PACKAGES | |
if ! [ -d snapcraft ]; then | |
git clone https://github.com/ubuntu-core/snapcraft | |
fi | |
# OpenSwitch build deps for Ubuntu 16.04 | |
OPS_PREREQS="python chrpath device-tree-compiler build-essential diffstat texinfo" | |
sudo apt -y install $OPS_PREREQS | |
if ! [ -d ops-snappy-genericx86-64 ]; then | |
git clone https://github.com/ops-snappy/ops-snappy-genericx86-64 | |
fi | |
cd ops-snappy-genericx86-64 | |
~/snapcraft/bin/snapcraft |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment