Adjust handling of package infos.
* add HAIKU_PACKAGING_ARCH, which is set to the target packaging architecture * introduce support for generic package infos, which are package infos that are the same for all architectures, except for the declaration of the package architecture itself * move package info files underneath architecture-specific or generic folder
This commit is contained in:
@@ -9,6 +9,8 @@ set -o errexit
|
||||
# tmpDir
|
||||
# compressionLevel
|
||||
# updateOnly
|
||||
# cc
|
||||
# packagingArch
|
||||
#
|
||||
# addattr
|
||||
# copyattr
|
||||
@@ -113,6 +115,16 @@ 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 ..."
|
||||
|
||||
Reference in New Issue
Block a user