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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user