added an archive import script...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-05-26 13:40:18 +04:00
parent c51ddd78d4
commit 109eb5df17
2 changed files with 32 additions and 0 deletions

30
scripts/sync-flash.sh Executable file
View File

@ -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."

View File

@ -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)