File: prepare-po.sh

package info (click to toggle)
subtitleeditor 0.56.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,880 kB
  • sloc: cpp: 26,446; makefile: 1,713; perl: 434; sh: 259; xml: 149
file content (10 lines) | stat: -rwxr-xr-x 757 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
echo '[encoding: UTF-8]' > po/POTFILES.in
find share/ui -type f | grep '\.ui$' | sed -e "s/\(.*\)/\[type: gettext\/glade\] \1/" >> po/POTFILES.in
find share -name "*.desktop.in" | sed -e "s/\.\///g" >> po/POTFILES.in
find src -type f | grep '\.\(h\|cc\)$' | sed -e "s/\.\///g" >> po/POTFILES.in
find plugins -type f | grep '\.\(h\|cc\|ui\)$' | sed -e "s/\.\///g" >> po/POTFILES.in
find plugins -type f | grep '\.se-plugin\.in$' | sed -e "s/\(.*\)/\[type: gettext\/ini\] \1/" >> po/POTFILES.in
find plugins -type f | grep '\.se-pattern\.in$' | sed -e "s/\(.*\)/\[type: gettext\/xml\] \1/" >> po/POTFILES.in
find plugins -type f | grep '\.ui$' | sed -e "s/\(.*\)/\[type: gettext\/glade\] \1/" >> po/POTFILES.in
sort po/POTFILES.in -o po/POTFILES.in