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"
|
local comp_files=".PKGINFO"
|
||||||
|
|
||||||
# check for changelog/install files
|
# check for changelog/install files
|
||||||
for i in 'changelog' 'install'; do
|
for i in 'changelog/.CHANGELOG' 'install/.INSTALL'; do
|
||||||
orig=${!i}
|
IFS='/' read -r orig dest <<< "$i"
|
||||||
dest=$(tr '[:lower:]' '[:upper:]' <<<".$i")
|
|
||||||
|
|
||||||
if [[ -n $orig ]]; then
|
if [[ -n ${!orig} ]]; then
|
||||||
msg2 "$(gettext "Adding %s file...")" "$i"
|
msg2 "$(gettext "Adding %s file...")" "$orig"
|
||||||
cp "$startdir/$orig" "$dest"
|
cp "$startdir/${!orig}" "$dest"
|
||||||
chmod 644 "$dest"
|
chmod 644 "$dest"
|
||||||
comp_files+=" $dest"
|
comp_files+=" $dest"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user