summaryrefslogtreecommitdiff
path: root/yf-update
blob: c65fc09b1d81559615314dfcf1c80df3ea17c31a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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