[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-i18n-doc
Subject: Re: [Translation script] Search outdated (or missing) screenshots
From: Alexander Potashev <aspotashev () gmail ! com>
Date: 2018-06-05 15:05:17
Message-ID: CADMG6+9AQyNv1n7inBm1DZtJjV3GSb2Si5ULiWGr5YfXg6k9iQ () mail ! gmail ! com
[Download RAW message or body]
Hi Antoni,
Thanks you for your work! This kind of script has been wanted for a
long time, nice surprise seeing it.
I had to make some changes to make it work on my system, see attachment.
2018-06-05 17:48 GMT+03:00 Antoni Bella PĂ©rez <antonibella5@yahoo.com>:
> Hi,
>
> [second time]
>
> I have been working with a script for found outdated (or missing)
> screenshots within the translations.
>
> Now, it works! And use the KDE infrastructure.
>
> - trunk and kf5 only
> - Catalan adapted (what we have not translated ... I'm not sure)
>
> Script:
> https://websvn.kde.org/trunk/l10n-support/ca/scripts/doc_parse_dates.sh?
> view=markup
>
> Any suggestion or improvement will be welcome.
>
> Regards
> Toni
>
>
--
Alexander Potashev
["doc_parse_dates.sh.patch" (text/x-patch)]
Index: trunk/l10n-support/ca/scripts/doc_parse_dates.sh
===================================================================
--- trunk/l10n-support/ca/scripts/doc_parse_dates.sh (revision 1517233)
+++ trunk/l10n-support/ca/scripts/doc_parse_dates.sh (working copy)
@@ -81,10 +81,10 @@
GITDIR=$(grep "^entry $DOCDIR " scripts/documentation_paths)
fi
- [ -z $GITDIR ] && GITDIR="\e[0;31m** Solve GITDIR var! **\e[0m"
+ [ -z "$GITDIR" ] && GITDIR="\e[0;31m** Solve GITDIR var! **\e[0m"
echo -e "** $docdir -> $GITDIR" # NOTE: If GITDIR var is empty, add or change \
above # Var empty, not pparsed
- [ -z $GITDIR ] && continue
+ [ -z "$GITDIR" ] && continue
# Without screenshots, not parsed
[ -z $(found_ss) ] && continue
@@ -96,7 +96,7 @@
do
GITM=$(echo $GITDIR | awk '{print $3}' FS=".git" | cut -f 2 -d'/')
GITD=$(echo $GITDIR | awk '{print $2}' FS="HEAD:")
- SCREENSHOT=$(filename $screenshot)
+ SCREENSHOT=$(basename $screenshot)
OUTPUT_FILE="$MODULE-$DOCDIR0$DOCDIR-$SCREENSHOT.html"
# Git: date get from the svn web server (I do not know any other option \
within the KDE infrastructure)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic