mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-11-03 21:00:14 +00:00 
			
		
		
		
	
		
			
	
	
		
			26 lines
		
	
	
		
			438 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
		
		
			
		
	
	
			26 lines
		
	
	
		
			438 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| 
								 | 
							
								#!/bin/bash
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								TREE=`date +"%Y%m%d-%H%M"`
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								if ! [ -d ./.tree ] ; then
							 | 
						||
| 
								 | 
							
									echo creating .tree directory...
							 | 
						||
| 
								 | 
							
									mkdir .tree
							 | 
						||
| 
								 | 
							
									attrib +H .tree
							 | 
						||
| 
								 | 
							
								fi
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								echo building current tree...
							 | 
						||
| 
								 | 
							
								tree -a -s --sort name -I '.tree*' > ./.tree/$TREE
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								echo setting LAST/CURRENT states...
							 | 
						||
| 
								 | 
							
								[ -e ./.tree/CURRENT ] && cp ./.tree/CURRENT ./.tree/LAST
							 | 
						||
| 
								 | 
							
								cp ./.tree/$TREE ./.tree/CURRENT
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								if [ -e ./.tree/LAST ] ; then
							 | 
						||
| 
								 | 
							
									echo diff...
							 | 
						||
| 
								 | 
							
									# XXX
							 | 
						||
| 
								 | 
							
									diff ./.tree/LAST ./.tree/CURRENT
							 | 
						||
| 
								 | 
							
								fi
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 |