Changeset 586 for devel/pb/bin/pb


Ignore:
Timestamp:
Oct 13, 2008, 11:55:55 PM (11 years ago)
Author:
Bruno Cornec
Message:
  • Adds links for gentoo to point on the repo to the latest version of the ebuild
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r585 r586  
    11991199#(cd .. ; rm -f dists/$dver/Release ; apt-ftparchive release dists/$dver > dists/$dver/Release; gpg --sign -ba -o dists/$dver/Release.gpg dists/$dver/Release)
    12001200EOF
     1201        } elsif ($dtype eq "ebuild") {
     1202            # make a pbscript to generate links to latest version
     1203            print PBS << "EOF";
     1204#!/bin/bash
     1205# Prepare a script to create correct links
     1206for p in $src; do
     1207    echo \$p | grep -q '.ebuild'
     1208    if [ \$\? -eq 0 ]; then
     1209        j=`basename \$p`
     1210        pp=`echo \$j | cut -d'-' -f1`
     1211        ln -sf \$j \$pp.ebuild
     1212    fi
     1213done
     1214EOF
    12011215        }
    12021216        close(PBS);
    12031217        chmod 0755,"$ENV{'PBBUILDDIR'}/pbscript";
    1204 
    12051218    } else {
    12061219        return;
Note: See TracChangeset for help on using the changeset viewer.