Move creating the Haiku repo info to jam

* PreprocessPackageInfo rule: Pull out new rule
PreprocessPackageOrRepositoryInfo which does the sed substituation and
optionally the filtering through the C preprocessor.
* HaikuRepository rule: Generate the repository info file (from the
given template). No longer do that in the build_haiku_repository
script.
This commit is contained in:
Ingo Weinhold
2014-01-19 00:49:10 +01:00
parent af559cd6ee
commit 12c19e6362
5 changed files with 85 additions and 40 deletions
+1 -10
View File
@@ -35,17 +35,8 @@ for packageFile in "$@"; do
cp "$packageFile" "$packageDir/$fileName"
done
# prepare the repo info file
fileName=`basename "$packageDir"/haiku-*.hpkg .hpkg`
version=${fileName#*-}
version=${version%%-*}
arch=${fileName##*-}
sed -e "s/%HAIKU_ARCHITECTURE%/$arch/g" \
-e "s/%HAIKU_VERSION%/$version/g" \
"$repoInfo" > "$repositoryDir/repo.info"
# build the repository file
cp "$repoInfo" "$repositoryDir/repo.info"
"$packageRepo" create -C "$repositoryDir" "$repositoryDir/repo.info" \
"$packageDir"/*.hpkg