Changeset 464 for trunk


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

some cleanup of sx-build-release

Location:
trunk/packages/sipb-xen-dev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-dev/debian/changelog

    r320 r464  
     1sipb-xen-dev (15) unstable; urgency=low
     2
     3  * Stop requiring the current directory to be in the checkout.
     4  * Don't do unnecessary write operations
     5    (hence prompt less often for a password.)
     6
     7 -- Greg Price <price@mit.edu>  Sat, 26 Apr 2008 22:45:42 -0400
     8
    19sipb-xen-dev (14) unstable; urgency=low
    210
  • 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.