/oh-deb-build

creates deb package with supplied build number

Primary LanguagePython

oh-deb-build

description

Creates deb package with supplied version. This is used mostly when packages are build automatically (when the build number is not known before commit), but is autogenerated by build server like Jenkins.

expected directory structure is

- DEBIAN
    - control
    - ...
- debian
    - ...

Where DEBIAN directory has to have at least control file. If the control file contains a variable ${VERSION} ex: Version: ${VERSION} it will be replaced for supplied version.

Other files (postinst, prerm ...) in DEBIAN directory can use any of the fields from control file. All the field keys will be converted to uppercase and surrounded by ${ and }. For example Package will become ${PACKAGE}. So if the ${PACKAGE} variable is used, it will be replaced for value found in control file.

debian directory should contain files that will be packaged as deb.

install


sudo install oh-deb-build /usr/local/bin/

or to generate deb package


./build 

dependencies

  • uses dpkg-deb --build command to build package