[FIX] Unescaped JS string
[cds-indico.git] / generate.sh
blobe1f15e19db57d7d321aa9aacf96329844cc34d37
1 #!/bin/sh
3 # Generates Python eggs for 2.4, 2.5 and 2.6
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.5 python2.4; 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