Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/tools/build_config/ubuntu_release.sh
169674 views
1
#!/bin/bash
2
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
# Copyright (C) 2008-2025 German Aerospace Center (DLR) and others.
4
# This program and the accompanying materials are made available under the
5
# terms of the Eclipse Public License 2.0 which is available at
6
# https://www.eclipse.org/legal/epl-2.0/
7
# This Source Code may also be made available under the following Secondary
8
# Licenses when the conditions for such availability set forth in the Eclipse
9
# Public License 2.0 are satisfied: GNU General Public License, version 2
10
# or later which is available at
11
# https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13
14
# @file ubuntu_release.sh
15
# @author Michael Behrisch
16
# @date 2025-05-08
17
18
UBUNTU=$(grep UBUNTU_CODENAME /etc/os-release)
19
RELEASE=${UBUNTU:16}
20
export DEBEMAIL="Michael Behrisch <[email protected]>"
21
22
cp -a build_config/debian debian
23
dch -d
24
dch -r $RELEASE
25
dpkg-buildpackage -S
26
HEADER=$(head -1 debian/changelog)
27
for ubuntu_version in xenial bionic focal jammy oracular plucky; do
28
NEW_HEADER=$(echo $HEADER | sed "s/. $RELEASE/~$ubuntu_version\) $ubuntu_version/")
29
sed -i "1 s/.*/$NEW_HEADER/" debian/changelog
30
dpkg-buildpackage -S
31
done
32
33