2011-08-24 15:28:09 +02:00
|
|
|
#!/bin/bash
|
|
|
|
# This script is called automatically during autobuild checkin.
|
|
|
|
|
2012-04-17 16:57:13 +02:00
|
|
|
for spec in python-doc.spec python.spec; do
|
2011-08-24 15:28:09 +02:00
|
|
|
{ sed -n -e '1,/COMMON-PATCH-BEGIN/p' $spec
|
|
|
|
sed -n -e '/COMMON-PATCH-BEGIN/,/COMMON-PATCH-END/p' python-base.spec
|
|
|
|
sed -n -e '/COMMON-PATCH-END/,/COMMON-PREP-BEGIN/p' $spec
|
|
|
|
sed -n -e '/COMMON-PREP-BEGIN/,/COMMON-PREP-END/p' python-base.spec
|
|
|
|
sed -n -e '/COMMON-PREP-END/,$p' $spec;
|
|
|
|
} | uniq > $spec.tmp && mv $spec.tmp $spec
|
|
|
|
done
|