Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:ars3n1y
tdlib-purple
newversion.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File newversion.sh of Package tdlib-purple
#!/bin/sh if test -z "$1"; then echo "Version required as an argument" exit 1 fi NAME=tdlib-purple VERSION=$1 TAR="$NAME"_$VERSION.orig.tar rm -f $TAR.gz $TAR.xz wget -O $TAR.gz https://github.com/ars3niy/tdlib-purple/archive/v$VERSION.tar.gz || (rm -f $TAR.gz; exit 1) gunzip $TAR.gz xz $TAR # Updating RPM spec: one line sed "/^Version:/s/.*/Version: $VERSION/" -i $NAME.spec # Fucking debian rm -rf $NAME-$VERSION tar -xf $TAR.xz tar -C $NAME-$VERSION -xf "$NAME"_*.debian.tar.xz cd $NAME-$VERSION/debian debchange -v $VERSION-1 -u low -D stable -m "Version $VERSION" || exit 1 cd .. dpkg-source -b . || exit 1 cd .. rm -rf $NAME-$VERSION find . -maxdepth 1 -name \*.dsc -a ! -name "$NAME"_$VERSION\* -exec osc rm {} \; find . -maxdepth 1 -name \*.debian.tar.xz -a ! -name "$NAME"_$VERSION\* -exec osc rm {} \; osc add "$NAME"_$VERSION*.dsc osc add "$NAME"_$VERSION*.debian.tar.xz # Updating source archive find . -maxdepth 1 -name \*.orig.tar.xz -a ! -name "$NAME"_$VERSION\* -exec osc rm {} \; osc add "$NAME"_$VERSION*.orig.tar.xz
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