Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install real catalog files first, then links for alias names. #10

Merged
merged 1 commit into from
Apr 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Install real catalog files first, then links for alias names.
  • Loading branch information
stesser committed Apr 9, 2019
commit 73d6db2311750eb76f66231cefb6725b67041f76
26 changes: 23 additions & 3 deletions locale_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,31 @@ for file in $locales_dir/*.msg; do
mkdir -p $(dirname "$loc")

if [ -L "$file" ]; then
link=$(readlink "$file")
d=$(dirname "$file")
file="$d/$link"
continue
fi

gencat "$loc" "$file" > /dev/null 2>&1

done

for file in $locales_dir/*.msg; do

base=$(basename "$file")
locale=$(removeext "$base")
loc=$(gen_nlspath "$nlspath" "$locale" "$main_exec")

if [ ! -z "${locales##*$locale*}" ]; then
continue
fi

mkdir -p $(dirname "$loc")

if [ -L "$file" ]; then
link=$(readlink "$file")
locale=$(basename "$link" .msg)
linksrc="$(gen_nlspath "$nlspath" "$locale" "$main_exec")"

ln "$linksrc" "$loc"
fi

done