summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore5
-rwxr-xr-xyf-update17
2 files changed, 20 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 45688ab..ee8bbb8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,5 +3,6 @@
local_config
/config.local
test/packages/*/*.pkg.tar.?z
-#*#
-.#* \ No newline at end of file
+\#*#
+.#*
+yftime \ No newline at end of file
diff --git a/yf-update b/yf-update
new file mode 100755
index 0000000..c65fc09
--- /dev/null
+++ b/yf-update
@@ -0,0 +1,17 @@
+#!/bin/bash
+source $(dirname $0)/local_config
+source $(dirname $0)/config
+
+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
+ rsync -L ./*.${PKGEXT} ${STAGING}/libre
+ popd
+ echo ${blacklist_mtime} > $(dirname $0)/yftime
+fi
+
+
+