source: trunk/debian/package/led/build.sh @ 304

Last change on this file since 304 was 304, checked in by amain, 8 years ago

Remove some remarks

  • Property svn:executable set to *
File size: 585 bytes
Line 
1#!/bin/bash
2#
3# 1. Get files in the build environment
4# 2. Copy debian/directory to it
5# 3. Run dpkg-buildpackage --arch=<ARCH> -rfakeroot
6
7export DEBFULLNAME="Geert Stappers"
8export LC_ALL=C
9VERBOSE=1
10
11[ "1" == $VERBOSE ] && set -x
12
13PACKAGE=led
14VERSION=1.1
15RELEASE=1
16DEP=
17
18BASE_DIR=/usr/src
19BUILD_BASE_DIR=${BASE_DIR}/${PACKAGE}
20BUILD_DIR=${BUILD_BASE_DIR}/${PACKAGE}-${VERSION}
21
22rm -rf ${BUILD_DIR}
23mkdir -p ${BUILD_DIR}
24cp -rav files/ ${BUILD_DIR}
25cp -rav debian ${BUILD_DIR} | head -n 6  # copy all, but only show first lines
26cd ${BUILD_DIR}
27dpkg-buildpackage -a${ARCH} -rfakeroot
Note: See TracBrowser for help on using the repository browser.