Projects
Mega:24.03:SP1:Everything
xorg-x11-proto-devel
_service:tar_scm:make-git-snapshot.sh
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:make-git-snapshot.sh of Package xorg-x11-proto-devel
#!/bin/sh proto=$1 branch=$2 if [ -z "$proto" ]; then echo "Usage: $0 <proto name> [<branch>]" exit 1 fi dirname=$proto-$( date +%Y%m%d ) rm -rf $dirname git clone git://git.freedesktop.org/git/xorg/proto/$proto $dirname cd $dirname if [ -z "$branch" ]; then git log | head -1 else git checkout $branch fi sha=`git rev-list --max-count=1 --abbrev-commit HEAD` git repack -a -d cd .. # append sha to dirname mv $dirname $dirname-git$sha dirname=$dirname-git$sha tarball=$dirname.tar.bz2 tar jcf $tarball $dirname rm -rf $dirname echo "$tarball is now available"
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
.
浙ICP备2022010568号-2