File: Messages.sh

package info (click to toggle)
kfourinline 4:18.04.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 6,784 kB
  • sloc: cpp: 7,339; sh: 8; makefile: 5
file content (11 lines) | stat: -rw-r--r-- 426 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#! /usr/bin/env bash
$EXTRACTRC *.rc *.ui *.kcfg >> rc.cpp
#Extract colornames from .rc files
for color in `grep -h colorNamePlayer0=  ../grafix/*.rc | cut -d '=' -f 2`; do
    echo "i18nc(\"Player 0 color\", \"$color\");" >> rc.cpp
done
for color in `grep -h colorNamePlayer1=  ../grafix/*.rc | cut -d '=' -f 2`; do
    echo "i18nc(\"Player 1 color\", \"$color\");" >> rc.cpp
done
$XGETTEXT *.cpp -o $podir/kfourinline.pot