[FIX] Error reports
[cds-indico.git] / generate.sh
blobadc33055f771e5a7a42662271b6d473da427e312
1 #!/bin/sh
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
6 DATEOPT=
8 while getopts "d" Option
9 do
10 case $Option in
11 d ) DATEOPT=-d;;
12 esac
13 done
15 for EXECUTABLE in python2.6 python2.7; do
16 $EXECUTABLE setup.py egg_info $DATEOPT bdist_egg
17 EGG_NAME=dist/`$EXECUTABLE setup.py egg_filename | tail -n 1`.egg
18 md5sum $EGG_NAME | sh -c 'read a; echo ${a%% *}' > $EGG_NAME.md5
19 done