diff options
-rw-r--r-- | .gitignore | 5 | ||||
-rwxr-xr-x | yf-update | 17 |
2 files changed, 20 insertions, 2 deletions
@@ -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 + + + |