Changeset 8037:1f408c0a71a0 in orange


Ignore:
Timestamp:
06/29/11 15:45:10 (3 years ago)
Author:
mitar
Branch:
default
Convert:
3c9282a646f60491077f142c39297754cfed4205
Message:

Preparing Debian daily build script for new version.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • install-scripts/debian/debian-daily-build.sh

    r7682 r8037  
    99 
    1010ARCH=`dpkg --print-architecture` 
     11DISTRIBUTION=`lsb_release -c -s` 
    1112 
    1213# Sets error handler 
     
    2324 
    2425# Adds our repository to APT configuration 
    25 if ! grep -q "deb http://orange.biolab.si/debian lenny main" /etc/apt/sources.list; then 
     26if ! grep -q "deb http://orange.biolab.si/debian $DISTRIBUTION main" /etc/apt/sources.list; then 
    2627    echo "Adding biolab packages repository to APT configuration." 
    27     echo "deb http://orange.biolab.si/debian lenny main" >> /etc/apt/sources.list 
    28     echo "deb-src http://orange.biolab.si/debian lenny main" >> /etc/apt/sources.list 
     28    echo "deb http://orange.biolab.si/debian $DISTRIBUTION main" >> /etc/apt/sources.list 
     29    echo "deb-src http://orange.biolab.si/debian $DISTRIBUTION main" >> /etc/apt/sources.list 
    2930fi 
    3031 
    31 if [ -e "/mnt/debian/dists/lenny/main/binary-$ARCH/python-orange-svn_0.0.$DAILY_REVISION-1_$ARCH.deb" ]; then 
     32if [ -e "/mnt/debian/dists/$DISTRIBUTION/main/binary-$ARCH/python-orange-svn_0.0.$DAILY_REVISION-1_$ARCH.deb" ]; then 
    3233    echo "Package for $DAILY_REVISION revision already exists." 
    3334    exit 0 
     
    7576 
    7677echo "Preparing public biolab Debian repository." 
    77 mkdir -p /mnt/debian/dists/lenny/main/binary-$ARCH/ 
    78 mkdir -p /mnt/debian/dists/lenny/main/source/ 
     78mkdir -p /mnt/debian/dists/$DISTRIBUTION/main/binary-$ARCH/ 
     79mkdir -p /mnt/debian/dists/$DISTRIBUTION/main/source/ 
    7980 
    8081echo "Copying to repository new packages." 
    8182cd .. 
    8283rm -rf python-orange-svn-0.0.$DAILY_REVISION/ 
    83 mv *$DAILY_REVISION*.deb /mnt/debian/dists/lenny/main/binary-$ARCH/ 
    84 mv *$DAILY_REVISION* /mnt/debian/dists/lenny/main/source/ 
     84mv *$DAILY_REVISION*.deb /mnt/debian/dists/$DISTRIBUTION/main/binary-$ARCH/ 
     85mv *$DAILY_REVISION* /mnt/debian/dists/$DISTRIBUTION/main/source/ 
    8586 
    8687echo "Cleaning temporary build directory." 
     
    9192# (Versions of packages which have more then 5 versions and those old versions are more than one month old.) 
    9293perl -e " 
    93 for (<lenny/main/binary-$ARCH/*.deb>) { 
     94for (<$DISTRIBUTION/main/binary-$ARCH/*.deb>) { 
    9495    m!.*/(.*?)_!; 
    9596    \$fs{\$1}++; 
     
    9798while ((\$f,\$n) = each(%fs)) { 
    9899    next if \$n <= 5; 
    99     unlink for grep {-M > 30} <lenny/main/binary-$ARCH/\$f_*.deb>; 
    100     unlink for grep {-M > 30} <lenny/main/source/\$f_*>; 
     100    unlink for grep {-M > 30} <$DISTRIBUTION/main/binary-$ARCH/\$f_*.deb>; 
     101    unlink for grep {-M > 30} <$DISTRIBUTION/main/source/\$f_*>; 
    101102} 
    102103" 
    103104 
    104105echo "Making packages list." 
    105 dpkg-scanpackages --multiversion lenny/main/binary-$ARCH /dev/null dists/ | gzip - > lenny/main/binary-$ARCH/Packages.gz 
    106 dpkg-scansources lenny/main/source /dev/null dists/ | gzip - > lenny/main/source/Sources.gz 
     106dpkg-scanpackages --multiversion $DISTRIBUTION/main/binary-$ARCH /dev/null dists/ | gzip - > $DISTRIBUTION/main/binary-$ARCH/Packages.gz 
     107dpkg-scansources $DISTRIBUTION/main/source /dev/null dists/ | gzip - > $DISTRIBUTION/main/source/Sources.gz 
    107108 
    108109echo "Setting permissions." 
    109 chmod 644 lenny/main/binary-$ARCH/* lenny/main/source/* 
     110chmod 644 $DISTRIBUTION/main/binary-$ARCH/* $DISTRIBUTION/main/source/* 
Note: See TracChangeset for help on using the changeset viewer.