Start packaging the bz2 python module as it is needed for building Qt5
[profile/ivi/python.git] / packaging / pre_checkin.sh
1 #!/bin/bash
2 # This script is called automatically during autobuild checkin.
3
4 for spec in python.spec; do
5 { sed -n -e '1,/COMMON-PATCH-BEGIN/p' $spec
6   sed -n -e '/COMMON-PATCH-BEGIN/,/COMMON-PATCH-END/p' python-base.spec
7   sed -n -e '/COMMON-PATCH-END/,/COMMON-PREP-BEGIN/p' $spec
8   sed -n -e '/COMMON-PREP-BEGIN/,/COMMON-PREP-END/p' python-base.spec
9   sed -n -e '/COMMON-PREP-END/,$p' $spec;
10  } | uniq > $spec.tmp && mv $spec.tmp $spec
11 done