summaryrefslogtreecommitdiff
path: root/yf-update
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-17 19:24:48 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-17 19:24:48 -0400
commit827e305df0f565d7da844684290323a75bf081a6 (patch)
tree9753469d58a11b434d8da109c00a23c0e721a52d /yf-update
parentd42f5c6ab02a861ef548ae12fe403f61e2b02e4f (diff)
parent1d5db10302f0a0517c022fae4b6a66862eb7e2cf (diff)
Merge branch 'lukeshu/archlinux+xbs+merge-parabola' into lukeshu/archlinux+xbs+db-import
Diffstat (limited to 'yf-update')
-rwxr-xr-xyf-update18
1 files changed, 18 insertions, 0 deletions
diff --git a/yf-update b/yf-update
new file mode 100755
index 0000000..ee5d3eb
--- /dev/null
+++ b/yf-update
@@ -0,0 +1,18 @@
+#!/bin/bash
+source "$(dirname "$(readlink -e "$0")")/local_config"
+source "$(dirname "$(readlink -e "$0")")/config"
+source "$(dirname "$(readlink -e "$0")")/libremessages"
+
+blacklist_mtime=$(printf "%.0f" $(find ${blacklist} -printf "%T@"))
+last_bl_mtime=$(< "$(dirname "$(readlink -e "$0")")/yftime")
+
+if [ $blacklist_mtime -gt $last_bl_mtime ]; then
+ pushd "$(dirname "$(readlink -e "$0")")/yf"
+ makepkg -f
+ find . -name "*${PKGEXT}" -exec mv {} ${STAGING}/libre \;
+ popd
+ echo ${blacklist_mtime} > "$(dirname "$(readlink -e "$0")")/yftime"
+ msg2 "built and staged"
+else
+ msg2 "nothing to do"
+fi