From ae45be9b59aae7d5c27d3bc302c46c3ca382a49018420eafc8fd5067db30675b Mon Sep 17 00:00:00 2001 From: Karl Eichwalder Date: Wed, 28 Dec 2011 11:48:31 +0000 Subject: [PATCH] rm fetch_source OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=71 --- daps.changes | 5 ++++ fetch_source | 81 ---------------------------------------------------- 2 files changed, 5 insertions(+), 81 deletions(-) delete mode 100644 fetch_source diff --git a/daps.changes b/daps.changes index ac9c8f4..da20688 100644 --- a/daps.changes +++ b/daps.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Dec 28 11:48:06 UTC 2011 - ke@suse.de + +- Remove fetch_source. + ------------------------------------------------------------------- Wed Dec 28 08:39:57 UTC 2011 - ke@suse.de diff --git a/fetch_source b/fetch_source deleted file mode 100644 index be167e5..0000000 --- a/fetch_source +++ /dev/null @@ -1,81 +0,0 @@ -#!/bin/bash -# -# -# Create DAPS source tarball from SVN -# -# Copyright (C) 2004 - 2011 SUSE Linux Products GmbH -# -# Author: -# Frank Sundermeyer -# - -NAME=daps -VERSION= -SPECFILE=${NAME}.spec -SVNPATH=https://svn.opensuse.org/svn/opensuse-doc/trunk/tools/daps -TMPDIR=$(mktemp -q -d --tmpdir daps_XXXXXXXX) -EXCLUDES=${TMPDIR}/${NAME}/packaging/exclude-files_for_daps_package.txt - -#---------- -# Functions -#---------- - -# exit on error -# -function exit_on_error { - echo -e "$1" - rm -rf $TMPDIR - exit 1 -} -#----- -# MAIN -#----- -# -# This script needs to be called from the daps osc checkout directory, so -# lets check whethter we are in the correct directory -# -if [[ ! -s daps.spec && ! -d .osc ]]; then - echo "Looks like you are not in the daps checkout directory." - read -p "Continue anyway (y/n) [n]: " CONT - if [[ n = $CONT || N = $CONT ]]; then - exit_on_error "Aborted by user." - fi -fi - -# -# Export daps from SVN -# -svn export -q $SVNPATH ${TMPDIR}/${NAME} || exit_on_error "SVN export failed" - -# -# Get the version number -# -VERSION=$(egrep "^Version:\s*" ${TMPDIR}/${NAME}/packaging/$SPECFILE | sed 's/^Version:\s*//') - -if [[ -z $VERSION ]]; then - exit_on_error "Couldn't get version number from spec-file." -fi - -# -# Create the tarball -# -export BZIP2=--best -tar cjhf ${NAME}-${VERSION}.tar.bz2 -C ${TMPDIR} \ - --exclude-from=$EXCLUDES ${NAME} || exit_on_error "Failed to create the tarball." - -echo "Successfully created ${NAME}-${VERSION}.tar.bz2" - -# -# Copy the spec file if necessary -# -diff -q $SPECFILE ${TMPDIR}/${NAME}/packaging/$SPECFILE >/dev/null -if [[ 0 = $? ]]; then - echo "spec file is up-to-date" -else - cp ${TMPDIR}/${NAME}/packaging/$SPECFILE . || exit_on_error "Failed to copy the specfile." - echo "Successfully updated the spec file." -fi - -rm -rf ${TMPDIR} - -exit 0