1#!/bin/sh 2# Convert _bootstrap packages to non-bootstrap version. 3# THIS IS A HACK. The _bootstrap packages are cross-compiled on a pseudo-haiku 4# environment running on a different host system. Expect binary 5# incompatibilities when trying to use them. However, the development files 6# should still be valid, allowing us to build a non-bootstrap Haiku against 7# these package before we can get the bootstrap image to run reliably enough 8# to actually bootstrap the packages. 9 10mkdir -p work 11cd work 12 13for package in ../packages/*.hpkg 14do 15 echo --- Processing $package --- 16 echo Cleaning work directory... 17 rm -r * 18 echo Extracting package... 19 package extract $package 20 echo Converting .PackageInfo... 21 sed -i .PackageInfo -e s/_bootstrap//g 22 name=`basename $package|sed -e s/_bootstrap//g` 23 echo Regenerating package... 24 package create ../$name 25done 26