Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:smarty12
dcadec
get-from-git.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File get-from-git.sh of Package dcadec
#!/bin/bash NAME=dcadec # this is a huge hunk of stuff, so reuse the local repo if possible if [ -d ${NAME}/.git ]; then cd ${NAME} git pull cd .. else set -e git clone https://github.com/foo86/dcadec.git set +e fi TOPDIR=$(pwd) cd ${NAME} LINE=$(git show --format=format:"%h %ai"|head -n 1) set -- $LINE REV=$1 DATE=$2 VER=${DATE//-/.} set -e git archive --prefix=${NAME}-${VER}/ -o $TOPDIR/${NAME}-${VER}.tar master cd $TOPDIR bzip2 -9 ${NAME}-${VER}.tar sed -i "s/^Version:.*/Version: ${VER}/" ${NAME}.spec osc vc -m "Update to $REV ($DATE)"
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