mirror of https://github.com/aseprite/aseprite.git
				
				
				
			Add new source distribution in dist.sh without 3rd party code.
This commit is contained in:
		
							parent
							
								
									58f5bbd4c0
								
							
						
					
					
						commit
						2fc722a30b
					
				
							
								
								
									
										22
									
								
								misc/dist.sh
								
								
								
								
							
							
						
						
									
										22
									
								
								misc/dist.sh
								
								
								
								
							| 
						 | 
					@ -12,20 +12,34 @@ if [ ! -f dist.sh ]; then
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
######################################################################
 | 
					######################################################################
 | 
				
			||||||
# Source Distribution (copy all files in the git repository)
 | 
					# Full source distribution (with 3rd party code)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ ! -f $distdir.zip ] ; then
 | 
					if [ ! -f $distdir.zip ] ; then
 | 
				
			||||||
    cd "$dir/.."
 | 
					    cd "$dir/.."
 | 
				
			||||||
    mkdir "$dir/$distdir"
 | 
					    mkdir "$dir/$distdir"
 | 
				
			||||||
    cp --parents $(git grep -l .) "$dir/$distdir"
 | 
					    cp --parents $(git ls-files) "$dir/$distdir"
 | 
				
			||||||
    cd "$dir"
 | 
					    cd "$dir"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #tar vczf $distdir.tar.gz $distdir
 | 
					 | 
				
			||||||
    #tar vcjf $distdir.tar.bz2 $distdir
 | 
					 | 
				
			||||||
    $zip $zip_recursive_flag $distdir.zip $distdir
 | 
					    $zip $zip_recursive_flag $distdir.zip $distdir
 | 
				
			||||||
    rm -fr $distdir
 | 
					    rm -fr $distdir
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#####################################################################
 | 
				
			||||||
 | 
					# Minimal source distribution (without 3rd party code).
 | 
				
			||||||
 | 
					# Used to compile ASEPRITE with shared libraries.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if [ ! -f $distdir.tar.xz ] ; then
 | 
				
			||||||
 | 
					    cd "$dir/.."
 | 
				
			||||||
 | 
					    mkdir "$dir/$distdir"
 | 
				
			||||||
 | 
					    cp --parents $(git ls-files | grep -v -e ^third_party | grep -v -e ^src/allegro) "$dir/$distdir"
 | 
				
			||||||
 | 
					    cp --parents $(git ls-files third_party/loadpng) "$dir/$distdir"
 | 
				
			||||||
 | 
					    cp --parents third_party/CMakeLists.txt "$dir/$distdir"
 | 
				
			||||||
 | 
					    cd "$dir"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    tar vcfJ $distdir.tar.xz $distdir
 | 
				
			||||||
 | 
					    rm -fr $distdir
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
######################################################################
 | 
					######################################################################
 | 
				
			||||||
# Files for binary distributions
 | 
					# Files for binary distributions
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue