tcsh.spec: %prep phase updated to correctly convert 'Fixes' & 'Wishlist'
This commit is contained in:
parent
3ae594d08c
commit
e334622370
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user