| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | |
|---|
| 3 | # Generates Python eggs for 2.6 and 2.7 |
|---|
| 4 | # -d can be passed for 'nighly builds', so that the current date is appended |
|---|
| 5 | |
|---|
| 6 | DATEOPT= |
|---|
| 7 | |
|---|
| 8 | while getopts "d" Option |
|---|
| 9 | do |
|---|
| 10 | case $Option in |
|---|
| 11 | d ) DATEOPT=-d;; |
|---|
| 12 | esac |
|---|
| 13 | done |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | CLONE_DIR=`pwd` |
|---|
| 17 | mkdir /tmp/indico-build |
|---|
| 18 | pushd /tmp/indico-build |
|---|
| 19 | git clone $CLONE_DIR indico |
|---|
| 20 | cd indico |
|---|
| 21 | |
|---|
| 22 | for EXECUTABLE in python2.6 python2.7; do |
|---|
| 23 | $EXECUTABLE setup.py egg_info $DATEOPT bdist_egg |
|---|
| 24 | EGG_NAME=dist/`$EXECUTABLE setup.py egg_filename | tail -n 1`.egg |
|---|
| 25 | $EXECUTABLE setup.py egg_info $DATEOPT bdist_egg |
|---|
| 26 | md5sum $EGG_NAME | sh -c 'read a; echo ${a%% *}' > $EGG_NAME.md5 |
|---|
| 27 | done |
|---|
| 28 | |
|---|
| 29 | popd |
|---|
| 30 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.