All pastes #838548 Raw Edit

leleobhz

public shellscript v1 · immutable
#838548 ·published 2007-12-30 13:54 UTC
rendered paste body
#!/bin/basheval `gpg-agent --daemon`repo_upload_dir=~/TRABALHO/DEVELOPMENT/COMPILACOES/UBUNTU/repository/repo_upload_dir#for i in `echo "dapper"`; dofor i in `echo "dapper edgy feisty gutsy"`; dobase_dir=~/TRABALHO/DEVELOPMENT/COMPILACOES/UBUNTU/repository/$iif [[ ! -d $base_dir ]]; then        mkdir -p $base_dirfipool_dir=$base_dir/pooldistro=$ipackage_dir=~/TRABALHO/DEVELOPMENT/COMPILACOES/UBUNTU/chroot/$distro/final/eval `gpg-agent --daemon`if [[ ! -d $pool_dir ]]; then	mkdir -p $pool_dirfiif [[ ! -d $pool_dir/override ]]; then        mkdir -p $pool_dir/overridefiif [[ ! -d $pool_dir/lists ]]; then        mkdir -p $pool_dir/listsfiif [[ $i == "dapper" ]]; then	distro_descr="Dapper"elif [[ $i == "edgy" ]]; then	distro_descr="Edgy"elif [[ $i == "feisty" ]]; then	distro_descr="Feisty"elif [[ $i == "gutsy" ]]; then	distro_descr="Gutsy"fiif [[ ! -d $pool_dir/conf ]]; then	mkdir -p $pool_dir/conf		if [[ ! -f $pool_dir/conf/distributions ]]; then		cat <<EOF > $pool_dir/conf/distributionsOrigin: UbuntuLabel: Ubuntu $distro_descrSuite: stableCodename: $iVersion: 3.0Architectures: i386 sourceComponents: mainUDebComponents: mainDescription: Backported or new packages for $distro_descr, made by leleobhzSignWith: yes#DebOverride: override#UDebOverride: override#DscOverride: srcoverrideEOF	fififunction add_to_pool () {	echo $1 ; /usr/bin/reprepro -b "$pool_dir" include "$distro" $1}function acha_pacote () {	distro=$1	package_dir=~/TRABALHO/DEVELOPMENT/COMPILACOES/UBUNTU/chroot/$distro/final/		for i in `find $package_dir -iname "*.changes" -print`; do 		echo -n "`basename $i` "		/usr/bin/reprepro -b "$pool_dir" include "$distro" $i	done			#find $package_dir -iname "*.changes" -exec echo {} ; /usr/bin/reprepro -b "$pool_dir" include "$distro" {} \;}function acha_via_includedeb () {	distro=$1	package_dir=~/TRABALHO/DEVELOPMENT/COMPILACOES/UBUNTU/chroot/$distro/final/	find $package_dir -iname "*.deb" -exec /usr/bin/reprepro -b "$pool_dir" includedeb "$distro" {} \;}acha_pacote $i /usr/bin/reprepro -b "$pool_dir" dumpunreferenced/usr/bin/reprepro -b "$pool_dir" deleteunreferenced/usr/bin/reprepro -b "$pool_dir" check/usr/bin/reprepro -b "$pool_dir" checkpool/usr/bin/reprepro -b "$pool_dir" checkpool fastif [[ -n `echo $@ | grep --regexp=-s` ]]; then#	if [[ -z `mount | grep ftp.leleobhz.org` ]]; then#		mount /media/ftp.leleobhz.org#	fi#	if [[ ! -d $base_dir/repo_to_upload/$distro ]]; then#        	mkdir -p $base_dir/repo_to_upload/$distro#	fi#	rsync -rltovDp $base_dir/pool/ /media/ftp.leleobhz.org/www/ubuntu/$distro	mkdir -p $repo_upload_dir/$distro	rsync -rltovDp $base_dir/pool/ $repo_upload_dir/$distro#	rsync -e "sftp -oPort=33988" -av $repo_upload_dir/ leleo@ftp.leleobhz.org:/www/ubuntu/fidone