xref: /aosp_15_r20/external/sg3_utils/build_debian.sh (revision 44704f698541f6367e81f991ef8bb54ccbf3fc18)
1#!/bin/sh
2
3# If this script fails on a Debian 4.0 ("etch") system then read
4# the debian/README.debian4 file.
5
6echo "chmod +x debian/rules"
7chmod +x debian/rules
8
9# in some environments the '-rfakeroot' can cause a failure (e.g. when
10# building as root). If so, remove that argument from the following:
11echo "dpkg-buildpackage -b -rfakeroot -us -uc"
12dpkg-buildpackage -b -rfakeroot -us -uc
13
14# If the above succeeds then the ".deb" binary package is placed in the
15# parent directory.
16