Skip to content

Example Make deb and Deploy Script

rlmcpherson edited this page Dec 17, 2014 · 1 revision

Contributed by @dzony

VERSION := 0.4.9

all: clean build deb

build:
    mkdir -p packaging/root/usr/local/bin
    curl -L https://github.com/rlmcpherson/s3gof3r/releases/download/v$(VERSION)/gof3r_$(VERSION)_linux_amd64.tar.gz | tar xvz --strip-components=1
    mv gof3r packaging/root/usr/local/bin/s3gof3r
clean:
    find . -name "*.out" -delete
    rm -rf packaging

deb:
    fpm -s dir -t deb -n s3gof3r -v $(VERSION) -p packaging/s3gof3r.deb \
        --deb-priority optional --category admin \
        --force \
        --deb-compression bzip2 \
        -a amd64 \
        packaging/root/=/

deploy:
    package_cloud push dz0ny/opensource/any/any packaging/s3gof3r.deb

Clone this wiki locally