timezone/pre_checkin.sh
Dirk Mueller 862d9cb81b - apply patches also for timezone-java
- add patch to fix Tiraspol split

- apply patches also for timezone-java
- add patch to fix Tiraspol split

OBS-URL: https://build.opensuse.org/package/show/Base:System/timezone?expand=0&rev=62
2011-10-25 12:48:33 +00:00

13 lines
466 B
Bash

#!/bin/bash
# This script is called automatically during autobuild checkin.
ln -f timezone.changes timezone-java.changes
for spec in timezone-java.spec; do
{ sed -n -e '1,/COMMON-BEGIN/p' $spec.in
sed -n -e '/COMMON-BEGIN/,/COMMON-END/p' timezone.spec
sed -n -e '/COMMON-END/,/COMMON-PREP-BEGIN/p' $spec.in
sed -n -e '/COMMON-PREP-BEGIN/,/COMMON-PREP-END/p' timezone.spec
sed -n -e '/COMMON-PREP-END/,$p' $spec.in; } > $spec.tmp && mv $spec.tmp $spec
done