Subversion Repositories svn LFS-FR

Compare Revisions

Ignore whitespace Rev 7178 → Rev 7179

/branches/LFS_7.10/Makefile
2,15 → 2,19
 
include include.mk
 
LANG := fr
GENDIR := lfsgen-$(LANG)
LANGUAGE := fr
LANG := fr_FR.UTF-8
 
GENDIR := lfsgen-$(LANGUAGE)
ORIGDIR := lfs-en
PODIR := $(LANG)
PODIR := $(LANGUAGE)
VERSION = trunk
EN_VER := tags/7.10
#EN_VER := trunk/BOOK
DIFFDIR = diff
 
LANG_EXPORT := LC_CTYPE=$(LANG) LC_ALL=$(LANG) LANGUAGE=$(LANG) LANG=$(LANG)
 
filestocopy := INSTALL process-scripts.sh obfuscate.sh pdf-fixups.sh README bootscripts udev-lfs aux-file-data.sh make-aux-files.sh
filestoget := $(filestocopy) packages.ent tidy.conf patches.ent general.ent Makefile
COPY:=$(addprefix $(GENDIR)/,$(filestoget))
29,12 → 33,10
STYLE_BRANCH=trunk/lfs
 
SVN_en := "$(EN_REPO)/$(EN_VER)"
SVN_stylesheets := "$(FR_REPO)/$(STYLE_BRANCH)/stylesheets"
SVN_images := "$(FR_REPO)/$(STYLE_BRANCH)/images"
 
 
 
.PHONY: $(GENDIR)/stylesheets $(GENDIR)/images svnup
.PHONY: svnup
 
all: genhtml genpdf
@echo DONE
45,6 → 47,12
echo >> $@
echo -n 'PO := ' >> $@
ls $(ORIGDIR)/*.xml $(ORIGDIR)/*/*.xml | sed 's|$(ORIGDIR)/|$(PODIR)/|g' | sed 's|.xml$$|.po|g' | tr '\n' ' ' >> $@
echo >> $@
echo -n 'IMAGES := ' >> $@
find images -type f | sed 's|^|$(GENDIR)/|g' | tr '\n' ' ' >> $@
echo >> $@
echo -n 'STYLESHEETS := ' >> $@
find stylesheets -type f | sed 's|^|$(GENDIR)/|g' | tr '\n' ' ' >> $@
 
 
 
54,15 → 62,15
cp -r $< $@
 
genhtml: $(XML) $(GENDIR)/stylesheets $(GENDIR)/images $(COPY)
$(MAKE) -j1 -C $(GENDIR) REV=$(REV) BASEDIR=$(BASEDIR)
genhtml: $(XML) $(COPY) $(STYLESHEETS) $(IMAGES)
$(LANG_EXPORT) $(MAKE) -j1 -C $(GENDIR) REV=$(REV) BASEDIR=$(BASEDIR)
 
genpdf: $(XML) $(GENDIR)/stylesheets $(GENDIR)/images $(COPY)
$(MAKE) -j1 -C $(GENDIR) REV=$(REV) BASEDIR=../pdf pdf
genpdf: $(XML) $(COPY) $(STYLESHEETS) $(IMAGES)
$(LANG_EXPORT) $(MAKE) -j1 -C $(GENDIR) REV=$(REV) BASEDIR=../pdf pdf
 
 
$(GENDIR)/%.xml: $(ORIGDIR)/%.xml $(PODIR)/%.po $(GENDIR)
po4a-translate -k 0 -f docbook -m $< -l $@ -p $(word 2,$^)
$(LANG_EXPORT) po4a-translate -k 0 -f docbook -m $< -l $@ -p $(word 2,$^)
sed -e 's|encoding="ISO-8859-1"|encoding="UTF-8"|g' \
-e 's|xreflabel="Chapter 1 - Mailing Lists|xreflabel="Chapitre 1 - Listes de diffusion|g' \
-e 's|xreflabel="Chapter 1 - Mirror sites|xreflabel="Chapitre 1 - Sites miroirs|g' \
71,25 → 79,31
-e 's|xreflabel="Creating the /etc/shells File|xreflabel="Créaction du fichier /etc/shells|g' \
-e 's|xreflabel="Chapter|xreflabel="Chapitre|g' \
-e 's|xreflabel="Appendix|xreflabel="Appendice|g' -i $@
touch $(word 2,$^)
touch $@
 
$(GENDIR)/index.xml: $(ORIGDIR)/index.xml $(PODIR)/index.po $(GENDIR)
po4a-translate -k 0 -f docbook -m $< -l $@ -p $(word 2,$^)
$(LANG_EXPORT) po4a-translate -k 0 -f docbook -m $< -l $@ -p $(word 2,$^)
sed -e 's|<book>|<book lang="fr">|g' -i $@
sed -e 's|encoding="ISO-8859-1"|encoding="UTF-8"|g' -i $@
touch $(word 2,$^)
touch $@
 
$(GENDIR)/images: images $(GENDIR)
$(GENDIR)/images/%: images/%
mkdir -p $$(dirname $@)
rm -rf $@
cp -r $< $(GENDIR)
cp $< $@
 
$(GENDIR)/stylesheets: stylesheets $(GENDIR)
$(GENDIR)/stylesheets/%: stylesheets/%
mkdir -p $$(dirname $@)
rm -rf $@
cp -r $< $@
cp $< $@
 
$(GENDIR)/general.ent: $(ORIGDIR)/general.ent $(GENDIR)
#cp $< $@
date1=$$(sed -n $(VERSION_LINE)p $< | sed 's/.*"\([^"]\+\)".*/\1/');\
date2=$$(sed -n 10p $< | sed 's/.*"\([^"]\+\)".*/\1/');\
sed -e "s/$$date2/$$(LANG=fr_FR.UTF-8 date -d "$${date2}" "+%d %B %Y")/g"\
sed -e "s/$$date2/$$(LANG=$(LANG) date -d "$${date2}" "+%d %B %Y")/g"\
-e "s/Approximate build time/Temps de construction approximatif/g"\
-e "s/Required disk space/Espace disque requis/g"\
-e "s/Installation depends on/L'installation dépend de/g"\
126,7 → 140,7
lfsgen-%:
mkdir -p $@
 
init: $(ORIGDIR) $(PODIR) stylesheets images
init: $(ORIGDIR)
 
$(ORIGDIR)/%: $(ORIGDIR)
134,31 → 148,21
$(ORIGDIR):
[ -d $@ ] || svn co $(SVN_en) $(ORIGDIR)/
 
stylesheets:
[ -d $@ ] || svn co $(SVN_stylesheets) stylesheets/
 
images:
[ -d $@ ] || svn co $(SVN_images) images/
 
svnup: init
if [ "$$(svn status -u $(ORIGDIR) | wc -l)" != "1" ]; then \
svn update $(ORIGDIR);\
$(LANG_EXPORT) svn update $(ORIGDIR);\
fi
if [ "$$(svn status -u stylesheets | wc -l)" != "1" ]; then \
svn update stylesheets;\
fi
if [ "$$(svn status -u images | wc -l)" != "1" ]; then \
svn update images;\
fi
 
clean:
rm -rf $(DIFFDIR) $(GENDIR) $(ORIGDIR) stylesheets images include.mk html pdf
rm -rf $(DIFFDIR) $(GENDIR) $(ORIGDIR) include.mk html-sysv html-systemd pdf
 
$(ORIGDIR)/%.xml: $(ORIGDIR)
 
$(PODIR)/%.po: $(ORIGDIR)/%.xml
po4a-updatepo -f docbook -m $< -p $@
$(LANG_EXPORT) po4a-updatepo -f docbook -m $< -p $@
touch $<
touch $@
 
$(DIFFDIR):
mkdir $@
165,3 → 169,9
 
gendiff: $(PO) $(DIFFDIR)
svn diff $(PODIR) | xz -zec9 > $(DIFFDIR)/lfs-$(VERSION)-`date "+%d%m%y%H%M%S"`.diff.xz
 
update: $(PO)
 
upload:
(cd html-systemd; rsync --progress --recursive * jlepiller@www.linuxfromscratch.org:/srv/www/www.fr.linuxfromscratch.org/view/lfs-systemd-svn/)
(cd html-sysv; rsync --progress --recursive * jlepiller@www.linuxfromscratch.org:/srv/www/www.fr.linuxfromscratch.org/view/lfs-svn/)
/branches/LFS_7.10/fr/chapter06/util-linux.po
179,8 → 179,8
"programs installed by other packages."
msgstr ""
"Les options --disable et --without préviennent des avertissements à propos "
"d'éléments de construction qui requièrent des paquets non compris dans LFS
ou incohérents avec les programmes installés par d'autres paquets."
"d'éléments de construction qui requièrent des paquets non compris dans LFS"
"ou incohérents avec les programmes installés par d'autres paquets."
 
#. type: Content of: <sect1><sect2><para>
#: lfs-en/chapter06/util-linux.xml:96