Projects
Eulaceura:Factory
python-tinycss2
_service:obs_scm:export-git-snapshot.sh
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:export-git-snapshot.sh of Package python-tinycss2
#!/bin/bash PROJECT=css-parsing-tests REPO=git@github.com:SimonSapin/css-parsing-tests.git githash=$1 if [ -z "$githash" ]; then echo "usage: $0 GITHASH" exit 1 fi shorthash=${githash:0:8} outputfile="${PROJECT}"-$shorthash.tar.gz rm -rf "${PROJECT}"-temp git clone "${REPO}" "${PROJECT}"-temp cd "${PROJECT}"-temp git archive --prefix="${PROJECT}"-$shorthash/ --format=tar ${githash} \ | gzip --stdout > ../$outputfile cd .. rm -rf "${PROJECT}"-temp echo "exported source code in $outputfile"
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