* Add bzip2 and xz support to nix-copy-closure.
This commit is contained in:
		
							parent
							
								
									5bbd693cae
								
							
						
					
					
						commit
						d5ac78e0d6
					
				
					 2 changed files with 17 additions and 4 deletions
				
			
		|  | @ -8,7 +8,7 @@ use Nix::CopyClosure; | |||
| 
 | ||||
| if (scalar @ARGV < 1) { | ||||
|     print STDERR <<EOF | ||||
| Usage: nix-copy-closure [--from | --to] HOSTNAME [--sign] [--gzip] PATHS... | ||||
| Usage: nix-copy-closure [--from | --to] HOSTNAME [--sign] [--gzip] [--bzip2] [--xz] PATHS... | ||||
| EOF | ||||
|     ; | ||||
|     exit 1; | ||||
|  | @ -43,6 +43,14 @@ while (@ARGV) { | |||
|         $compressor = "gzip"; | ||||
|         $decompressor = "gunzip"; | ||||
|     } | ||||
|     elsif ($arg eq "--bzip2") { | ||||
|         $compressor = "bzip2"; | ||||
|         $decompressor = "bunzip2"; | ||||
|     } | ||||
|     elsif ($arg eq "--xz") { | ||||
|         $compressor = "xz"; | ||||
|         $decompressor = "xz -d"; | ||||
|     } | ||||
|     elsif ($arg eq "--from") { | ||||
|         $toMode = 0; | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue