From c468235a7403fdd7696ffaf3e7ce11866a94cfd7 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Mon, 29 Sep 2008 09:15:25 +0000 Subject: Fix SVN checkouts --- wicd/build/wicd.SlackBuild | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'wicd') diff --git a/wicd/build/wicd.SlackBuild b/wicd/build/wicd.SlackBuild index 39962593..342667b0 100755 --- a/wicd/build/wicd.SlackBuild +++ b/wicd/build/wicd.SlackBuild @@ -50,8 +50,10 @@ # Set initial variables: PRGNAM=wicd -VERSION=${VERSION:-"1.5.3"} # SVN snapshot or official release -BRANCH=${BRANCH:-"testing-1.5.0"} # SVN 'testing' branch is where it happens +VERSION=${VERSION:-"1.5.3"} # SVN snapshot or official release. + # If you want a snapshot, enter "HEAD" as the + # value for VERSION and leave the SRCURL variable + # (further down the script) empty, "". ARCH=noarch BUILD=${BUILD:-1} TAG=${TAG:-alien} @@ -76,10 +78,10 @@ SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.gz" # This function checks out sources from SVN/CVS and creates a tarball of them. src_checkout() { # Param #1 : full path to where SOURCE tarball should be created. - local SVNURL=http://wicd.svn.sourceforge.net/svnroot/wicd/${BRANCH} + local SVNURL=http://wicd.svn.sourceforge.net/svnroot/wicd/trunk if [ "$(echo ${VERSION}|cut -c1)" == 'r' ]; then # revision instead of date REV=$(echo ${VERSION} | cut -c2-) - elif [ "$VERSION" == "latest" -o "$VERSION" == "head" ]; then + elif [ "$VERSION" == "LATEST" -o "$VERSION" == "latest" -o "$VERSION" == "HEAD" -o "$VERSION" == "head" ]; then REV=$(svn info -r HEAD ${SVNURL} | grep "^Revision: " | cut -f2 -d' ') echo "##" echo "## Changing VERSION from '$VERSION'..." @@ -103,8 +105,8 @@ src_checkout() { && find . -type d -name '.svn' -depth | xargs rm -rf \ && chown -R root:root . \ && cd .. \ - && tar -${TARCOMP}cf ${1} $PRGNAM-${VERSION} \ - && rm -rf $PRGNAM-${VERSION} + && tar -${TARCOMP}cf ${1} $PRGNAM-${VERSION} + rm -rf $PRGNAM-${VERSION} } ## -- cgit v1.2.3