summaryrefslogtreecommitdiff
path: root/yf-update
diff options
context:
space:
mode:
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..9c2131e
--- /dev/null
+++ b/yf-update
@@ -0,0 +1,18 @@
+#!/bin/bash
+source $(dirname $0)/local_config
+source $(dirname $0)/config
+source $(dirname $0)/libremessages
+
+blacklist_mtime=$(printf "%.0f" $(find ${blacklist} -printf "%T@"))
+last_bl_mtime=$(cat $(dirname $0)/yftime)
+
+if [ $blacklist_mtime -gt $last_bl_mtime ]; then
+ pushd $(dirname $0)/yf
+ makepkg -f
+ find . -name "*${PKGEXT}" -exec mv {} ${STAGING}/libre \;
+ popd
+ echo ${blacklist_mtime} > $(dirname $0)/yftime
+ msg2 "built and staged"
+else
+ msg2 "nothing to do"
+fi