[makefiles] Remove bashisms.

From: Dustin L. Howett <dustin@howett.net>

git-svn-id: http://svn.howett.net/svn/theos/trunk@607 4410221e-0ddf-4ce3-99c0-2db6c0dbc727
[common] Sternly warn the user about using 'sudo make'.

From: Dustin L. Howett <dustin@howett.net>

git-svn-id: http://svn.howett.net/svn/theos/trunk@608 4410221e-0ddf-4ce3-99c0-2db6c0dbc727
[makefiles] I forgot to remove a ] from a ]] in 331969e.

From: Dustin L. Howett <dustin@howett.net>

git-svn-id: http://svn.howett.net/svn/theos/trunk@609 4410221e-0ddf-4ce3-99c0-2db6c0dbc727
[package] dpkg control fields are case-insensitive.

From: Dustin L. Howett <dustin@howett.net>

git-svn-id: http://svn.howett.net/svn/theos/trunk@610 4410221e-0ddf-4ce3-99c0-2db6c0dbc727
[bootstrap] Explicitly state the bootstrap command, because it was tripping people up. Closes pull request #66.

From: Dustin L. Howett <dustin@howett.net>

git-svn-id: http://svn.howett.net/svn/theos/trunk@611 4410221e-0ddf-4ce3-99c0-2db6c0dbc727
[package] 2d967e4 introducted a regression wherein Architecture was not read from control. No idea how that changed to -f3- (instead of -f2-).

From: Dustin L. Howett <dustin@howett.net>

git-svn-id: http://svn.howett.net/svn/theos/trunk@612 4410221e-0ddf-4ce3-99c0-2db6c0dbc727
[package] Rewrite the packaging subsystem.

We now support multiple packaging formats, and installation is not
(necessarily) tied to target. Using PACKAGE_FORMAT, a developer can
select between packaging formats offered by Theos and any installed
modules.

When building debs, we no longer use package_version.sh three times: we
cache the name of the last-built package, and we only bump the version
number once. We recover the bumped version from _/DEBIAN/control before
the package is built.

Targets now define their preferred default package formats, and whether
they're remote or local. _common/install_deb_* have been removed, as
they have become useless.

This merges in 5d135e5 ("!WIP [makefiles] Copy the deb to a temporary
location and install it during the same SSH session.") from
dhowett/dev/experimental-rebased.

From: Dustin L. Howett <dustin@howett.net>

git-svn-id: http://svn.howett.net/svn/theos/trunk@613 4410221e-0ddf-4ce3-99c0-2db6c0dbc727
[nic] Allow the user to override the name the Makefile uses to refer to Theos.

From: Dustin L. Howett <dustin@howett.net>

git-svn-id: http://svn.howett.net/svn/theos/trunk@614 4410221e-0ddf-4ce3-99c0-2db6c0dbc727
[makefiles] Try to intuit the Makefile the user is using (make -f XXX), and use that for all sub-makes.

From: Dustin L. Howett <dustin@howett.net>

git-svn-id: http://svn.howett.net/svn/theos/trunk@615 4410221e-0ddf-4ce3-99c0-2db6c0dbc727
[makefiles/tweak] Allow tweaks to masquerade as bundles if and only if xxx_BUNDLE_RESOURCE_??? is present, defaulting to /Library/Application Support/xxx/xxx.bundle (configurable with xxx_BUNDLE_INSTALL_PATH, xxx_BUNDLE_NAME and xxx_BUNDLE_EXTENSION.)

2013-04-20: Updated for new bundling system.

(I am finally landing this on master: I don't necessarily believe that
it's the best thing to do, but I do think there needs to be some
sort of standard resource storage for tweaks.)

From: Dustin L. Howett <dustin@howett.net>

git-svn-id: http://svn.howett.net/svn/theos/trunk@616 4410221e-0ddf-4ce3-99c0-2db6c0dbc727
[makefiles/tweak] Don't kill SpringBoard, kill whatever the user says to kill when building the template.

From: Dustin L. Howett <dustin@howett.net>

git-svn-id: http://svn.howett.net/svn/theos/trunk@617 4410221e-0ddf-4ce3-99c0-2db6c0dbc727
[iphone] Do not warn about armv6 if the user forces ARCHS.

From: Dustin L. Howett <dustin@howett.net>

git-svn-id: http://svn.howett.net/svn/theos/trunk@618 4410221e-0ddf-4ce3-99c0-2db6c0dbc727
[install] Make the install helper scripts more resilient to spaces. install.exec is still painful. Closes PR #5.

From: Dustin L. Howett <dustin@howett.net>

git-svn-id: http://svn.howett.net/svn/theos/trunk@619 4410221e-0ddf-4ce3-99c0-2db6c0dbc727
[logos] Overridable %subclass superclasses.

From: Dustin L. Howett <dustin@howett.net>

git-svn-id: http://svn.howett.net/svn/theos/trunk@620 4410221e-0ddf-4ce3-99c0-2db6c0dbc727
[logos] *Ref can be printed with %@ due to CFType. Heavy-handed assumption that *Ref is a CFType.

From: Dustin L. Howett <dustin@howett.net>

git-svn-id: http://svn.howett.net/svn/theos/trunk@621 4410221e-0ddf-4ce3-99c0-2db6c0dbc727
[logify] Only try to log return values from Logify if they're loggable.

From: Dustin L. Howett <dustin@howett.net>

git-svn-id: http://svn.howett.net/svn/theos/trunk@622 4410221e-0ddf-4ce3-99c0-2db6c0dbc727
[package] Use target-specific variables to propagate filenames.

We now use target-specific variables to propagate the last built
package's filename to package.mk (whose responsibility it now is to
record such). Cleaned up a couple targets.

From: Dustin L. Howett <dustin@howett.net>

git-svn-id: http://svn.howett.net/svn/theos/trunk@623 4410221e-0ddf-4ce3-99c0-2db6c0dbc727
[makefiles] Include stage and package from common instead of master/rules.

From: Dustin L. Howett <dustin@howett.net>

git-svn-id: http://svn.howett.net/svn/theos/trunk@624 4410221e-0ddf-4ce3-99c0-2db6c0dbc727
[rules] Use __simplify instead of a manual simulacrum of it for object file tagging.

From: Dustin L. Howett <dustin@howett.net>

git-svn-id: http://svn.howett.net/svn/theos/trunk@625 4410221e-0ddf-4ce3-99c0-2db6c0dbc727
[makefiles] Make some variables simply-expanded where they don't need to be recursively-expanded.

From: Dustin L. Howett <dustin@howett.net>

git-svn-id: http://svn.howett.net/svn/theos/trunk@626 4410221e-0ddf-4ce3-99c0-2db6c0dbc727