Skip to content

Commit

Permalink
add script to update pyloxi
Browse files Browse the repository at this point in the history
  • Loading branch information
rlane committed Apr 11, 2016
1 parent 41253a1 commit e65abbb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/update-pyloxi.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash -eux
wget -O loxi.tar.gz https://github.com/floodlight/loxigen-artifacts/tarball/master
SHA1=$( tar -tzf loxi.tar.gz| head -n1 | grep -oP 'floodlight-loxigen-artifacts-\K\w+')
git rm -rq src/python/loxi
git checkout HEAD src/python/loxi/LICENSE.pyloxi
tar -xzf loxi.tar.gz --xform s,floodlight-loxigen-artifacts-$SHA1/pyloxi,src/python,
git add src/python/loxi
git commit -m "update pyloxi to $SHA1"
rm loxi.tar.gz

0 comments on commit e65abbb

Please sign in to comment.