Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177701
b: refs/heads/master
c: db1d186
h: refs/heads/master
i:
  177699: 49775f2
v: v3
  • Loading branch information
Jonathan Nieder authored and Michal Marek committed Dec 12, 2009
1 parent 8772bfe commit 5360a78
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 05ba4488a51edde95df3f89987fdcdbca7c3cebb
refs/heads/master: db1d18657c96cc675596077cb60ef50fbe1947f8
21 changes: 19 additions & 2 deletions trunk/scripts/package/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,27 @@ clean-files += $(objtree)/binkernel.spec

# Deb target
# ---------------------------------------------------------------------------
quiet_cmd_builddeb = BUILDDEB
cmd_builddeb = set -e; \
test `id -u` = 0 || \
test -n "$(KBUILD_PKG_ROOTCMD)" || { \
which fakeroot >/dev/null 2>&1 && \
KBUILD_PKG_ROOTCMD="fakeroot -u"; \
} || { \
echo; \
echo "builddeb must be run as root (or using fakeroot)."; \
echo "KBUILD_PKG_ROOTCMD is unset and fakeroot not found."; \
echo "Try setting KBUILD_PKG_ROOTCMD to a command to acquire"; \
echo "root privileges (e.g., 'fakeroot -u' or 'sudo')."; \
false; \
} && \
\
$$KBUILD_PKG_ROOTCMD $(CONFIG_SHELL) \
$(srctree)/scripts/package/builddeb

deb-pkg: FORCE
$(MAKE) KBUILD_SRC=
$(KBUILD_PKG_ROOTCMD) $(CONFIG_SHELL) \
$(srctree)/scripts/package/builddeb
$(call cmd,builddeb)

clean-dirs += $(objtree)/debian/

Expand Down

0 comments on commit 5360a78

Please sign in to comment.