1 |
commit: fabfe2034914e1390f3d52d1e0992e6524ceb56b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 19 22:23:22 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 19 22:25:36 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fabfe203 |
7 |
|
8 |
dev-util/debugedit: Remove obsolete updater script |
9 |
|
10 |
We are now using upstream tarballs, so the script is no longer relevant. |
11 |
|
12 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
13 |
|
14 |
dev-util/debugedit/files/update.sh | 84 -------------------------------------- |
15 |
1 file changed, 84 deletions(-) |
16 |
|
17 |
diff --git a/dev-util/debugedit/files/update.sh b/dev-util/debugedit/files/update.sh |
18 |
deleted file mode 100755 |
19 |
index 3fed29ad6dc..00000000000 |
20 |
--- a/dev-util/debugedit/files/update.sh |
21 |
+++ /dev/null |
22 |
@@ -1,84 +0,0 @@ |
23 |
-#!/bin/bash |
24 |
- |
25 |
-DISTDIR="$(portageq envvar DISTDIR 2>/dev/null)" |
26 |
-DISTDIR="${DISTDIR:-/usr/portage/distfiles}" |
27 |
-if [[ ! -d "${DISTDIR}" ]] ; then |
28 |
- echo "No DISTDIR found." |
29 |
- exit 1 |
30 |
-fi |
31 |
- |
32 |
-PN=debugedit |
33 |
- |
34 |
-gentoo_functions="/lib/gentoo/functions.sh" |
35 |
-if [[ -f "${gentoo_functions}" ]] ; then |
36 |
- . "${gentoo_functions}" |
37 |
-else |
38 |
- echo "Failed to source ${gentoo_functions} file." |
39 |
- echo "Please install sys-apps/gentoo-functions package." |
40 |
- exit 1 |
41 |
-fi |
42 |
- |
43 |
-set -e |
44 |
- |
45 |
-einfo "Getting updated index" |
46 |
-rm -f index.html |
47 |
-wget -q http://rpm5.org/ |
48 |
- |
49 |
-PV=$(sed -n '/Production:/{n;s:.*RPM ::;s:<.*::;p;q}' index.html) |
50 |
-einfo "Latest upstream version: ${PV}" |
51 |
-rm -f index.html |
52 |
- |
53 |
-P="${PN}-${PV}" |
54 |
-A=${P}.tar.bz2 |
55 |
- |
56 |
-e=${P}.ebuild |
57 |
-if [[ -e ../${e} ]] ; then |
58 |
- einfo "All up to date" |
59 |
- exit 0 |
60 |
-fi |
61 |
- |
62 |
-#tf=${DISTDIR}/${A} |
63 |
-#if [[ ! -e ${tf} ]] ; then |
64 |
-# einfo "Cannot find ${tf}" |
65 |
-# exit 0 |
66 |
-#fi |
67 |
- |
68 |
-einfo "Fetching latest rpm tarball" |
69 |
-r=rpm-${PV} |
70 |
-wget -nv http://rpm5.org/files/rpm/rpm-${PV%.*}/${r}.tar.gz -P ${DISTDIR} -c |
71 |
- |
72 |
-einfo "Unpacking ${r}" |
73 |
-rm -rf ${r} |
74 |
-tar xf ${DISTDIR}/${r}.tar.gz |
75 |
- |
76 |
-einfo "Creating ${P}" |
77 |
-rm -rf ${P} |
78 |
-mkdir ${P} |
79 |
-cp Makefile ${r}/tools/{hashtab.?,debugedit.c} ${P}/ |
80 |
-pushd ${P} >/dev/null |
81 |
-more=true |
82 |
-while ${more} ; do |
83 |
- more=false |
84 |
- for h in $(grep '#include' *.[ch] | awk '{print $NF}' | sed 's:[<>"]::g') ; do |
85 |
- [[ ${h} == */* ]] && continue |
86 |
- rh=$(find ../${r} -name ${h##*/}) |
87 |
- if [[ -n ${rh} ]] && [[ ! -e ${rh##*/} ]] ; then |
88 |
- # don't copy glibc includes |
89 |
- if ! grep -qs 'This file is part of the GNU C Library' ${rh} ; then |
90 |
- cp ${rh} ./ |
91 |
- more=true |
92 |
- fi |
93 |
- fi |
94 |
- done |
95 |
-done |
96 |
-popd >/dev/null |
97 |
-tar jcf ${A} ${P} |
98 |
- |
99 |
-einfo "Testing build" |
100 |
-pushd ${P} >/dev/null |
101 |
-make -s |
102 |
-popd >/dev/null |
103 |
- |
104 |
-einfo "Cleaning up" |
105 |
-rm -rf ${P} ${r} |
106 |
-du -b ${A} |