Skip to content

Commit

Permalink
Add build script, .gitignore for Debian package and intermediates
Browse files Browse the repository at this point in the history
  • Loading branch information
kangtastic committed Nov 21, 2017
1 parent 9ecdfdb commit bc00c0a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# intermediate Debian package build files
debian/debhelper-build-stamp
debian/eap-proxy*
debian/files
eap_proxy
eap_proxy.1.gz
eap_proxy.conf

# resulting binary package
dist/*
12 changes: 12 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
# Simple build script for Debian source package.
# Builds a binary package, moves it to dist/, and cleans
pkgname=eap-proxy
mkdir -p dist
if dpkg-buildpackage -us -uc && mv ../$pkgname_*_all.deb dist/; then
read -p "Build succeeded. Clean? [Y|n]: " ans
ans=$(echo "$ans" | tr [:lower:] [:upper:])
if ([ -z "$ans" ] || [ "$ans" = "Y" ]); then
debian/rules clean
fi
fi

0 comments on commit bc00c0a

Please sign in to comment.