mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
makepkg: avoid usage of tr to sidestep locale issues
to quote dan: "turkish will FUCK YOU UP. this is not the first or the last time" Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
287e8d356e
commit
541c2470b8
@ -1039,13 +1039,12 @@ create_package() {
|
||||
local comp_files=".PKGINFO"
|
||||
|
||||
# check for changelog/install files
|
||||
for i in 'changelog' 'install'; do
|
||||
orig=${!i}
|
||||
dest=$(tr '[:lower:]' '[:upper:]' <<<".$i")
|
||||
for i in 'changelog/.CHANGELOG' 'install/.INSTALL'; do
|
||||
IFS='/' read -r orig dest <<< "$i"
|
||||
|
||||
if [[ -n $orig ]]; then
|
||||
msg2 "$(gettext "Adding %s file...")" "$i"
|
||||
cp "$startdir/$orig" "$dest"
|
||||
if [[ -n ${!orig} ]]; then
|
||||
msg2 "$(gettext "Adding %s file...")" "$orig"
|
||||
cp "$startdir/${!orig}" "$dest"
|
||||
chmod 644 "$dest"
|
||||
comp_files+=" $dest"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user