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