From 109eb5df172dc3c1bd04dbba04044f11b2406883 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 26 May 2014 13:40:18 +0400 Subject: [PATCH] added an archive import script... Signed-off-by: Alex A. Naanou --- scripts/sync-flash.sh | 30 ++++++++++++++++++++++++++++++ ui/data4.js | 2 ++ 2 files changed, 32 insertions(+) create mode 100755 scripts/sync-flash.sh diff --git a/scripts/sync-flash.sh b/scripts/sync-flash.sh new file mode 100755 index 00000000..dbe301e9 --- /dev/null +++ b/scripts/sync-flash.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +DATE=`date +%Y%m%d` +COUNT=1 + +# XXX do a real three digit count... +DIR="./- ${DATE}.00${COUNT}/" + +while [ -e "$DIR" ] ; do + COUNT=$((COUNT+1)) + DIR="./- ${DATE}.00${COUNT}/" +done + + + +echo "Creating directory: $DIR" +mkdir "$DIR" +echo "Creating directory: done." + + + +echo "Copying files from $1..." +cp -Rpfv /mnt/${1}/* "$DIR" +echo "Copying files: done." + + + +echo "Building archive..." +./process-archive.sh "$DIR" +echo "Building archive: done." diff --git a/ui/data4.js b/ui/data4.js index 9b0fb774..427716d0 100755 --- a/ui/data4.js +++ b/ui/data4.js @@ -1093,6 +1093,8 @@ var DataPrototype = { // NOTE: if either start or end is not given this can only align // downward, needing a ribbon above the target to infer the // values. + // + // XXX test alignToRibbon: function(ribbon, start, end){ ribbon = ribbon == null ? this.base : this.getRibbon(ribbon)