Debian Codegraph @

debian/bin/import-new-release

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 set -euE
3 set -o pipefail
4
5 PACKAGE=lvm2
6 VERSION=$1
7
8 errorscip-shell shell lvm2 2.03.31-2 error().() {
9 echoscip-shell system . . echo. "$@" >&2
10 exit 1
11 }
12
13 TMP=
14 clean_on_exitscip-shell shell lvm2 2.03.31-2 clean_on_exit().() {
15 for path in "${TMP}"; do
16 testscip-shell system . . test. -z "${path}" || rmscip-shell system . . rm. -rf "${path}"
17 done
18 }
19 trap clean_on_exit EXIT INT TERM
20 TMP="$(mktempscip-shell system . . mktemp. -d --suffix=.lvm2.orig)"
21
22 (
23 cd $TMP
24 curlscip-shell system . . curl. --fail -O https://sourceware.org/pub/lvm2/LVM2.${VERSION}.tgz
25 curlscip-shell system . . curl. --fail -O https://sourceware.org/pub/lvm2/LVM2.${VERSION}.tgz.asc
26 gpgscip-shell system . . gpg. --verify LVM2.${VERSION}.tgz.asc
27 gunzipscip-shell system . . gunzip. -c LVM2.${VERSION}.tgz | xzscip-shell system . . xz. > lvm2_${VERSION}.orig.tar.xz
28 )
29
30 pristine-lfs commit ${TMP}/lvm2_${VERSION}.orig.tar.xz
31
32 gitscip-shell system . . git. clone -b upstream . ${TMP}/upstream
33
34 (
35 cd ${TMP}/upstream
36 gitscip-shell system . . git. rm -rfq .
37 tarscip-shell system . . tar. --strip-components=1 -xaf ${TMP}/lvm2_${VERSION}.orig.tar.xz
38 gitscip-shell system . . git. add -fA
39 gitscip-shell system . . git. commit -m "Import lvm2_${VERSION}.orig.tar"
40 gitscip-shell system . . git. tag upstream/${VERSION}
41 gitscip-shell system . . git. push origin refs/heads/upstream refs/tags/upstream/${VERSION}
42 )
43
44 gitscip-shell system . . git. merge --no-ff --no-commit -m "Import ${VERSION}" upstream/${VERSION} || :
45 dchscip-shell system . . dch. -v ${VERSION}-1 "New upstream release."
46 gitscip-shell system . . git. add debian/changelog