summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-09-17 16:50:04 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-09-17 16:50:04 -0400
commit793bf71147cc791a91b7ff85b108a14561d58dda (patch)
treedd89ed2cd44cb15ff2f8baee80bd2fa8bd5e2d01
parent4c92350505944b6c50f289c2b6aad909b1daf160 (diff)
downloadabslibre-793bf71147cc791a91b7ff85b108a14561d58dda.tar.gz
abslibre-793bf71147cc791a91b7ff85b108a14561d58dda.tar.bz2
abslibre-793bf71147cc791a91b7ff85b108a14561d58dda.zip
libre/your-freedom: rm post-receive-hook.sh
It hasn't been used in a very long time. It has evolved in to the autobuilder: https://git.parabola.nu/server/autobuilder.git/tree/.local/bin/autobuild.sh which is called by this post-receive hook: https://git.parabola.nu/git-meta.git/tree/abslibre/blacklist.git/hooks/post-receive
-rw-r--r--libre/your-freedom/post-receive-hook.sh56
1 files changed, 0 insertions, 56 deletions
diff --git a/libre/your-freedom/post-receive-hook.sh b/libre/your-freedom/post-receive-hook.sh
deleted file mode 100644
index 4da0cd147..000000000
--- a/libre/your-freedom/post-receive-hook.sh
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/bash
-
-# Get this first thing
-newpkgver_date=$(LC_ALL=C date -u +%Y%m%d)
-
-. "$(librelib messages)"
-setup_traps
-lock 9 "${0}.lock" "Waiting for previous run of %q to finish" "$0"
-
-. "$(librelib conf)"
-load_files libretools
-check_vars libretools WORKDIR ABSLIBRERECV ABSLIBRESEND
-
-# Start in the blacklist.git directory
-newgitver=$(git log -n1 --format='%H' master -- blacklist.txt)
-
-# Get the ABSLibre tree
-gitget -f -p "$ABSLIBRESEND" checkout "$ABSLIBRERECV" "$WORKDIR/abslibre"
-cd "$WORKDIR/abslibre/libre/your-freedom"
-
-# Figure out info about the last version of your-freedom
-oldgitver=$(sed -n 's/^_gitver=//p' PKGBUILD)
-oldpkgver=$(sed -n 's/^pkgver=//p' PKGBUILD)
-oldpkgver_date=${oldpkgver%%.*}
-oldpkgver_rel=${oldpkgver#${oldpkgver_date}}; oldpkgver_rel=${oldpkgver_rel#.} oldpkgver_rel=${oldpkgver_rel:-0}
-
-# Make sure we actually have changes
-if [[ "$newgitver" == "$oldgitver" ]]; then
- msg 'blacklist.txt has not changed, nothing to do'
- exit 0
-fi
-
-# Handle doing multiple versions in the same day
-if [[ "$newpkgver_date" == "$oldpkgver_date" ]]; then
- declare -i newpkgver_rel=${oldpkgver_rel}+1
- newpkgver=${newpkgver_date}.${newpkgver_rel}
-else
- newpkgver=${newpkgver_date}
-fi
-
-# Update the PKGBUILD
-sed -i -e 's|^pkgver=.*|pkgver=${newpkgver}|' \
- -e 's|^_gitver=.*|_gitver=${newgitver}|' \
- -e 's|^pkgrel=.*|pkgrel=1|' \
- PKGBUILD
-updpkgsums
-git add PKGBUILD
-git commit -m 'Update libre/your-freedom'
-
-# Build the new package
-makepkg
-librestage libre
-
-# Publish the updates
-git push
-librerelease