mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 19:00:09 +00:00 
			
		
		
		
	added an archive import script...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									c51ddd78d4
								
							
						
					
					
						commit
						109eb5df17
					
				
							
								
								
									
										30
									
								
								scripts/sync-flash.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										30
									
								
								scripts/sync-flash.sh
									
									
									
									
									
										Executable 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." | ||||||
| @ -1093,6 +1093,8 @@ var DataPrototype = { | |||||||
| 	// NOTE: if either start or end is not given this can only align 
 | 	// NOTE: if either start or end is not given this can only align 
 | ||||||
| 	// 		downward, needing a ribbon above the target to infer the 
 | 	// 		downward, needing a ribbon above the target to infer the 
 | ||||||
| 	// 		values.
 | 	// 		values.
 | ||||||
|  | 	//
 | ||||||
|  | 	// XXX test
 | ||||||
| 	alignToRibbon: function(ribbon, start, end){ | 	alignToRibbon: function(ribbon, start, end){ | ||||||
| 		ribbon = ribbon == null ? this.base : this.getRibbon(ribbon) | 		ribbon = ribbon == null ? this.base : this.getRibbon(ribbon) | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user