File: README.source.md

package info (click to toggle)
php-pear 1%3A1.10.16%2Bsubmodules%2Bnotgz-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 18,576 kB
  • sloc: php: 52,994; ansic: 39,986; xml: 33,278; yacc: 677; pascal: 452; makefile: 122; sh: 114
file content (50 lines) | stat: -rw-r--r-- 1,477 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# New upstream version

:fire: **Warning**: Ensure you don't loose local modifications while doing `git reset --hard` below.

```shell
# Add upstream Git repository
git remote add upstream https://github.com/pear/pear-core.git
git fetch upstream

# Sync Debian branches
gbp pull --track-missing

# Import new upstream version
upstream_version=1.10.9
git checkout upstream/stable
git reset --hard origin/upstream/stable
git merge --ff-only "v$upstream_version"

#Update submodules
git checkout upstream/stable+submodules
git reset --hard origin/upstream/stable+submodules
git merge upstream/stable
git submodule update --remote
git commit -am'Update submodules to latest version'

# Remove targzs
git checkout upstream/stable+submodules+notgz
git reset --hard origin/upstream/stable+submodules+notgz
git merge upstream/stable+submodules
git tag "upstream/$upstream_version+submodules+notgz"

# Update debian/sid
git checkout debian/sid
git reset --hard debian/sid
git merge upstream/stable+submodules

# Update changelog

dch --newversion "1:$upstream_version+submodules+notgz-1"
# git commit -v debian/changelog
# ...

# Update substvars
./debian/rules debian/php-pear.substvars-static
git commit -am'Update debian/php-pear.substvars-static'

# Once you are happy with the changes, push to Salsa
git push origin upstream/stable:upstream/stable upstream/stable+submodules:upstream/stable+submodules upstream/stable+submodules+notgz:upstream/stable+submodules+notgz
gbp push
```