X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=build_archive;h=e5919a0787d1c37851d57f193c2694829a24993a;hb=022fa6061ea0ef65a829f770c97520b722b47ca5;hp=1009eb91aa62f8d831565c394efe4f22295c4b7e;hpb=8ff861ea7ec6fd170efaf82a69a3c22c934db4e2;p=bin.git diff --git a/build_archive b/build_archive index 1009eb9..e5919a0 100755 --- a/build_archive +++ b/build_archive @@ -1,9 +1,30 @@ #!/bin/sh + +ORIGIN=donarmstrong +LABEL=donarmstrong +ARCHITECTURES="all i386 amd64 powerpc" + +if [ -e .build_archive.conf ]; then + .build_archive.conf +fi; + if [ ! -e Release ]; then cat - < Release Origin: donarmstrong Label: donarmstrong -Architectures: all i386 +Architectures: ${ARCHITECTURES} EOF fi; -apt-ftparchive packages . |gzip -c > Packages.gz \ No newline at end of file +apt-ftparchive -qq --db apt_ftparchive.db --contents packages . > Packages; +apt-ftparchive -qq --db apt_ftparchive.db sources . > Sources; +apt-ftparchive -qq --db apt_ftparchive.db contents . > Contents; +apt-ftparchive -qq --db apt_ftparchive.db \ + -o APT::FTPArchive::Release::Origin="$ORIGIN" \ + -o APT::FTPArchive::Release::Label="$LABEL" \ + -o APT::FTPArchive::Release::Architectures="$ARCHITECTURES" \ + release . > Release; + +for file in Sources Packages Contents; do + gzip -c $file > ${file}.gz + bzip2 -c $file > ${file}.bz2 +done; \ No newline at end of file