-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bruno Cornec
committed
Mar 26, 2015
1 parent
fd06cc3
commit 292542f
Showing
26 changed files
with
38,500 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
WML_LIB=/usr/lib64/wml/exec | ||
CIBLE=HP-HOWTO | ||
DESTDIR=/www/hyper-linux.org/$(CIBLE) | ||
VER=v0.96 | ||
RH=/usr/src/redhat | ||
|
||
.EXPORT_ALL_VARIABLES: | ||
|
||
all: Makefile.fr | ||
if [ ! -d images ]; then ln -sf ../images ; fi | ||
./checkFREN $(CIBLE).sgml | ||
echo -n "<!ENTITY curdate \"" > curdate.sgml | ||
echo -n `date +"%Y-%m-%d"` >> curdate.sgml | ||
echo "\">" >> curdate.sgml | ||
make -f Makefile.fr all | ||
make -f Makefile.en all | ||
|
||
test: Makefile.fr | ||
make -f Makefile.fr test | ||
|
||
all-rtf: Makefile.fr | ||
make -f Makefile.fr all-rtf | ||
make -f Makefile.en all-rtf | ||
|
||
clean: Makefile.fr | ||
if [ ! -d images ]; then ln -sf ../images ; fi | ||
make -f Makefile.fr clean | ||
make -f Makefile.en clean | ||
rm -f images/netcraft.gif images/netcraft.png | ||
lynx -dump http://www.netcraft.com/survey/Reports/current/overallc.gif > images/netcraft.gif | ||
rm -f version.sgml | ||
echo "<!ENTITY curver \"$(VER)\">" > version.sgml | ||
|
||
install: web | ||
|
||
web: all | ||
rm -rf $(DESTDIR)/$(VER) $(DESTDIR)/current | ||
mkdir $(DESTDIR)/$(VER) | ||
cp $(CIBLE).dsl $(CIBLE).sgml $(CIBLE).spec Makefile Makefile.src $(DESTDIR)/$(VER) | ||
(cd .. ; cp -a mirror images $(DESTDIR)) | ||
make -f Makefile.fr web | ||
make -f Makefile.en web | ||
find $(DESTDIR) -type f -exec chmod 644 {} \; | ||
find $(DESTDIR) -type d -exec chmod 755 {} \; | ||
ln -sf $(DESTDIR)/$(VER) $(DESTDIR)/current | ||
|
||
rpm: all | ||
make -f Makefile.fr rpm | ||
make -f Makefile.en rpm | ||
ln -sf $(RH)/SRPMS/$(CIBLE).fr-$(VER)-1.src.rpm . | ||
ln -sf $(RH)/SRPMS/$(CIBLE).en-$(VER)-1.src.rpm . | ||
|
||
Makefile.fr: Makefile.src | ||
$(WML_LIB)/wml_p9_slice -N -o ENuUNDEF:Makefile.en -o FRuUNDEF:Makefile.fr Makefile.src | ||
|
||
livhp: all | ||
zip -v $(CIBLE)-$(VER).zip *.pdf | ||
echo "Here is the new HP-HOWTO/Voici la nouvelle version du HP-HOWTO" | mutt bc -c bruno -a $(CIBLE)-$(VER).zip -s "$(CIBLE) Version $(VER)" | ||
|
||
LDP: all Makefile.fr | ||
make -f Makefile.en LDP | ||
make -f Makefile.fr LDP | ||
|
||
bco: | ||
echo "Sources du HP-HOWTO" | mutt bc -a Makefile.src -a Makefile -a $(CIBLE).dsl -a $(CIBLE).sgml -a $(CIBLE).spec -a annonce.EN -a annonce.FR -s "$(CIBLE) Sources Version $(VER)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
LANGUE=[FR:FR:FR][EN:EN:EN] | ||
langue=[FR:fr:FR][EN:en:EN] | ||
GFDL=../mirror/fdl.sgml | ||
SRC=$(CIBLE).sgml.$(langue) $(CIBLE).sgml $(CIBLE).dsl.$(langue) $(CIBLE).dsl Makefile Makefile.$(langue) Makefile.src $(GFDL).$(langue) | ||
IMAGES=$(shell ls images/*.eps) images/netcraft.eps | ||
SPECS=$(RH)/SPECS | ||
SOURCES=$(RH)/SOURCES | ||
|
||
|
||
$(GFDL).$(langue): $(GFDL) | ||
$(WML_LIB)/wml_p9_slice -o $(LANGUE)uUNDEF:$(GFDL).$(langue) $(GFDL) | ||
|
||
images/%.eps: images/%.png | ||
convert $< $@ | ||
|
||
images/netcraft.eps: images/netcraft.gif | ||
convert images/netcraft.gif images/netcraft.png | ||
convert images/netcraft.gif images/netcraft.eps | ||
|
||
test : test.dsl test.sgml | ||
$(WML_LIB)/wml_p9_slice -o $(LANGUE)uUNDEF:test.dsl.$(langue) test.dsl | ||
$(WML_LIB)/wml_p1_ipp -N nosynclines -o /tmp/test.sgml test.sgml | ||
$(WML_LIB)/wml_p9_slice -o $(LANGUE)uUNDEF:test.sgml.$(langue) /tmp/test.sgml | ||
rm -f /tmp/test.sgml | ||
openjade -t tex -d test.dsl.$(langue)'#pdf' -o testpdf.tex.$(langue) test.sgml.$(langue) | ||
hugepdflatex --interaction nonstopmode -fmt=pdfjadetex -mltex testpdf.tex.$(langue) | ||
hugepdflatex --interaction nonstopmode -fmt=pdfjadetex -mltex testpdf.tex.$(langue) | ||
hugepdflatex --interaction nonstopmode -fmt=pdfjadetex -mltex testpdf.tex.$(langue) | ||
mv testpdf.tex.pdf test.pdf.$(langue) | ||
|
||
$(CIBLE).dsl.$(langue) : $(CIBLE).dsl | ||
$(WML_LIB)/wml_p9_slice -o $(LANGUE)uUNDEF:$(CIBLE).dsl.$(langue) $(CIBLE).dsl | ||
|
||
$(SPECS)/$(CIBLE).spec.$(langue) : $(CIBLE).spec $(SRC) | ||
echo "%define version $(VER)" > $(SPECS)/$(CIBLE).spec | ||
cat $(CIBLE).spec >> $(SPECS)/$(CIBLE).spec | ||
(cd $(SPECS)/ ; $(WML_LIB)/wml_p9_slice -o $(LANGUE)uUNDEF:$(CIBLE).spec.$(langue) $(CIBLE).spec) | ||
|
||
$(CIBLE).sgml.$(langue) : $(CIBLE).sgml | ||
$(WML_LIB)/wml_p1_ipp -N nosynclines -o /tmp/$(CIBLE).sgml $(CIBLE).sgml | ||
$(WML_LIB)/wml_p9_slice -o $(LANGUE)uUNDEF:$(CIBLE).sgml.$(langue) /tmp/$(CIBLE).sgml | ||
rm -f /tmp/$(CIBLE).sgml | ||
|
||
all: $(CIBLE).ps.$(langue) $(CIBLE).pdf.$(langue) index.html.$(langue) $(CIBLE).pdb.$(langue) $(CIBLE).html.$(langue) $(CIBLE).txt.$(langue) | ||
|
||
all-rtf: all-$(langue) $(CIBLE).rtf.$(langue) | ||
|
||
$(CIBLE).tex.$(langue): $(SRC) $(IMAGES) | ||
openjade -t tex -d $(CIBLE).dsl.$(langue)'#print' -o $(CIBLE).tex.$(langue) $(CIBLE).sgml.$(langue) | ||
|
||
$(CIBLE).ps.$(langue): $(CIBLE).tex.$(langue) | ||
hugelatex --interaction nonstopmode -fmt=jadetex -mltex $(CIBLE).tex.$(langue) | ||
hugelatex --interaction nonstopmode -fmt=jadetex -mltex $(CIBLE).tex.$(langue) | ||
hugelatex --interaction nonstopmode -fmt=jadetex -mltex $(CIBLE).tex.$(langue) | ||
mv $(CIBLE).tex.dvi $(CIBLE).dvi.$(langue) | ||
dvips -o $(CIBLE).ps.$(langue) $(CIBLE).dvi.$(langue) | ||
|
||
index.html.$(langue): $(SRC) | ||
openjade -t sgml -d $(CIBLE).dsl.$(langue)'#html' $(CIBLE).sgml.$(langue) | ||
(for i in *.html; do mv $$i $$i.$(langue); done) | ||
|
||
$(CIBLE).html.$(langue): $(SRC) | ||
openjade -t sgml -d $(CIBLE).dsl.$(langue)'#txt' $(CIBLE).sgml.$(langue) > $(CIBLE).html.$(langue) | ||
|
||
result.html.$(langue): $(CIBLE).html.$(langue) | ||
# Marche pas à travers FW | ||
./check-links.pl $(CIBLE).html.$(langue) > result.html.$(langue) | ||
|
||
$(CIBLE).rtf.$(langue): $(SRC) | ||
openjade -t rtf -o $(CIBLE).rtf.$(langue) $(CIBLE).sgml.$(langue) | ||
|
||
$(CIBLE).txt.$(langue): $(CIBLE).html.$(langue) | ||
lynx -dump -force_html $(CIBLE).html.$(langue) > $(CIBLE).txt.$(langue) | ||
|
||
$(CIBLE).pdb.$(langue): $(CIBLE).txt.$(langue) | ||
txt2pdbdoc -v $(CIBLE).$(langue) $(CIBLE).txt.$(langue) $(CIBLE).pdb.$(langue) | ||
|
||
$(CIBLE)pdf.tex.$(langue): $(SRC) $(IMAGES) | ||
openjade -t tex -d $(CIBLE).dsl.$(langue)'#pdf' -o $(CIBLE)pdf.tex.$(langue) $(CIBLE).sgml.$(langue) | ||
|
||
$(CIBLE).pdf.$(langue): $(CIBLE)pdf.tex.$(langue) | ||
hugepdflatex --interaction nonstopmode -fmt=pdfjadetex -mltex $(CIBLE)pdf.tex.$(langue) | ||
hugepdflatex --interaction nonstopmode -fmt=pdfjadetex -mltex $(CIBLE)pdf.tex.$(langue) | ||
hugepdflatex --interaction nonstopmode -fmt=pdfjadetex -mltex $(CIBLE)pdf.tex.$(langue) | ||
mv $(CIBLE)pdf.tex.pdf $(CIBLE).pdf.$(langue) | ||
|
||
web: $(SRC) index.html.$(langue) | ||
cp -a *.$(langue) annonce.$(LANGUE) $(DESTDIR)/$(VER) | ||
|
||
rpm-web: $(RH)/RPMS/noarch/$(CIBLE).$(langue)-$(VER)-1.noarch.rpm | ||
cp $(RH)/RPMS/noarch/$(CIBLE).$(langue)-$(VER)-1.noarch.rpm $(DESTDIR)/$(VER) | ||
cp $(RH)/SRPMS/$(CIBLE).$(langue)-$(VER)-1.src.rpm $(DESTDIR)/$(VER) | ||
|
||
LDP: $(CIBLE).dsl.$(langue) $(CIBLE).sgml.$(langue) | ||
tar cvhfz $(CIBLE).$(langue)-$(VER).tar.gz images $(CIBLE).dsl.$(langue) $(CIBLE).sgml.$(langue) | ||
echo "[EN:Informations on new machines:EN][FR:Voici la nouvelle version du document.:FR] " | mutt -s "$(CIBLE) $(VER)" -a $(CIBLE).$(langue)-$(VER).tar.gz [EN:[email protected]:EN][FR:[email protected]:FR] | ||
|
||
install-$(langue): all-$(langue) | ||
rm -rf $(INSTALL_DIR)/usr/doc/$(CIBLE).$(langue)-$(VER) | ||
mkdir -p $(INSTALL_DIR)/usr/doc/$(CIBLE).$(langue)-$(VER) | ||
cp -a * $(INSTALL_DIR)/usr/doc/$(CIBLE).$(langue)-$(VER) | ||
|
||
rpm: $(SRC) $(SPECS)/$(CIBLE).spec.$(langue) all-$(langue) | ||
rm -rf ../$(CIBLE).$(langue)-$(VER) | ||
mkdir -p ../$(CIBLE).$(langue)-$(VER) | ||
cp -a $(SRC) ../$(CIBLE).$(langue)-$(VER) | ||
cp -a images ../$(CIBLE).$(langue)-$(VER) | ||
(cd .. ; tar cfz $(SOURCES)/$(CIBLE).$(langue)-$(VER).tar.gz $(CIBLE).$(langue)-$(VER) images/*.eps images/*.png) | ||
(cd $(SPECS) ; rpm -ba $(CIBLE).spec.$(langue)) | ||
ln -sf $(RH)/RPMS/noarch/$(CIBLE).$(langue)-$(VER)-*.noarch.rpm . | ||
|
||
clean: | ||
rm -f $(SPECS)/$(CIBLE).spec.$(langue) *.html.$(langue) $(CIBLE).{aux,log,out,tex,dvi,pdb,pdf,ps,dsl,sgml,txt}.$(langue) $(RH)/RPMS/noarch/$(CIBLE).$(langue)-$(VER)-*.noarch.rpm $(RH)/SRPMS/$(CIBLE).$(langue)-$(VER)-1.src.rpm ../$(CIBLE).$(langue)-$(VER) $(SOURCES)/$(CIBLE).$(langue)-$(VER).tar.gz Makefile.$(langue) | ||
rm -rf $(CIBLE).$(langue) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
#!/usr/bin/perl -w | ||
|
||
use strict; | ||
|
||
my($flagFR,$flagEN,$ligne,$verbose); | ||
$verbose = 0; | ||
$flagFR = 0; | ||
$flagEN = 0; | ||
$ligne = 0; | ||
my $ret = 0; | ||
|
||
if ($ARGV[0] eq "-v") | ||
{ | ||
shift; | ||
$verbose = 1; | ||
} | ||
open(SGML,"$ARGV[0]") or die "Unable to open input file"; | ||
while (<SGML>) | ||
{ | ||
$ligne++; | ||
if (/\[FR:/) | ||
{ | ||
print "début FR trouvé ligne $ligne\n" if ($verbose); | ||
if ($flagFR == 1) { | ||
print "*** PB ligne $ligne FR déjà ouvert\n"; | ||
$ret++; | ||
} | ||
$flagFR = 1; | ||
} | ||
if (/:FR\]/) | ||
{ | ||
print "fin FR trouvé ligne $ligne\n" if ($verbose); | ||
if ($flagFR == 0) { | ||
print "*** PB ligne $ligne FR déjà fermé\n"; | ||
$ret++; | ||
} | ||
$flagFR = 0; | ||
} | ||
if (/\[EN:/) | ||
{ | ||
print "début EN trouvé ligne $ligne\n" if ($verbose); | ||
if ($flagEN == 1) { | ||
print "*** PB ligne $ligne EN déjà ouvert\n"; | ||
$ret++; | ||
} | ||
$flagEN = 1; | ||
} | ||
if (/:EN\]/) | ||
{ | ||
print "fin EN trouvé ligne $ligne\n" if ($verbose); | ||
if ($flagEN == 0) { | ||
print "*** PB ligne $ligne EN déjà fermé\n"; | ||
$ret++; | ||
} | ||
$flagEN = 0; | ||
} | ||
} | ||
close(SGML); | ||
exit($ret); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!ENTITY curdate "2015-03-26"> |
Oops, something went wrong.