index.js
function writeDebianFiles(tempBuildDir, options) {
    var debianDir = path.join(tempBuildDir, 'DEBIAN');

    return fse.ensureDirAsync(debianDir)
    .then(function() {
        // Read the control file template.
        return fse.readFileAsync(path.join(TEMPLATE_FILES_DIR, 'control.tmpl'), 'utf8');
    })
    .then(function(controlFileTemplate) {
        controlFileTemplate = _(controlFileTemplate).template();

        var controlFileContents = controlFileTemplate(options);
        return fse.writeFileAsync(path.join(debianDir, 'control'), controlFileContents);
    });
}
function writeDebianFiles(tempBuildDir, options) {
    var debianDir = path.join(tempBuildDir, 'DEBIAN');

    return fse.ensureDirAsync(debianDir)
    .then(function() {
        // Read the control file template.
        return fse.readFileAsync(path.join(TEMPLATE_FILES_DIR, 'control.tmpl'), 'utf8');
    })
    .then(function(controlFileTemplate) {
        controlFileTemplate = _(controlFileTemplate).template();

        var controlFileContents = controlFileTemplate(options);
        return fse.writeFileAsync(path.join(debianDir, 'control'), controlFileContents);
    });
}
function writeDebianFiles ( tempBuildDir , options ) { var debianDir = path . join ( tempBuildDir , 'DEBIAN' ) ; return fse . ensureDirAsync ( debianDir ) . then ( function ( ) { // Read the control file template. return fse . readFileAsync ( path . join ( TEMPLATE_FILES_DIR , 'control.tmpl' ) , 'utf8' ) ; } ) . then ( function ( controlFileTemplate ) { controlFileTemplate = _ ( controlFileTemplate ) . template ( ) ; var controlFileContents = controlFileTemplate ( options ) ; return fse . writeFileAsync ( path . join ( debianDir , 'control' ) , controlFileContents ) ; } ) ; }
Write the required files into the DEBIAN directory.
Write the required files into the DEBIAN directory .