From 88c540263d63153497454dace6363d3cfb3befbf Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Sun, 12 Jan 2014 22:33:56 +0800 Subject: [PATCH] add scripts/touch_pkg_with_newer_sig --- scripts/touch_pkg_with_newer_sig | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 scripts/touch_pkg_with_newer_sig diff --git a/scripts/touch_pkg_with_newer_sig b/scripts/touch_pkg_with_newer_sig new file mode 100755 index 0000000..ca73249 --- /dev/null +++ b/scripts/touch_pkg_with_newer_sig @@ -0,0 +1,9 @@ +#!/bin/bash -e + +for f; do + p=${f%.sig} + if [[ -f $p && $f -nt $p ]]; then + echo "touching $p." + touch "$p" + fi +done