diff options
author | Martin Langhoff <martin@laptop.org> | 2011-01-29 02:44:32 (GMT) |
---|---|---|
committer | Martin Langhoff <martin@laptop.org> | 2011-01-29 03:41:46 (GMT) |
commit | 0a30a750700f6b025f8a9eff3ddb9542d060f841 (patch) | |
tree | 18c3f44e7dd5668006f2f601e2656253344a4058 /mwlib-rebuild.sh | |
parent | e75f384cfcfc22b5b2a05fa8c9d70509033e7e96 (diff) |
Versioned binary libs and mwlib rebuild script
Diffstat (limited to 'mwlib-rebuild.sh')
-rwxr-xr-x | mwlib-rebuild.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mwlib-rebuild.sh b/mwlib-rebuild.sh new file mode 100755 index 0000000..7696e65 --- /dev/null +++ b/mwlib-rebuild.sh @@ -0,0 +1,14 @@ +#!/bin/bash -x + +set -e + +platform=`python -c 'import sys, platform; \ + print "%s%s_%s%s" % (platform.system().lower(), + platform.architecture()[0][0:2], + sys.version_info.major, + sys.version_info.minor)' ` + + +python setup.py-mwlib build_ext --inplace build +mkdir -p binarylibs/$platform/ +find build -type f -name '_*.so' | xargs -iFILE cp FILE binarylibs/$platform/
\ No newline at end of file |