diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-17 21:28:35 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-17 21:28:35 -0400 |
commit | e3d6871deb5c448b5856ffc25e2c4e55c77f719e (patch) | |
tree | ec3c2425c65c3cd547e6b2207bfcf2b1b67d873b | |
parent | 64a9e2fcdeaf99ae982270743c6cca4dd5314b5c (diff) |
rm get-repos (obsolete) and git-pbs (never used/testing)
-rwxr-xr-x | get-repos | 58 | ||||
-rwxr-xr-x | git-pbs | 44 |
2 files changed, 0 insertions, 102 deletions
diff --git a/get-repos b/get-repos deleted file mode 100755 index b98d601..0000000 --- a/get-repos +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/bash -# Gets repo databases and updates parabolaweb -# Note: It works remotely because our parabolaweb server and repo server are -# two different hosts - -trap_exit() { - echo - error "$@" - exit 1 -} - -source "$(dirname "$(readlink -e "$0")")/config" -source "$(dirname "$(readlink -e "$0")")/libremessages" - -# From makepkg -set -E - -trap 'trap_exit "$(gettext "TERM signal caught. Exiting...")"' TERM HUP QUIT -trap 'trap_exit "$(gettext "Aborted by user! Exiting...")"' INT -trap 'trap_exit "$(gettext "An unknown error has occurred. Exiting...")"' ERR - -TMPDIR="$(mktemp -dt "${0##*/}.XXXX")" -DBLIST=() - -# Repos -for _repo in "${PKGREPOS[@]}"; do - for _arch in "${ARCHES[@]}"; do - DBLIST+=("http://repo.parabolagnulinux.org/${_repo}/os/${_arch}/${_repo}${FILESEXT}") - done -done - -# Get them all -msg "Retrieving ${#DBLIST[@]} databases" -wget --directory-prefix=${TMPDIR} \ - --no-verbose \ - --force-directories \ - --no-host-directories \ - "${DBLIST[@]}" || true -# Always return true, some databases are expect to be missing - -# Create the arches regexp arch1|arch2 -arch_re="$(echo "(${ARCHES[@]} i586)" | tr ' ' '|')" - -msg "Adding to parabolaweb" -find "${TMPDIR}" -iname "*${FILESEXT}" | while read _db; do - _arch=$(echo "${_db}" | egrep -o "${arch_re}") - - if [ -z "${_arch}" ]; then - error "Can't find database architecture: ${_db}" - continue - fi - - "${WEB_DIR}"/manage.py reporead "${_arch}" "${_db}" || true -done - -rm -r ${TMPDIR} - -exit $? diff --git a/git-pbs b/git-pbs deleted file mode 100755 index b815863..0000000 --- a/git-pbs +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash - -_pkg=$1 - -mkdir -p $_pkg -pushd $_pkg - - -if [ ! -d .git ]; then -# Start a git repo for the package -# Add the remote origin -# Pull the package branch onto an unmodified branch - git init - git remote add arch git://projects.archlinux.org/svntogit/packages.git - -# Export the repository - touch .git/git-daemon-export-ok - -# Pass the -b flag to checkout to create the branches - extra="-b" -fi - -git checkout ${extra} upstream -git pull arch packages/$_pkg - -# Move PKGBUILD and files to the basedir -# Remove everything else from the repo -git checkout ${extra} master - -# This produces a lot of merging conflicts -git merge upstream - -# This apparently solves them -git mv trunk/* . -git rm -rf repos - -# Remove the actual files -rm -rf trunk repos - -# Commit everything -git commit -a -m "Converted to PBS" - -# Return to the repo -popd >/dev/null |