Rev 5417 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#!/usr/bin/env sh## Usage: ./update.sh#### has to be run in current directory#### Tasks:## (1) update translation templates## (2) run msgmerge on existing translation catalogs## (2) update SvnLog [actually create a file with latest entries]R_PROG=R-develPKG=latticeexport LC_ALL=Cecho "library(tools); xgettext2pot('.', 'po/R-${PKG}.pot')" | ${R_PROG} --vanilla --silentLANGUAGES="en@quot fr de"for LANG in ${LANGUAGES}; doecho "Updating translations for ${LANG}"POFILE=po/R-${LANG}.pomsgmerge --no-wrap --update ${POFILE} po/R-${PKG}.potPODIR=inst/po/${LANG}/LC_MESSAGESMOFILE=${PODIR}/R-${PKG}.momkdir -p ${PODIR}msgfmt --statistics -c ${POFILE} -o ${MOFILE}done## Note: -o is relatively new in grepLASTLOG=`grep -o -m 1 "r[0-9]* |" SvnLog | sed -e 's/[^0-9]//g'`svn log -v -r HEAD:${LASTLOG} > SvnLog.update