[Debian-l10n-commits] compendia branch master updated. 928ae32a65a9e2aaf502941d2ac5067e32346ea5
Christian Perrier
bubulle at alioth.debian.org
Mon Jul 16 00:38:37 UTC 2012
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "compendia".
The branch, master has been updated
via 928ae32a65a9e2aaf502941d2ac5067e32346ea5 (commit)
from 71ff868afd28834d51cac42f0dae3c9215c1451f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://anonscm.debian.org/gitweb/?p=debian-l10n/compendia.git;a=commitdiff;h=928ae32a65a9e2aaf502941d2ac5067e32346ea5
commit 928ae32a65a9e2aaf502941d2ac5067e32346ea5
Author: Christian PERRIER <bubulle at debian.org>
Date: Sun Jul 15 18:37:55 2012 -0600
Do not necessarily have to be run while in the compendia directory
-----------------------------------------------------------------------
Summary of changes:
convert_or_remove | 4 ++--
createcompendium | 6 ++++--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/convert_or_remove b/convert_or_remove
index 1556ff7..34eca0c 100755
--- a/convert_or_remove
+++ b/convert_or_remove
@@ -2,9 +2,9 @@
# converts a po file to utf-8 or removes it
# also it validates the file or removes it
-if ./msg2utf8 "$1"
+if $(dirname $(readlink -f $0))/msg2utf8 "$1"
then
- if ./charset-tests "$1" >/dev/null 2>&1
+ if $(dirname $(readlink -f $0))/charset-tests "$1" >/dev/null 2>&1
then
echo "I: $1: is included in compendium"
else
diff --git a/createcompendium b/createcompendium
index 6ac4114..a2a7157 100755
--- a/createcompendium
+++ b/createcompendium
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -x
set -e
@@ -7,6 +7,8 @@ umask 002
GENCOMPENDIUMPATH=${GENCOMPENDIUMPATH='.'}
+STAMP=`date +%Y%m%d`
+
#create a local tmp directory
POTMPDIR=`mktemp -d "$TMPDIR"/cpd.XXXXXXXXXX`
# cleanup local tmp directory on exit
@@ -22,7 +24,7 @@ mkdir -p "$OUTDIR"
exec &>"$OUTDIR/$STAMP.log"
# for some odd reason convert_or_remove needs to be an external file
# maybe because find doesn't have it defined in its environment
-find "$POTMPDIR" -name *.po -exec ./convert_or_remove {} \;
+find "$POTMPDIR" -name *.po -exec $(dirname $(readlink -f $0))/convert_or_remove {} \;
msgcat -o "$OUTDIR/compendium-$MSGLANG-stamp$STAMP.po" $POTMPDIR/*.po || {
echo "EEE: failed to generate $OUTDIR/compendium-$MSGLANG-stamp$STAMP.po"
exit 1
-----------------------------------------------------------------------
hooks/post-receive
--
compendia
More information about the Debian-l10n-commits
mailing list