commit: 639c922c3909f49f61574e55b5c79fd2339fe025
parent 3f93cdc010b503d41ded5b5e74d29d946542b1a8
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 17 Jul 2021 21:31:59 +0200
.common.sh: ver_dump function
Diffstat:
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/.common.sh b/.common.sh
@@ -184,6 +184,19 @@ h() {
mkcd "${HOME}/tmp/$(date +%Y-%m)"
}
+ver_bump() {
+ if [ $# -ne 2 ]; then
+ echo "usage: $0 <source ebuild path> <destination ebuild path>"
+ return
+ fi
+
+ cp -v "${1}" "${2}"
+ git add "${2}"
+ ekeyword ~all "${2}"
+ ebuild "${2}" manifest
+ git add "${2}/../Manifest"
+}
+
# startup
stty sane # I can haz urandom