Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lnussel:win32
ioquake3-win32
fetchpackages_api
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fetchpackages_api of Package ioquake3-win32
#!/bin/bash # fetch ioq3 packages from build service api set -e shopt -s extglob shopt -s nullglob : ${tofetch:="1 2 3 4"} pkgs_1="home:lnussel:ioquake3:installer ioquake3 openSUSE_11.1 x86_64" src_1=1 pkgs_2="home:lnussel:ioquake3:installer ioquake3 openSUSE_11.1 i586" pkgs_3="home:lnussel:win32 ioquake3-win32 win32 i586" pkgs_4="home:lnussel:ioquake3 ioquake3 openSUSE_11.1 ppc" api_4="https://api.suse.de" lsonly="" if [ "$1" = '-l' ]; then lsonly=1 fi here=$PWD for i in $tofetch; do eval cfg=\$pkgs_$i eval api=\$api_$i eval src=\$src_$i set -- $cfg prj="$1" pkg="$2" repo="$3" arch="$4" oscargs=() cmdargs=() if [ -n "$api" ]; then oscargs[${#oscargs[@]}]="-A" oscargs[${#oscargs[@]}]="$api" fi if [ "$src" = '1' ]; then cmdargs[${#cmdargs[@]}]="--sources" fi if [ -n "$lsonly" ]; then echo "+++ $cfg" osc "${oscargs[@]}" ls -b -r "$repo" -a "$arch" "$prj" "$pkg" else osc "${oscargs[@]}" getbinaries "${cmdargs[@]}" "$prj" "$pkg" "$repo" "$arch" for i in !(*.src.rpm|*-setup-*.rpm|*.run|*.exe|*.asc|README); do rm -v "$i" done fi done
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor