From c991efcdf97748614c99dc23bf8f1ecbab99a247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Ismael=20Haase=20Hern=C3=A1ndez?= Date: Mon, 13 Jun 2011 08:37:38 -0500 Subject: fix issue 53 --- yf-update | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 yf-update (limited to 'yf-update') 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 + + + -- cgit v1.2.3-2-g168b From af00a528573bb210260e20a0fa27a0a0a393244a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Ismael=20Haase=20Hern=C3=A1ndez?= Date: Mon, 13 Jun 2011 08:12:18 -0700 Subject: * Fixed issue131 * Fixed issue53 --- yf-update | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'yf-update') diff --git a/yf-update b/yf-update index c65fc09..9c2131e 100755 --- a/yf-update +++ b/yf-update @@ -1,17 +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 - rsync -L ./*.${PKGEXT} ${STAGING}/libre + 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 - - - -- cgit v1.2.3-2-g168b From 6a093f1dc6bd5398115544dd229b520f9432e122 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 31 Dec 2013 15:49:06 -0500 Subject: use `readlink -e` on $0 --- yf-update | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'yf-update') diff --git a/yf-update b/yf-update index 9c2131e..ee5d3eb 100755 --- a/yf-update +++ b/yf-update @@ -1,17 +1,17 @@ #!/bin/bash -source $(dirname $0)/local_config -source $(dirname $0)/config -source $(dirname $0)/libremessages +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=$(cat $(dirname $0)/yftime) +last_bl_mtime=$(< "$(dirname "$(readlink -e "$0")")/yftime") if [ $blacklist_mtime -gt $last_bl_mtime ]; then - pushd $(dirname $0)/yf + pushd "$(dirname "$(readlink -e "$0")")/yf" makepkg -f find . -name "*${PKGEXT}" -exec mv {} ${STAGING}/libre \; popd - echo ${blacklist_mtime} > $(dirname $0)/yftime + echo ${blacklist_mtime} > "$(dirname "$(readlink -e "$0")")/yftime" msg2 "built and staged" else msg2 "nothing to do" -- cgit v1.2.3-2-g168b