Move package info pre-processing to jam build system

Also, pre-process all package infos (not only the generic ones) and
define the macro HAIKU_BOOTSTRAP_BUILD, if building a package for a
bootstrap image.
This commit is contained in:
Ingo Weinhold
2013-07-07 15:02:29 +02:00
parent ec945b7f0d
commit c01380b1b7
2 changed files with 36 additions and 21 deletions
-11
View File
@@ -10,7 +10,6 @@ set -o errexit
# compressionLevel
# updateOnly
# cc
# packagingArch
#
# addattr
# copyattr
@@ -115,16 +114,6 @@ echo "$packageName: mimeset'ing package contents ..."
$mimeset --mimedb "$mimeDB" "$contentsDir"
# create the package-info from a generic package-info if needed
if [ $(basename $(dirname $packageInfoPath)) = 'generic' ]; then
echo "$packageName: Creating real package info from generic one ..."
genericPackageInfoPath=$packageInfoPath
packageInfoPath=$tmpDir/.PackageInfo
cat "$genericPackageInfoPath" \
| $cc -E -DHAIKU_PACKAGING_ARCH=$packagingArch - > "$packageInfoPath"
fi
# create the package
if [ ! $updateOnly ]; then
echo "$packageName: Creating the package ..."