Changeset 465 for devel/pb/bin/pb


Ignore:
Timestamp:
Jun 1, 2008, 11:57:36 PM (12 years ago)
Author:
Bruno Cornec
Message:
  • Improve debian repository management with pb
  • Prepare mondorescue for 2.2.6 release
  • Improve mondorescue debian packages hopefully
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r460 r465  
    953953            # Also make a pbscript to generate apt bases
    954954            # Cf: http://www.debian.org/doc/manuals/repository-howto/repository-howto.fr.html
    955             my $rpd = basename($pbrepo->{$ENV{'PBPROJ'}}/$repodir);
     955            my $rpd = dirname("$pbrepo->{$ENV{'PBPROJ'}}/$repodir");
    956956            print PBS << "EOF";
    957 # Prepare a script to ease apt i setup
    958 cat > $ENV{'PBPROJ'}.apt << EOT
    959 deb $rpd $dver/
    960 deb-src $rpd $dver/
     957#!/bin/bash
     958# Prepare a script to ease apt setup
     959cat > $ENV{'PBPROJ'}.sources.list << EOT
     960deb $rpd $dver contrib
     961deb-src $rpd $dver contrib
    961962EOT
    962 chmod 644 $ENV{'PBPROJ'}.apt
     963chmod 644 $ENV{'PBPROJ'}.sources.list
    963964
    964965# Prepare a script to create apt info file
    965 (cd .. ; dpkg-scanpackages $dver /dev/null | gzip -c9 > $dver/Packages.gz
    966 (cd .. ; dpkg-scansources $dver /dev/null | gzip -c9 > $dver/Sources.gz
     966(cd .. ; for a in i386 amd64 ia64; do mkdir -p dists/$dver/contrib/binary-\$a; dpkg-scanpackages -a\$a $dver /dev/null | gzip -c9 > dists/$dver/contrib/binary-\$a/Packages.gz; done; mkdir -p dists/$dver/contrib/source; dpkg-scansources $dver /dev/null | gzip -c9 > dists/$dver/contrib/source/Sources.gz)
    967967EOF
    968968        }
Note: See TracChangeset for help on using the changeset viewer.