grim/guifications2
Clone
Summary
Browse
Changes
Graph
(hackily) deal with the G_GNUC_NULL_TERMINATED situation.
org.guifications.gf2
2007-07-26, Daniel Atallah
6cb06303dd22
file is
Executable
(hackily) deal with the G_GNUC_NULL_TERMINATED situation.
#!/bin/sh
# guifications i18n stats update utility.
# (C) 2004 The Guifications Team
#
# Author(s):
# Gary Kramlich
# Stu Tomlinson
# This script assumes one of two things. One being that your sourceforge name
# is the same username as your shell username, or that you have added a host
# block to your ~/.ssh/config containing your username for sourceforge. Please
# make sure you meet these requirements before saying it doesn't work.
# This is the dir we're copying index.html, *.po and *.pot to, make sure that
# these files (or the directory they're in) are group writable.
SF_DIR
=
"/home/groups/g/gu/guifications/htdocs/Guifications/i18n/"
# Set this to the desired file name for the output to be saved to
OUT_FILE
=
"stats.xml"
# Set this to your project timezone if you want to be consistent
TZ
=
"CST6CDT"
export
TZ
# Make sure we've got any updates first, otherwise things might be wrong
cvs
-q
update
-dP
# Save the existing .po's to reduce conflicts
rm
-rf
.posave
mkdir
-p
.posave
cp
-a
*.po
.posave/
# Lets do this now...
./update.pl
--pot
for
pofile
in
*.po
;
do
./update.pl
${
pofile
%.po
}
done
./xmlstats.pl
>
$OUT_FILE
tar
zcf
-
$OUT_FILE
*.po
*.pot
|
ssh
shell.sf.net
"cd
$SF_DIR
; tar zxvf - ; chmod 664 *.po *.pot
$OUT_FILE
"
rm
$OUT_FILE
# Restore saved .po's
mv
-f
.posave/*
.
rm
-rf
.posave