File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,22 @@ and running pkgdiff-mg_ to compare archives. Typical usage::
108
108
109
109
pkgbump foo-1.0.ebuild foo-1.1.ebuild
110
110
111
+ pkgmove
112
+ -------
113
+ Dependencies: git
114
+ Optional dependencies: gpyutils >= 0.12 (gpy-impl)
115
+
116
+ Performs a package move. Moves the package directory if the old name
117
+ still exists. Updates all entries in ebuilds, eclasses and profiles.
118
+ Adds a profiles/updates entry.
119
+
120
+ WARNING: edits are done using greedy sed. Double-check the results.
121
+
122
+ Example use::
123
+
124
+ pkgmove dev-util/cmake-fedora dev-build/cmake-fedora
125
+ pkgmove dev-util/cmake dev-build/cmake
126
+
111
127
mkpatchset
112
128
----------
113
129
Dependencies: git, scp
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -e -x
4
+
5
+ scriptdir=${BASH_SOURCE%/* }
6
+ from=${1}
7
+ to=${2}
8
+
9
+ [[ ${from} && ${to} ]]
10
+
11
+ if [[ -d ${from} ]]; then
12
+ git mv " ${from} " " ${to} "
13
+ fi
14
+
15
+ find profiles/updates -type f -exec sed -i -e " \@^move ${from} @d" {} +
16
+ git grep -l " ${from} " :! profiles/updates |
17
+ xargs -r sed -i -e " s@${from} @${to} @g"
18
+ echo " move ${from} ${to} " >> profiles/updates/$( date " +%qQ-%Y" )
19
+
20
+ modified=( $( git diff --name-only HEAD) )
21
+ " ${scriptdir} " /copybump " ${modified[@]} "
22
+ if type -P gpy-impl & > /dev/null; then
23
+ git grep -l " ^PYTHON_COMPAT" " ${modified[@]} " |
24
+ xargs -r gpy-impl -@dead || :
25
+ fi
You can’t perform that action at this time.
0 commit comments