Debianization tools
Perl Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/Git
t
.travis.yml
MANIFEST
Makefile.PL
README
README.md
build.sh
debianize.sh
exclude
git2deblogs.pl
gpl-2.0.txt
prepare-release

README.md

Debianize

Debianization tools:

  • debianize.sh -- Automate all steps of building a Debian package
  • git2deblogs -- Synchronize git logs with debian changelogs
  • test-repo -- Git repository zipped in order to perform tests on it (generating and checking debian/changelog)

Dependencies:

  • devscripts (debian package)
  • git-core (debian package)
  • Perl >= 5.10.0 (comes by default with Debian-based distro)
  • libjson-xs-perl (debian package)

debianize.sh

This is a bash script. It is primarily aimed at building deb packages for projects that use automake/autoconf toolchain for generating the configure and Makefile files.

To use, just add debianize as a submodule to your project like this:

git submodule add git://github.com/wmf-analytics/debianize.git debianize/

Then make symlinks for:

  • debianize.sh
  • prepare-release.sh
  • git2deblogs.pl

Make sure you have at least one tag (one tag means one package version). Make sure to run git2deblogs --generate to update your debian/changelog as this is the file which controls the version of the package you will generate.

Now run

./debianize.sh

git2deblogs.pl

The git2deblogs.pl has command-line paramters. Here are some examples of using them

  • --generate
  • --force-maintainer-name="Person name"
  • --force-maintainer-email="name@website.com"
  • --consistency-check
  • --wikimedia

The --generate switch will backup your current changelog and will regenerate everything from scratch. The --force-maintainer-name and -email will force these values inside the changelog (by default, these are taken from the name/email of the person who made the git tag). The --consistency-check switch can be used when you're going to make a release to check your changelog and see if it's out of date or perform various consistency checks on it. The --wikimedia switch is to be used for building packages for Wikimedia infrastructure. This affects versions inside the debian changelog and the distribution names for the debian package. You can find more details about this here.

build

It`s a script to build multiple packages on different architectures.

updates

Because this is under development and continous evolution, run this from time to time

git submodule foreach git pull

Continous integration available here:

http://www.garage-coding.com:8010/builders/git2deblogs-builder

Travis CI

Status of github.com/wsdookadr/debianize.git

Alt

Status of github.com/wikimedia-incubator/debianize.git

Alt