mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-04 04:46:15 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			434 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			434 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
script_base_dir=`dirname $0`
 | 
						|
 | 
						|
if [ $# != 2 ]; then
 | 
						|
    echo "Usage: $0 DESTINATION DISTRIBUTIONS"
 | 
						|
    echo " e.g.: $0 repositories/ 'fedora centos'"
 | 
						|
    exit 1
 | 
						|
fi
 | 
						|
 | 
						|
DESTINATION=$1
 | 
						|
DISTRIBUTIONS=$2
 | 
						|
 | 
						|
run()
 | 
						|
{
 | 
						|
    "$@"
 | 
						|
    if test $? -ne 0; then
 | 
						|
	echo "Failed $@"
 | 
						|
	exit 1
 | 
						|
    fi
 | 
						|
}
 | 
						|
 | 
						|
for distribution in ${DISTRIBUTIONS}; do
 | 
						|
    for dir in ${DESTINATION}${distribution}/*/*; do
 | 
						|
	test -d $dir &&	run createrepo $dir
 | 
						|
    done;
 | 
						|
done
 |