Revert "Make GTK+ Tutorial gnome-doc-utils compliant"
This reverts commit 4d1cf25080
.
GTK+ maintainers should first approved the gnome-doc-utils dependency
before this migration.
@ -1,9 +1,9 @@
|
|||||||
include $(top_srcdir)/gnome-doc-utils.make
|
include $(top_srcdir)/Makefile.decl
|
||||||
dist-hook: doc-dist-hook
|
|
||||||
DOC_MODULE = gtk-tut
|
.PHONY: html pdf
|
||||||
DOC_ENTITIES =
|
|
||||||
DOC_INCLUDES =
|
EXTRA_DIST += \
|
||||||
DOC_FIGURES = \
|
gtk-tut.sgml \
|
||||||
images/arrow.png \
|
images/arrow.png \
|
||||||
images/aspectframe.png \
|
images/aspectframe.png \
|
||||||
images/base.png \
|
images/base.png \
|
||||||
@ -35,4 +35,42 @@ DOC_FIGURES = \
|
|||||||
images/statusbar.png \
|
images/statusbar.png \
|
||||||
images/table.png \
|
images/table.png \
|
||||||
images/tictactoe.png
|
images/tictactoe.png
|
||||||
DOC_LINGUAS =
|
|
||||||
|
if HAVE_DOCBOOK
|
||||||
|
html:
|
||||||
|
if test -w $(srcdir); then \
|
||||||
|
(cd $(srcdir); \
|
||||||
|
db2html gtk-tut.sgml; \
|
||||||
|
test -d html && rm -r html; \
|
||||||
|
mv gtk-tut html; \
|
||||||
|
mkdir html/images; \
|
||||||
|
cp images/*.png html/images); \
|
||||||
|
fi
|
||||||
|
|
||||||
|
pdf:
|
||||||
|
if test -w $(srcdir); then \
|
||||||
|
(cd $(srcdir); db2pdf gtk-tut.sgml); \
|
||||||
|
fi
|
||||||
|
|
||||||
|
dist-hook: html
|
||||||
|
cp -Rp $(srcdir)/html $(distdir)
|
||||||
|
else
|
||||||
|
html:
|
||||||
|
echo "***"
|
||||||
|
echo "*** Warning: Tutorial not built"
|
||||||
|
echo "***"
|
||||||
|
|
||||||
|
pdf:
|
||||||
|
echo "***"
|
||||||
|
echo "*** Warning: Tutorial not built"
|
||||||
|
echo "***"
|
||||||
|
|
||||||
|
dist-hook:
|
||||||
|
echo "***"
|
||||||
|
echo "*** Warning: Tutorial not built"
|
||||||
|
echo "*** DISTRIBUTION IS INCOMPLETE"
|
||||||
|
echo "***"
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
-include $(top_srcdir)/git.mk
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
<?xml version="1.0" standalone="no"?>
|
|
||||||
<omf>
|
|
||||||
<resource>
|
|
||||||
<subject category="GNOME|Tutorials"/>
|
|
||||||
<type>tutorial</type>
|
|
||||||
<relation seriesid="0a9293f9-eaa3-f371-59da-afbc45ce010ba0"/>
|
|
||||||
<rights type="GNU FDL" license.version="1.1" holder="GNOME Foundation"/>
|
|
||||||
</resource>
|
|
||||||
</omf>
|
|
458
docs/tutorial/C/gtk-tut.xml → docs/tutorial/gtk-tut.sgml
Normal file → Executable file
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
137
docs/tutorial/package-db-tutorial.sh
Executable file
@ -0,0 +1,137 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# package-db-tutorial.sh - Package up the tutorial into various formats
|
||||||
|
# Copyright (C) Tony Gale 2000-2002
|
||||||
|
# Contact: gale@gtk.org
|
||||||
|
#
|
||||||
|
# NOTE: This script requires the following to be installed:
|
||||||
|
# o DocBook
|
||||||
|
# o DocBook-Utils
|
||||||
|
# o Jade
|
||||||
|
# o Jadetex
|
||||||
|
|
||||||
|
TARGETDIR=`pwd`/2.0/
|
||||||
|
|
||||||
|
SOURCE=`pwd`/gtk-tut.sgml
|
||||||
|
IMAGES="`pwd`/images"
|
||||||
|
IMAGESDIR="images"
|
||||||
|
EXAMPLES=`pwd`/../../examples
|
||||||
|
|
||||||
|
DATE=`date '+%Y%m%d'`
|
||||||
|
BUILDDIR=gtk-tutorial.$DATE
|
||||||
|
|
||||||
|
PATH=`pwd`:$PATH
|
||||||
|
|
||||||
|
# Check target directory
|
||||||
|
if [ ! -d $TARGETDIR ]; then
|
||||||
|
if [ -e $TARGETDIR ]; then
|
||||||
|
echo "ERROR: target directory is not a directory"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
if ! mkdir $TARGETDIR; then
|
||||||
|
echo "mkdir for target directory failed"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check top level build directory
|
||||||
|
if [ ! -d $BUILDDIR ]; then
|
||||||
|
if [ -e $BUILDDIR ]; then
|
||||||
|
echo "ERROR: build directory is not a directory"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
if ! mkdir $BUILDDIR; then
|
||||||
|
echo "mkdir of build directory failed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! cd $BUILDDIR; then
|
||||||
|
echo "cd to build directory failed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp $SOURCE .
|
||||||
|
cp -R $IMAGES .
|
||||||
|
|
||||||
|
# SGML Format
|
||||||
|
echo -n "Copy SGML and images.... "
|
||||||
|
if [ ! -d gtk-tutorial.sgml ]; then
|
||||||
|
if [ -e gtk-tutorial.sgml ]; then
|
||||||
|
echo "ERROR: gtk-tutorial.sgml is not a directory"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
mkdir gtk-tutorial.sgml
|
||||||
|
fi
|
||||||
|
|
||||||
|
(cd gtk-tutorial.sgml && cp $SOURCE . && cp -R $IMAGES . && rm -rf $IMAGESDIR/CVS)
|
||||||
|
tar cvfz $TARGETDIR/gtk-tutorial.sgml.tgz gtk-tutorial.sgml
|
||||||
|
echo "done"
|
||||||
|
|
||||||
|
# HTML Format
|
||||||
|
echo -n "Formatting into HTML.... "
|
||||||
|
if [ ! -d gtk-tutorial.html ]; then
|
||||||
|
if [ -e gtk-tutorial.html ]; then
|
||||||
|
echo "ERROR: gtk-tutorial.html is not a directory"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
mkdir gtk-tutorial.html
|
||||||
|
fi
|
||||||
|
|
||||||
|
(db2html -o gtk-tutorial.html $SOURCE && cp -R $IMAGES gtk-tutorial.html && rm gtk-tutorial.html/$IMAGESDIR/*.eps) > /dev/null
|
||||||
|
(cd gtk-tutorial.html && rm -rf $IMAGESDIR/CVS && ln -s book1.html index.html)
|
||||||
|
tar cvfz $TARGETDIR/gtk-tutorial.html.tgz gtk-tutorial.html
|
||||||
|
echo "done"
|
||||||
|
|
||||||
|
# PS and PDF Format
|
||||||
|
echo -n "Formatting into PS and PDF.... "
|
||||||
|
if [ ! -d gtk-tutorial.ps ]; then
|
||||||
|
if [ -e gtk-tutorial.ps ]; then
|
||||||
|
echo "ERROR: gtk-tutorial.ps is not a directory"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
mkdir gtk-tutorial.ps
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -d gtk-tutorial.pdf ]; then
|
||||||
|
if [ -e gtk-tutorial.pdf ]; then
|
||||||
|
echo "ERROR: gtk-tutorial.pdf is not a directory"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
mkdir gtk-tutorial.pdf
|
||||||
|
fi
|
||||||
|
|
||||||
|
sed "s/images\/\(.*\)\.png/images\/\1.eps/g" $SOURCE > gtk-tutorial.ps/gtk-tut.sgml
|
||||||
|
cp -R $IMAGES gtk-tutorial.ps
|
||||||
|
(cd gtk-tutorial.ps && db2dvi gtk-tut.sgml && dvips gtk-tut.dvi -o gtk-tut.ps && dvipdf gtk-tut.dvi ../gtk-tutorial.pdf/gtk-tut.pdf)
|
||||||
|
gzip -c gtk-tutorial.ps/gtk-tut.ps > $TARGETDIR/gtk-tutorial.ps.gz
|
||||||
|
gzip -c gtk-tutorial.pdf/gtk-tut.pdf > $TARGETDIR/gtk-tutorial.pdf.gz
|
||||||
|
echo "done"
|
||||||
|
|
||||||
|
# RTF Format
|
||||||
|
#echo -n "Formatting into RTF.... "
|
||||||
|
#if [ ! -d gtk-tutorial.rtf ]; then
|
||||||
|
# if [ -e gtk-tutorial.rtf ]; then
|
||||||
|
# echo "ERROR: is not a directory"
|
||||||
|
# exit
|
||||||
|
# fi
|
||||||
|
# mkdir gtk-tutorial.rtf
|
||||||
|
#fi
|
||||||
|
|
||||||
|
#cp -R $IMAGES gtk-tutorial.rtf
|
||||||
|
#(cd gtk-tutorial.rtf && db2rtf $SOURCE) # > /dev/null
|
||||||
|
#gzip -c gtk-tutorial.rtf/gtk-tut.rtf > $TARGETDIR/gtk-tutorial.rtf.gz
|
||||||
|
#echo "done"
|
||||||
|
|
||||||
|
# Copy examples
|
||||||
|
echo -n "Copying examples"
|
||||||
|
cp -R $EXAMPLES .
|
||||||
|
(cd examples && make clean && rm -rf CVS */CVS */.cvsignore README.1ST extract.awk extract.sh find-examples.sh)
|
||||||
|
tar cfz $TARGETDIR/examples.tgz examples
|
||||||
|
echo "done"
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
rm -rf $BUILDDIR
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo Packages created.
|
||||||
|
echo
|