This commit is contained in:
Vincent Riquer 2013-10-06 02:46:11 +02:00
parent 4cda6e0f7b
commit 5cfc100c46

View File

@ -43,6 +43,7 @@ do
source "$function"
done
args="$@"
while [ -n "$1" ]
do
opt="$1"
@ -194,11 +195,27 @@ then
updateTags
fi
echo 'SELECT IFNULL(
(SELECT last_seen FROM source_files ORDER BY last_seen DESC LIMIT 1),
0);' >&3
read -u4 lastupdate
if ! [[ "$output" == - ]]
then
exec > "$output"
fi
cat <<-EOBrag
# Generated by AtOM's createindex toy.
# https://gitorious.org/atom
# (C) 2012-2013 Vincent Riquer (GPL-3)
#
# $0 $args
#
# Last database update: $(date -d @$lastupdate +'%x %X')
EOBrag
printDate() {
date -d"@$1" +"${timeformat:-%x %X}"
}