Ignore:
Timestamp:
Apr 26, 2008, 10:48:20 PM (17 years ago)
Author:
price
Message:

some cleanup of sx-build-release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-dev/sx-build-release

    r317 r464  
    11#!/bin/bash
    2 svnuri=`svn info | sed -n 's/^Repository Root: //p'`
     2svnuri=`svn info /srv/checkout | sed -n 's/^Repository Root: //p'`
    33
    44set -e
     
    1717olddir=`pwd`
    1818cd build-release/`basename $package`
     19
    1920eval  `perl '-F:\s+' -lane 'print  $F[0]."=".$F[1] if /^Version|^Source|^Distribution/' \
    2021    <(dpkg-parsechangelog)`
    2122
     23dpkg-buildpackage -us -uc -rfakeroot
    2224
    23 dpkg-buildpackage -us -uc -rfakeroot
    24 svn mkdir $svnuri/package_tags/$Source -m "Create package tags directory" ||true
    25 svn cp  $svnuri/$package $svnuri/package_tags/$Source/$Version -m "Tag $Version of $Source"
     25if ! svn ls $svnuri/package_tags/$Source >/dev/null 2>&1; then
     26  svn mkdir $svnuri/package_tags/$Source \
     27      -m "Create package tags directory"
     28fi
     29if ! svn ls $svnuri/package_tags/$Source/$Version >/dev/null 2>&1; then
     30  svn cp $svnuri/$package $svnuri/package_tags/$Source/$Version \
     31      -m "Tag $Version of $Source"
     32else
     33  echo "$(basename $0): tag already exists, not making again"
     34fi
     35
    2636cd ..
    27  reprepro-env include $Distribution  `pwd`/${Source}_*${Version}*.changes
     37reprepro-env include $Distribution  `pwd`/${Source}_*${Version}*.changes
    2838
    2939cd $olddir
Note: See TracChangeset for help on using the changeset viewer.