File translation-update-spec-reset-lang-list.sh of Package translation-update (Revision e8861b107f77206be0c7149bac54efcc)
Currently displaying revision e8861b107f77206be0c7149bac54efcc , Show latest
17
1
2
# Reset lang list for spec file.
3
# Usage:
4
# When build fails on missing on superfluous language packages, call:
5
# 1. sh ./translation-update-reset-lang-list.sh
6
# 2. osc build # it will fail
7
# 3. sh ./translation-update-generate-lang-list.sh
8
9
grep %package *.spec | sed 's/%package -n //' | LANG=C sort -u >pkglist-pre.lst
10
sed -i '
11
/^%package -n/,/^%prep$/c \
12
%prep
13
14
/^%files -n/,/^%changelog$/c \
15
%changelog
16
' translation-update.spec
17