[scripts] 02/02: Remove export-boinc script, now with github we can grab the source tarball directly

Gianfranco Costamagna locutusofborg-guest at moszumanska.debian.org
Wed Apr 8 10:33:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

locutusofborg-guest pushed a commit to branch master
in repository scripts.

commit 95335b25a51c2c94877ed39e7909ab560be22835
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date:   Wed Apr 8 12:28:07 2015 +0200

    Remove export-boinc script, now with github we can grab the source tarball directly
---
 export-boinc | 271 -----------------------------------------------------------
 1 file changed, 271 deletions(-)

diff --git a/export-boinc b/export-boinc
deleted file mode 100755
index 77d381c..0000000
--- a/export-boinc
+++ /dev/null
@@ -1,271 +0,0 @@
-#!/bin/bash
-# $Id$
-#
-# Usage: export-boinc -r 4.72
-#     or export-boinc -r 4.72 -d 20050724
-#     or export-boinc -r 4.72 -d 20050724 -s
-#     or export-boinc -r 4.72 -s
-#     or export-boinc -s
-#     or export-boinc
-
-set -e
-
-GIT_ROOT="git://boinc.berkeley.edu/boinc-v2.git"
-
-# Define default values which can be overriden by command line options
-# and get the command line options.
-#
-SNAPSHOT=0
-DIRS="tarfiles/boinc tarfiles tarballs/boinc tarballs"
-
-function showhelp () {
-    cat <<EOHELP
-
-Usage: export-boinc <options>
-
-  This script downloads from the developers' git repository a particular
-  version of the BOINC (Berkeley Open Infrastructure for Network
-  Computing) middleware for volunteer computing. It clones everything
-  or performs a pull on ../boinc-v2 .
-
-  Options:
-
-    -r X.Y.Z    retrieve particular release
-#   -d YYYYMMDD retrieve version of particular day # no idea how to do this with git ATM
-    -s          retrieve snapshot
-    -h          print this usage description
-    -t PATH     specify directory at which to store tarfile
-
-  These options can be combined. The retrieval of the very latest
-  version (HEAD) is the default. This script can be executed from any
-  directory. If executed from one that has any of the following as a
-  subdirectory, it will place it in the first suitable one:
-
-EOHELP
-    echo "    $DIRS"
-
-    echo
-    echo "  This script lives as 'export-boinc' in git+ssh://git.debian.org/git/pkg-boinc/scripts.git ."
-    echo
-
-    exit 0
-}
-
-if [ "$1" == "--help" ]; then
-    showhelp
-    exit 0
-fi
-
-if [ -d ../boinc-v2 ]; then
-    if [ ! -d ../boinc-v2/.git ]; then
-       echo "E: found directory 'boinc-v2' which is not a git repository where I meant to export the boinc source tree to. Please clean up."
-       exit 1
-    fi
-fi
-
-if [ -f ../boinc-v2 ]; then
-    echo "E: found file 'boinc-v2' where I meant to export the boinc source tree to. Please clean up."
-    exit 1
-fi
-
-while getopts "r:d:t:sh" FLAG
-do
-    if [ "$FLAG" = "r" ]; then
-        VERSION=$OPTARG
-    elif [ "$FLAG" = "d" ]; then
-        DATE=$OPTARG
-    elif [ "$FLAG" = "s" ]; then
-        SNAPSHOT=1
-    elif [ "$FLAG" = "t" ]; then
-        DIRS=$OPTARG
-    elif [ "$FLAG" = "h" ]; then
-	showhelp
-	exit 0
-    fi
-done
-
-
-# Parse/validate the given command line options to construct the
-# appropriate git command to download the upstream source code.
-#
-if [ -z "$VERSION" ]; then
-    echo "W: version number was not specified, assuming 'HEAD'"
-    VERSION="HEAD"
-fi
-
-if [ -z "$ORIG_SUFFIX" ]; then
-    #ORIG_SUFFIX=".orig"
-    ORIG_SUFFIX=""
-fi
-
-if [ -z "$DATE" ] && [ "$SNAPSHOT" -eq 0 ]; then
-    DEBIAN_VERSION="$VERSION+dfsg"
-
-elif [ -n "$DATE" ] && [ "$SNAPSHOT" -eq 0 ]; then
-    DEBIAN_VERSION="$VERSION+dfsg"
-    ORIG_DIR="boinc-${DEBIAN_VERSION}${ORIG_SUFFIX}"
-
-elif [ -n "$DATE" ] && [ "$SNAPSHOT" -eq 1 ]; then
-    DEBIAN_VERSION="$VERSION~snapshot.$DATE+dfsg"
-
-elif [ -z "$DATE" ] && [ "$SNAPSHOT" -eq 1 ]; then
-    DATE=$(date +%Y%m%d)
-    DEBIAN_VERSION="$VERSION~snapshot.$DATE+dfsg"
-fi
-
-# A few tests on tools needed for this script
-missing=""
-for i in xargs find
-do
-    if [ ! -x /usr/bin/$i ]; then
-        missing="$missing $i"
-    fi
-done
-if [ -n "$missing" ]; then
-    echo "Missing the following tools in /usr/bin: $missing"
-    exit 1
-fi
-
-if [ -d ../boinc-v2 ]; then
-    echo "I: Found previous checkout of upstream BOINC source in 'boinc-v2'."
-    cd ../boinc-v2
-    echo "I: Updating BOINC source tree. This takes a bit of time."
-    git pull
-else
-    echo "I: Cloning upstream BOINC source tree. This takes a while, maybe five minutes."
-    git clone $GIT_ROOT ../boinc-v2
-    cd ../boinc-v2
-fi
-
-# Remove non-free or unneeded sources or cruft from the upstream source
-# code before creating the tarball.
-
-# Directories to exclude should have the "/" at the end, for this bug
-# https://bugs.launchpad.net/ubuntu/+source/git/+bug/1187662
-# already fixed upstream
-
-cat > .git/info/attributes <<EOATTRIBUTES
-*.dll export-ignore
-*.exe export-ignore
-*.so export-ignore
-# compiled samples ... also for Linux shall not be with the source
-samples/example_app/bin/ export-ignore
-api/ttf/ export-ignore
-# license fails to explicitly express that is allows modifications
-api/ttfont.cpp export-ignore
-api/ttfont.h export-ignore
-# redundant with GLUT library, license does not express clearly freedom to modify
-samples/glut export-ignore
-# [non-free] File is licensed under the BOINC Public License which is
-# DFSG-incompatible.
-zip/configure export-ignore
-# DFSG-incompatible Apple Public Source License (APSL).
-lib/mac/ export-ignore
-# [non-free] The file lib/mac/dyld_gdb.h is licensed under the
-# [unneeded] This 3rd party software is already in Debian and we added
-# them to boinc's Build-Depends.
-curl/ export-ignore
-samples/jpeglib/ export-ignore
-# [unneeded] Cruft that is not needed to build the BOINC software.
-.vimrc export-ignore
-# [non-free, unneeded] Unneeded build systems and binaries without
-# source.
-coprocs/ export-ignore
-win_build/ export-ignore
-mac_build/ export-ignore
-clientgui/mac/ export-ignore
-mac_installer/ export-ignore
-client/app_stats_mac.cpp  export-ignore
-# modified in build process
-version.h export-ignore
-# autogenerated visual c++ files
-clientctrl/boincsvcctrl.h export-ignore
-clientctrl/boincsvcctrl.rc export-ignore
-clientgui/BOINCGUIApp.rc export-ignore
-clientgui/resource.h export-ignore
-clientscr/boinc_ss.h export-ignore
-clientscr/boinc_ss.rc export-ignore
-clientscr/boinc_ss_opengl.h export-ignore
-clientscr/boinc_ss_opengl.rc export-ignore
-clienttray/boinc_tray.h export-ignore
-clienttray/boinc_tray.rc export-ignore
-client/win/boinc_cli.h export-ignore
-client/win/boinc_cli.rc export-ignore
-client/win/boinc_cmd.h export-ignore
-client/win/boinc_cmd.rc export-ignore
-client/win/boinc_log.h export-ignore
-client/win/boinc_log.rc export-ignore
-samples/vboxwrapper/vboxwrapper_win.h export-ignore
-samples/vboxwrapper/vboxwrapper_win.rc export-ignore
-samples/wrapper/wrapper_win.h export-ignore
-samples/wrapper/wrapper_win.rc export-ignore
-# bzr stuff and debian directory aren't needed
-# if you use the same source tree for building the latest version
-# with this debian revision https://code.launchpad.net/~costamagnagianfranco/+junk/boinc-upstream-merge
-# you can erroneously export these directories too
-.bzr export-ignore
-.bzrignore export-ignore
-debian/ export-ignore
-EOATTRIBUTES
-
-# source files should not be executable
-#the previous version had problem with spaces in the path
-#find . -name "*.cpp" -exec chmod 0644 {} \;
-#find . -name "*.h"   -exec chmod 0644 {} \;
-#find . -name "*.png" -exec chmod 0644 {} \;
-
-# If HEAD was specified as version number, read the actual version
-# number from configure.ac and rename the $ORIG_DIR
-# accordingly.
-#
-#MAJOR_RELEASE=7.4
-# remove the third component in $VERSION to get the major version
-MAJOR_RELEASE=$(echo $VERSION|cut -d . -f 1-2)
-TAG=client_release/$MAJOR_RELEASE/$VERSION
-if [ $VERSION = "HEAD" ]; then
-    CFG_AC="configure.ac"
-    if [ ! -r $CFG_AC ]; then
-        echo "I: Could not find $CFG_AC in `pwd`"
-        exit 1
-    fi
-    VERSION="$(grep AC_INIT $CFG_AC | cut -d ',' -f 2 | sed 's/\s*)*//g')"
-    DEBIAN_VERSION="$VERSION+dfsg"
-    echo "Retrieved version '$VERSION' from 'configure.ac'"
-    TAG=master
-fi
-ORIG_DIR="boinc-${DEBIAN_VERSION}${ORIG_SUFFIX}"
-ORIG_ARCHIVE="boinc_${DEBIAN_VERSION}.orig.tar.gz"
-
-# Look for suitable directories where we can place the orig tarball.
-# If none default directory is suitable we use the current working
-# directory.
-#
-DEST_DIR=".."
-for dir in $DIRS
-do
-    if [ "$DEST_DIR" = "." ] && [ -d "$dir" ] && [ -w "$dir" ]; then
-        DEST_DIR="$dir"
-    fi
-done
-if [ "$DEST_DIR" = ".." ]; then
-    echo "W: no suitable destination directory for the tarball found"
-fi
-
-GIT_COMMAND="git archive --worktree-attributes  -v --format tgz -o $DEST_DIR/$ORIG_ARCHIVE -9 --prefix $ORIG_DIR/ $TAG"
-
-# Print the git command invocation and export the BOINC source code
-# from upstream's Subversion repository.
-#
-echo "$GIT_COMMAND"
-$GIT_COMMAND
-
-echo "[ok]"
-
-cat <<EOINSTRUCTIONS
-Now you can easily import the new tarball with the command
-
-  git-import-orig $DEST_DIR/$ORIG_ARCHIVE
-
-EOINSTRUCTIONS
-
-exit 0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-boinc/scripts.git



More information about the pkg-boinc-commits mailing list