Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/telegram-purple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'telegram-purple.nsi.awk')
-rw-r--r--telegram-purple.nsi.awk15
1 files changed, 11 insertions, 4 deletions
diff --git a/telegram-purple.nsi.awk b/telegram-purple.nsi.awk
index 986cc85..a468f55 100644
--- a/telegram-purple.nsi.awk
+++ b/telegram-purple.nsi.awk
@@ -1,14 +1,21 @@
{
- if (match($0,"%")) {
+ if (match($0,"變")) {
do {
prev=lang;
getline lang<"po/LINGUAS";
l=$0;
- gsub("%",lang,l);
+ gsub("變",lang,l);
if (prev!=lang) {print l}
} while (prev!=lang);
- close("po/LINGUAS")
+ } else if (match($0,"或")) {
+ while ((getline def_line<"config.h") > 0) {
+ if (def_line == "#define HAVE_LIBWEBP 1") {
+ gsub("或","",$0);
+ print
+ break
+ }
+ }
} else {
- print $0
+ print
}
}