projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2c64480
)
make po/update.sh a little smarter
author
Daniel Albers
<daniel@lbers.com>
Thu, 7 Jan 2010 16:21:04 +0000
(17:21 +0100)
committer
Daniel Albers
<daniel@lbers.com>
Thu, 7 Jan 2010 16:21:04 +0000
(17:21 +0100)
po/update.sh
patch
|
blob
|
history
diff --git
a/po/update.sh
b/po/update.sh
index
3d26edd
..
f08443d
100755
(executable)
--- a/
po/update.sh
+++ b/
po/update.sh
@@
-7,13
+7,15
@@
if [ ! $# -eq 1 ]; then
fi
CONV=lconvert
fi
CONV=lconvert
+POT=quassel.pot
BASE=quassel_$1
PO=$BASE.po
TS=$BASE.ts
BASE=quassel_$1
PO=$BASE.po
TS=$BASE.ts
-$CONV -i $PO -o $TS &&
+( [ -f $PO ] || ( [ -f $POT ] && cp $POT $PO ) ) &&
+ $CONV -i $PO -o $TS &&
lupdate -no-obsolete ../src -ts $TS &&
lupdate -no-obsolete ../src -ts $TS &&
- $CONV -i $TS -o $PO
+ $CONV -i $TS -o $PO &&
+ rm $TS
-# remove cruft
-rm ${TS}
+[ $? -ne 0 ] && echo "Something went wrong"