Projects
Multimedia
handbrake
checkout.sh
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File checkout.sh of Package handbrake (Revision 14)
Currently displaying revision
14
,
Show latest
#!/bin/bash rev="$1" if [ -z "$rev" ]; then rev=$(perl -ne 'print $1,"\n" if /^\s*%define\s+rev\s+(\d+)\s*(#.*)?$/' handbrake.spec) [ -n "$rev" ] || { echo "ERROR: failed to determine SVN revision from grepping handbrake.spec" >&2; exit 1; } fi WDIR= onExit() { [ -n "$WDIR" ] && /bin/rm -rf "$WDIR"; } WDIR=$(/bin/mktemp -d '/tmp/checkout-handbrake.XXXXXXXX') set -e TARGET="$PWD/HandBrake-svn${rev}.tar.bz2" cd "$WDIR" svn export -r"${rev}" svn://svn.handbrake.fr/HandBrake/trunk "HandBrake-svn${rev}" tar cf "${TARGET%.*}" "HandBrake-svn${rev}" case ${TARGET##*/} in *.bz2) bzip2 -9 "${TARGET%.*}" ;; *.gz) gzip -9 "${TARGET%.*}" ;; *) echo "ERROR: unknown compression for target suffix ${TARGET##*/}" >&2; exit 1; esac
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.