Projects
osmocom:latest
eclipse-titan
update.sh
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File update.sh of Package eclipse-titan (Revision 2)
Currently displaying revision
2
,
Show latest
#!/bin/sh -e # SPDX-License-Identifier: GPL-3.0-or-later # Copyright 2021 sysmocom - s.f.m.c. GmbH # Author: Oliver Smith old_dsc="$(find -maxdepth 1 -name 'eclipse-titan_*.dsc')" old_ver="$(grep '^Version: ' "$old_dsc" | cut -d ':' -f 2 | xargs | cut -d - -f 1)" new_ver="$1" clean_up_dirs() { rm -rf "eclipse-titan-$old_ver" \ "eclipse-titan-$new_ver" \ "eclipse-titan-$new_ver.orig" } clean_up_new_version() { rm -f "eclipse-titan_$new_ver.orig" \ "eclipse-titan_$new_ver-1.debian.tar.xz" \ "eclipse-titan_$new_ver-1.dsc" \ "eclipse-titan_$new_ver-1_source.buildinfo" \ "eclipse-titan_$new_ver-1_source.changes" } if [ -z "$new_ver" ]; then echo "usage: update.sh NEW_VERSION" exit 1 fi echo ":: upgrade from $old_ver to $new_ver" echo ":: clean up previous run" clean_up_dirs clean_up_new_version tarball="titan.core-$new_ver.tar.bz2" if ! [ -e "$tarball" ]; then echo ":: download $tarball" wget "https://gitlab.eclipse.org/eclipse/titan/titan.core/-/archive/$new_ver/$tarball" fi echo ":: extract $old_dsc" dpkg-source -x "$old_dsc" echo ":: update sourcedir with $tarball" cd "eclipse-titan-$old_ver" uupdate -v "$new_ver" ../"$tarball" echo ":: now modify eclipse-titan-$new_ver (e.g. adjust changelog) and press return when done" read foo echo ":: build new source package" cd "../eclipse-titan-$new_ver" dpkg-buildpackage -S -uc -us -d cd ".." echo ":: clean up extracted dirs" clean_up_dirs echo ":: done! remove eclipse-titan_$old_ver* when this is ready and submit it to obs"
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
.