Added minimal git-snapshot script
This commit is contained in:
		
					parent
					
						
							
								d47a0de162
							
						
					
				
			
			
				commit
				
					
						75fe308b50
					
				
			
		
					 1 changed files with 12 additions and 0 deletions
				
			
		
							
								
								
									
										12
									
								
								git-snapshot.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										12
									
								
								git-snapshot.sh
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
					@ -0,0 +1,12 @@
 | 
				
			||||||
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					# Nico Schottelius
 | 
				
			||||||
 | 
					# Date: Di Okt 18 00:02:17 CEST 2005
 | 
				
			||||||
 | 
					# Last Changed: -
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					GIT_DIR=~/git/cinit
 | 
				
			||||||
 | 
					OUTPUT=/home/user/nico/www/org/schottelius/linux/cinit/archives/cinit-snapshot.tar.bz2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set -e
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					cd "$GIT_DIR"
 | 
				
			||||||
 | 
					git-tar-tree $(git-log | head -n1 | awk '{ print $2 }') | bzip2 -9 -c > "$OUTPUT"
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue