#!/bin/bash set -x VERSION=$1 BUILD_ROOT=`pwd` function download_src(){ #download the package wget http://bits.gluster.com//pub/gluster/glusterfs/src/glusterfs-$VERSION.tar.gz } function make_orig() { #cp as orig. cp glusterfs-$VERSION.tar.gz glusterfs-$VERSION.orig.tar.gz cp glusterfs-$VERSION.tar.gz glusterfs_$VERSION.orig.tar.gz } function file_untar() { #untar tar -zxvf glusterfs-$VERSION.tar.gz } function create_debian_dir() { cd glusterfs-$VERSION #dh_make dh_make<