SVN commit 1518856 by bellaperez: Catalan works -- Work in Ukranian language (trunk 100% translated) -- Fix a question with URL obtained from scripts/documentation_paths -- Fix a question with LabPlot2 (contain screenshots inside 'latex/image' subfolders -- not parsed) This script is functional! ;-) CCMAIL: kde-i18n-doc@kde.org M +9 -2 doc_parse_dates.sh --- trunk/l10n-support/ca/scripts/doc_parse_dates.sh #1518855:1518856 @@ -83,7 +83,14 @@ [[ "$DOCDIR0" = +(kioslave|kcontrol|kcontrol5|kioslave5) ]] && DOCDIR="$DOCDIR0/$DOCDIR" || DOCDIR0= [ -z "$GITDIR" ] && GITDIR="\e[0;31m** Solve GITDIR var! **\e[0m" # NOTE: If GITDIR var is empty, add or change above - GITM=$(echo $GITDIR | awk '{print $3}' FS=".git" | cut -f 2 -d'/') + + if [[ "$GITDIR" = *"entry "* ]]; then + GITM=$(echo $GITDIR | awk '{print $3}' | cut -f 4 -d'/') + else + GITM=$(echo $GITDIR | awk '{print $2}' | cut -f 4 -d'/') + fi + # Solve URLs whitout .git extensions (necessary for the CGit server) + [ $(echo $GITM | grep "\.git") ] && GITM=$(echo $GITM | sed -e 's/\.git//g') GITD=$(echo $GITDIR | awk '{print $3}' FS=":") echo -e "** $docdir\n** documentation/$MODULE/$DOCDIR\n-> ($MID) $CGITREPO/$GITM.git/tree/$GITD" # Var empty, not parsed @@ -95,7 +102,7 @@ if [ $(find $docdir/* -type f -name "index.docbook") ]; then [ -n $(found_ss) ] && header_table # Find item/s into documentation/'module'/'app' local dir - for screenshot in $(find documentation/$MODULE/$DOCDIR/* -type f -name "*.png" -o -name "*.jpg") + for screenshot in $(find documentation/$MODULE/$DOCDIR/* -maxdepth 0 -type f -name "*.png" -o -name "*.jpg") do SCREENSHOT=$(basename $screenshot) OUTPUT_FILE="$MODULE-$(echo $DOCDIR | sed -e 's/\//-/g')-$SCREENSHOT.html"