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:
Oliver Tappe
2013-06-04 00:24:37 +02:00
parent 6c36ad168e
commit 59e2e2f3a7
10 changed files with 32 additions and 4 deletions
+12
View File
@@ -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 ..."