forked from mirrors/gecko-dev
		
	 520f9865db
			
		
	
	
		520f9865db
		
	
	
	
	
		
			
			Don't build ucl when building upx, Debian stretch has a recent enough version. In fact, the last upstream version doesn't build with GCC in Debian stretch (http://bugs.debian.org/811707) --HG-- extra : rebase_source : aae67773b9dd3b99f6ddf9ab7f59a628037e6925
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			536 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			536 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/bash
 | |
| set -x -e -v
 | |
| 
 | |
| WORKSPACE=$HOME/workspace
 | |
| HOME_DIR=$WORKSPACE/build
 | |
| INSTALL_DIR=$WORKSPACE/upx
 | |
| UPLOAD_DIR=$HOME/artifacts
 | |
| 
 | |
| mkdir -p $INSTALL_DIR/bin
 | |
| 
 | |
| cd $WORKSPACE
 | |
| 
 | |
| git clone -n https://github.com/upx/upx.git upx-clone
 | |
| cd upx-clone
 | |
| git checkout d31947e1f016e87f24f88b944439bbee892f0429 # Asserts integrity of the clone (right?)
 | |
| git submodule update --init --recursive
 | |
| cd src
 | |
| make -j$(nproc)
 | |
| cp upx.out $INSTALL_DIR/bin/upx
 | |
| 
 | |
| # --------------
 | |
| 
 | |
| cd $WORKSPACE
 | |
| tar caf upx.tar.xz upx
 | |
| 
 | |
| mkdir -p $UPLOAD_DIR
 | |
| cp upx.tar.* $UPLOAD_DIR
 |