1
0
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:
Dave Reisner 2011-03-29 20:35:48 -04:00 committed by Dan McGee
parent 287e8d356e
commit 541c2470b8

View File

@ -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