source: virtaal/trunk/fuentes/maketranslations @ 5278

Last change on this file since 5278 was 250, checked in by mabarracus, 5 years ago

Ported trusty code

  • Property svn:executable set to *
File size: 648 bytes
Line 
1#!/bin/bash
2
3# Guess the target application if we aren't supplied one
4if [ $# == 1 ]; then
5        targetapp=$1
6else
7        targetapp=$(basename $(pwd))
8        echo "Guessing application name is \"${targetapp}\""
9fi
10
11share=share/$targetapp
12desktop=share/applications/$targetapp.desktop
13mimetype=share/mime/packages/$targetapp-mimetype.xml
14
15cache="po/.intltool-merge-cache"
16rm $cache
17
18if [ -d po ]; then
19        if [ -f  ${mimetype}.in ]; then
20                intltool-merge --xml-style --cache $cache po ${mimetype}.in $mimetype
21        fi
22        if [ -f  ${desktop}.in ]; then
23                intltool-merge --desktop-style --cache $cache po ${desktop}.in $desktop
24        fi
25else
26        echo "$0: No translation directory"
27fi
Note: See TracBrowser for help on using the repository browser.