1 |
commit: d3689e19f5bca53726b6cba8f26b648a83154e6e |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 1 17:25:12 2013 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 1 17:25:12 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/releng.git;a=commit;h=d3689e19 |
7 |
|
8 |
tools-uclibc/desktop: date the tarball and generate the DIGEST |
9 |
|
10 |
--- |
11 |
tools-uclibc/desktop/run.sh | 21 ++++++++++++++++++++- |
12 |
1 file changed, 20 insertions(+), 1 deletion(-) |
13 |
|
14 |
diff --git a/tools-uclibc/desktop/run.sh b/tools-uclibc/desktop/run.sh |
15 |
index 642a5d1..89330ca 100644 |
16 |
--- a/tools-uclibc/desktop/run.sh |
17 |
+++ b/tools-uclibc/desktop/run.sh |
18 |
@@ -137,8 +137,27 @@ unmount_dirs() { |
19 |
} |
20 |
|
21 |
bundle_it() { |
22 |
+ local DATE=$(date +%Y%m%d) |
23 |
+ local NAME="${ROOTFS}"-"${DATE}".tar.bz2 |
24 |
+ local DIGESTS="${NAME}".DIGESTS |
25 |
+ |
26 |
cd "${ROOTFS}" |
27 |
- tar -j -c -f ../"${ROOTFS}".tar.bz2 . |
28 |
+ tar -j -c -f ../"${NAME}" . |
29 |
+ |
30 |
+ cd .. |
31 |
+ >"${DIGESTS}" |
32 |
+ |
33 |
+ echo "# MD5 HASH" >> "${DIGESTS}" |
34 |
+ md5sum "${NAME}" >> "${DIGESTS}" |
35 |
+ |
36 |
+ echo "# SHA1 HASH" >> "${DIGESTS}" |
37 |
+ sha1sum "${NAME}" >> "${DIGESTS}" |
38 |
+ |
39 |
+ echo "# SHA512 HASH" >> "${DIGESTS}" |
40 |
+ sha512sum "${NAME}" >> "${DIGESTS}" |
41 |
+ |
42 |
+ echo "# WHIRLPOOL HASH" >> "${DIGESTS}" |
43 |
+ whirlpooldeep "${NAME}" >> "${DIGESTS}" |
44 |
} |
45 |
|
46 |
main() { |