Skip to content

Repository Source Tree To Distribution Tree

ldo edited this page Sep 13, 2010 · 19 revisions

How to convert a source tree, newly checked out from the repository, into the set of files found in the distribution tarball.

Files in repository but not in distribution:

./: sfupload

doc/: dvdauthor.sgml, dvdunauthor.sgml, html.dsl, iso639.sgml , root.sgml, spuunmux.sgml, dvddirdel.sgml, examples.sgml, mpeg2desc.sgml, spumux.sgml

Files in distribution but not in repository (automatically generated from above):

./: aclocal.m4, autotools/, configure, dvdauthor.spec, Makefile.in

autotools/: config.guess, config.rpath, config.sub, depcomp, install-sh, missing

src/: Makefile.in, config.h.in, dvdvml.c, dvdvmy.c, dvdvmy.h

doc/: Makefile.in, dvdauthor.1, dvddirdel.1, dvdunauthor.1, mpeg2desc.1, spumux.1, spuunmux.1

Generation Steps

Additional software needed: GNU autotools, bison, docbook-sgm-tools.

mkdir autotools
aclocal
autoheader
gettextize
automake --add-missing
autoconf
(cd src; flex -s -B -Cem -odvdvml.c -Pdvdvdm dvdvml.l)
(cd src; bison -o dvdvmy.c -d -p dvdvm dvdvmy.y)
(cd doc; docbook2man root.sgml)
rm -rf autom4te.cache
rm ABOUT-NLS
rm -rf po
rm -rf m4
rm doc/manpage.links doc/manpage.refs

Note the configure etc files generated will not be exactly identical if you have a newer version of autotools and the other support packages. I wouldn’t worry too much about this.

And then delete the source files not included in the distribution tree:

rm doc/*.sgml doc/html.dsl sfupload
Clone this wiki locally