tcsh.spec: %prep phase updated to correctly convert 'Fixes' & 'Wishlist'

This commit is contained in:
David Kaspar [Dee'Kej] 2016-04-29 22:07:51 +02:00
parent 3ae594d08c
commit e334622370

View File

@ -53,14 +53,20 @@ spelling correction, a history mechanism, job control and a C language
like syntax.
# Call the 'autosetup' macro to prepare the environment, but do not patch the
# source code yet -- we need to convert the 'Fixes' and 'Wishlist' files first:
%prep
%autosetup -N -S git
for i in Fixes WishList; do
iconv -f iso-8859-1 -t utf-8 "$i" > "${i}_" && \
touch -r "$i" "${i}_" && \
mv "${i}_" "$i"
done
%autosetup -p1 -S git
# Amend the converted files to the initial commit, and patch the source code:
git commit --all --amend --no-edit > /dev/null
%autopatch -p1
%build