Change method of update initramfs files in calculate themes.

test
Mike Hiretsky 14 years ago
parent 614c67bd14
commit 77110e700a

@ -386,3 +386,21 @@ calculate_change_version() {
fi
}
# FUNCTION: calculate_get_current_initrd
# DESCRIPTION:
# Get current initrd or initrd with suffix
calculate_get_current_initrd() {
calculate_initvars
local suffix=$1
sed -nr "/^title/{ #find title in grub.conf
:readnextline;N; #read next line
s/\ninitrd/&/; #if pattern not contents initrd
Treadnextline; #goto read next line
s|root=${ROOTDEV}.*initrd.*${suffix}|&|; #if menuitem not for this system
Tskipmenuitem; #then skip menuitem
s|^.*initrd (.*)$|\1|p; #display initramfs
q;
:skipmenuitem;
d;
}" /boot/grub/grub.conf
}

@ -2,6 +2,12 @@
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*cds-themes-10.4-r1 (06 Sep 2010)
06 Sep 2010; Mike Hiretsky (mhiretskiy) <mh@calculate.ru>
-cds-themes-10.4.ebuild, +cds-themes-10.4-r1.ebuild:
Update method of initrd refresh.
*cds-themes-10.4 (01 Apr 2010)
01 Apr 2010; Mike Hiretsky (mhiretskiy) <mh@calculate.ru>

@ -4,6 +4,6 @@ DIST cds-themes-10.4.tar.bz2 277827 RMD160 e0b64b81510a35c65979bdc3840bdac7305b1
EBUILD cds-themes-10.0.1.ebuild 625 RMD160 588c11635f88799ed0dec1341120efa80ba9a6ad SHA1 1848f6360baf139700e436064be9fd295b443fc6 SHA256 67e34552419770160fcfd6ee246edb9a7413b106c16a299c4516a40d04554884
EBUILD cds-themes-10.0.ebuild 473 RMD160 4861a4c8867b53f17866395f1a9a67ae5fa75e70 SHA1 f4d4405ba31d749fb602f1987e72d6f749490ca5 SHA256 cfd5bdde1398569dbea7d6799f0a6d778f8772d5570c3e83574a143753a9ab98
EBUILD cds-themes-10.2-r1.ebuild 686 RMD160 52c22fa4f06464ef0323f03c86b65e09ad69cd9f SHA1 13c087c61ef9a4fad03b154e32f0a741ae603520 SHA256 90b23a9ad1b898ffc607fadec3c2e0a4d2e518ef53bd21096613d8f4022f8a69
EBUILD cds-themes-10.4.ebuild 686 RMD160 5a5c43190bd1c838b5a014d56012e8e01423fb23 SHA1 1fae06b06ed7f5792c2e80cbadee63246edc8d81 SHA256 d3f0db67945c69438be8930395994433d14da5da037f1994d505f2ba28de2f94
MISC ChangeLog 584 RMD160 b35ab4d869b1ddcbc68186fdbdc4aa0c38e1ab3e SHA1 8aa3296f570ced39dacebd9485ad483c0a28e3f5 SHA256 45d00a730a92f62f15a1edc7686cb0c76c8340115824505dff3e12ee5e400ffb
EBUILD cds-themes-10.4-r1.ebuild 804 RMD160 47338fbe108147aa44974748d429e3fd8779d533 SHA1 8572bee7379adc326ec0911a9fbeb9e3d654e0ed SHA256 8e8adcf23e19d94c7f752aebe327ed80662ad417099512faeef5c1dfb741046d
MISC ChangeLog 770 RMD160 1b3c76a4d9ef0bc31d10352c524622c03ea34764 SHA1 bce455f30eb0f2b1ef36a91d864455680fcd267b SHA256 d0a2cab858c09b5371a56caa5ae587e2e2d6084eb5dc0eea81d93c2e7261a13b
MISC metadata.xml 259 RMD160 1b270d593092c8aa933eee383cc7faba8c979b88 SHA1 f11a78e0617a73b31ae83fa0689ccf35123ccd67 SHA256 a48a8a79d95d6ff3534bee46a101bfc3b38c25e4d3c72e336c7e8388616d9a91

@ -23,8 +23,10 @@ src_install() {
}
pkg_postinst() {
[[ -f ${ROOT}/boot/initrd ]] &&
calculate_update_splash ${ROOT}/boot/initrd
[[ -f ${ROOT}/boot/initrd-install ]] &&
calculate_update_splash ${ROOT}/boot/initrd-install
local initrdfile=$(calculate_get_current_initrd)
local initrdinstallfile=$(calculate_get_current_initrd -install)
[[ -f ${ROOT}${initrdfile} ]] &&
calculate_update_splash ${ROOT}${initrdfile}
[[ -f ${ROOT}${initrdinstallfile} ]] &&
calculate_update_splash ${ROOT}${initrdinstallfile}
}

@ -2,6 +2,12 @@
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*cld-themes-10.9-r1 (06 Sep 2010)
06 Sep 2010; Mike Hiretsky (mhiretskiy) <mh@calculate.ru>
-cld-themes-10.9.ebuild, +cld-themes-10.9-r1.ebuild:
Update method of initrd refresh.
*cld-themes-10.9 (24 Aug 2010)
24 Aug 2010; Mike Hiretsky (mhiretskiy) <mh@calculate.ru>

@ -6,6 +6,6 @@ EBUILD cld-themes-10.0-r1.ebuild 2095 RMD160 cbbb5720dacbf56eb5998fc61a3d2521118
EBUILD cld-themes-10.0.1.ebuild 2212 RMD160 3a33ab63efc6e45ead529e49823f698d4341112d SHA1 b3a44f30811753710d8d9400b52031ec7e1fbb9d SHA256 80fa155271d4d44dcb0809d11fe0a5790a642192ccb6b6b4561a813f6a4fa601
EBUILD cld-themes-10.2-r3.ebuild 2308 RMD160 da2a13f9c4585b7c942dda8fcc58fc80c5c329f6 SHA1 ee76841c4476ac0b6629f35bc64289cfac72861a SHA256 ef96f69e16845a5493eb4dc80653e7d524fbc961e789bcfa8075ac2dae39776f
EBUILD cld-themes-10.4.ebuild 2308 RMD160 da2a13f9c4585b7c942dda8fcc58fc80c5c329f6 SHA1 ee76841c4476ac0b6629f35bc64289cfac72861a SHA256 ef96f69e16845a5493eb4dc80653e7d524fbc961e789bcfa8075ac2dae39776f
EBUILD cld-themes-10.9.ebuild 2409 RMD160 48c3347afe3af505910c6e94531f3e856090dffb SHA1 dc9ba38dc7a2c2711ae0b664c2f23d7280cb43f4 SHA256 fc521947fefea789bbc13a95626a29065340a253c66f3e1907a175db9f82fd90
MISC ChangeLog 736 RMD160 a67cdb804d8b68005d1233a8e4030a251faae842 SHA1 fcdfe1b091eb8680ad9ed340bea0a3afc4197c97 SHA256 9ce33920d73dfb7e7611074b6e1cca65b4703c643edcbefdfb63397babb1a9a4
EBUILD cld-themes-10.9-r1.ebuild 2527 RMD160 2749cc72aa6533818ee85382175a94fac84900c8 SHA1 cfc7f843206c9f668f3b2bd57e98ee3345da9e30 SHA256 e42ac3349584a9e9cb2091b4ccc96006157fa04796afa0955bf4fca29cd2ced4
MISC ChangeLog 922 RMD160 a2ed0ac1ee2075f26a487d2d763821546fef542e SHA1 a837ab0ce6d9f196bee50e0dff010996cddc8e38 SHA256 567680ed9a583116360bec7a1716d71be057beae86b13fb838fd7e1a3492de35
MISC metadata.xml 260 RMD160 59c747eaacafdcd25e3ff8c6a015d7b6879ff2c6 SHA1 bbc63bb4cd46fe301ef559f8945c614c338e5193 SHA256 7c0be206f5d6dd3bc91b97f691127a424cce958a1249ab726467278de23455e7

@ -61,8 +61,10 @@ src_install() {
}
pkg_postinst() {
[[ -f ${ROOT}/boot/initrd ]] &&
calculate_update_splash ${ROOT}/boot/initrd
[[ -f ${ROOT}/boot/initrd-install ]] &&
calculate_update_splash ${ROOT}/boot/initrd-install
local initrdfile=$(calculate_get_current_initrd)
local initrdinstallfile=$(calculate_get_current_initrd -install)
[[ -f ${ROOT}${initrdfile} ]] &&
calculate_update_splash ${ROOT}${initrdfile}
[[ -f ${ROOT}${initrdinstallfile} ]] &&
calculate_update_splash ${ROOT}${initrdinstallfile}
}

@ -2,6 +2,12 @@
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*cldg-themes-10.9-r1 (06 Sep 2010)
06 Sep 2010; Mike Hiretsky (mhiretskiy) <mh@calculate.ru>
-cldg-themes-10.9.ebuild, +cldg-themes-10.9-r1.ebuild:
Update method of initrd refresh.
*cldg-themes-10.9 (24 Aug 2010)
24 Aug 2010; Mike Hiretsky (mhiretskiy) <mh@calculate.ru>

@ -6,6 +6,6 @@ EBUILD cldg-themes-10.0.1.ebuild 1464 RMD160 fa44dea1121d1764943731ac3c1c1feca96
EBUILD cldg-themes-10.0.ebuild 1329 RMD160 83b4fe1887cdd4e87af639948c3d755ef0ceb8ee SHA1 e8ea5cfcd1139760e460d148819ff68b719576a7 SHA256 ebe720efd92840d1d86aff132e511dd6a0be678fcc875d5a881e98ae01f9a9b3
EBUILD cldg-themes-10.2-r3.ebuild 1542 RMD160 177d9fe378df5bb7f1012c82376c7a1efcb795df SHA1 a3d8d59dc909978c0d030c0f5ec1d9c13392ebbf SHA256 73d06d8943e36cd6a5ef14f7cfc35516dbf613c0e4e05462a1f3b6d0f1913aac
EBUILD cldg-themes-10.4-r2.ebuild 1542 RMD160 a39561db4d4c8ad53cd14199deb9dd2bdeefcdcf SHA1 64c6ce9707e7d914b7c3b6aa21db2baf643e28cf SHA256 d6ebddb72dad5d8ba92946f8421a915bca0fcb034f8cacab91aef9e1717e8971
EBUILD cldg-themes-10.9.ebuild 1544 RMD160 f3ce9ec6f04af50c6abcddc16eec8cdcfc6c5612 SHA1 1ac290f7fbee209aab656c310d45ff37b4f14924 SHA256 35a20a20982a35286462c1c5319d953e43c468983c18b539c005a2205d8c93cb
MISC ChangeLog 1077 RMD160 e130fce7b60c4572cbe244e3ad8a065a588480a4 SHA1 934f515251de8a2da71037aa1fa65beea2f31d05 SHA256 167af4af7a9c74da83950bc7fbf2630825d83ebd41dade834694c00f2da3ed73
EBUILD cldg-themes-10.9-r1.ebuild 1662 RMD160 f359adc176fd26b2a8cfbf0827c3f8d9ce585b4c SHA1 440d5f73624061f548658d333fbefd63f1a23e06 SHA256 732fa8f5faf906ce27c3047ba7bb7a3d1c06beade406992ce44cfcc6fee586c2
MISC ChangeLog 1266 RMD160 ab0657a2008464bf23e589826daaeb60338defb9 SHA1 b8fed67b58ca098dee6f480ea9ae09e57c2f517e SHA256 50cd3e1577c670c44e1ae6a8fae04fbddcee271c46f4a694c387e3e5e7bb7fa2
MISC metadata.xml 262 RMD160 663e84f074fee7b06b0e8133fba6e5ef19e25c75 SHA1 4446020395d787f939246f39767f8633ea931a5e SHA256 e3852964a15875d8ea9ef0b30f6aba61440a7ecac12edc6e558bfdbc7f0aee3e

@ -44,8 +44,10 @@ src_install() {
}
pkg_postinst() {
[[ -f ${ROOT}/boot/initrd ]] &&
calculate_update_splash ${ROOT}/boot/initrd
[[ -f ${ROOT}/boot/initrd-install ]] &&
calculate_update_splash ${ROOT}/boot/initrd-install
local initrdfile=$(calculate_get_current_initrd)
local initrdinstallfile=$(calculate_get_current_initrd -install)
[[ -f ${ROOT}${initrdfile} ]] &&
calculate_update_splash ${ROOT}${initrdfile}
[[ -f ${ROOT}${initrdinstallfile} ]] &&
calculate_update_splash ${ROOT}${initrdinstallfile}
}

@ -2,6 +2,12 @@
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*cldx-themes-10.9-r1 (06 Sep 2010)
06 Sep 2010; Mike Hiretsky (mhiretskiy) <mh@calculate.ru>
-cldx-themes-10.9.ebuild, +cldx-themes-10.9-r1.ebuild:
Update method of initrd refresh.
*cldx-themes-10.9 (24 Aug 2010)
24 Aug 2010; Mike Hiretsky (mhiretskiy) <mh@calculate.ru>

@ -6,6 +6,6 @@ EBUILD cldx-themes-10.0.1.ebuild 1323 RMD160 2afff01840811b0e8485c2d90f79437e36f
EBUILD cldx-themes-10.0.ebuild 1178 RMD160 4ff181459be9fbfdbebc7b957af0a697750c437e SHA1 c5620ce967e379ecb14eb014e088260456c28a70 SHA256 47fb785113b2eb10c3e409eec2ee16a71f4531ee30370f68e94534df3d289417
EBUILD cldx-themes-10.2-r3.ebuild 1391 RMD160 8c265c834bd62c32a29ebe4de9d834a274abd3f1 SHA1 bc99da47f517ff6896e8ed1fd49df0a9dbf3aa17 SHA256 91bd459cd482e6a524f73ab28bfb2c07bf3a51d1eddde4b109404c99f65c836b
EBUILD cldx-themes-10.4-r2.ebuild 1470 RMD160 efaf7ecf6ef224eb2b8c6425aec5108c125da31d SHA1 6e779abf05ae74831270c5f6a2f66da652a5ffd8 SHA256 78ba6c346203df4a8086ffbe1e2080fa9fbaf484f9a1891b0438ffea405c52d9
EBUILD cldx-themes-10.9.ebuild 1416 RMD160 2b70c3afb33916917f5e3225d8dbad716e00ff86 SHA1 96ec69b2fd4eac77ec8ce862b8c77f7fc286097c SHA256 17c03d5650657df84cd9642c812f6377b90699a662d0d8cf92ab819907b4a0ac
MISC ChangeLog 1236 RMD160 0608f731319ecfde4cac31a813570a39e7f2e9e1 SHA1 41764203a48fb80512cbf501f743e14622f3bae7 SHA256 c4f70d12a756c1141700837ba232b432fc2c3b77dbf8053ebf2fee9ad7767da8
EBUILD cldx-themes-10.9-r1.ebuild 1534 RMD160 fb35d8a91ad5fd5f05ce429962f3bb8cc8b99518 SHA1 b64e5cbcba19adb4329e0f00242efc5b5bb52bf0 SHA256 bda5ed7ff32aeae8d90f8f810a68cb5938acf1939e8bb11b08f05b1f4ed676a4
MISC ChangeLog 1425 RMD160 07d2cb47491d96bae7e4f5e9cfe9d067f3909fea SHA1 f2537d49517cca66b3d196468370b0575daebe2b SHA256 6f8c35ef846a84988094c37589f3c3fcc82112778984f064e7372c6f1f71e189
MISC metadata.xml 261 RMD160 780ef31c45327481235a981f2595b7a20c84bea7 SHA1 8dab799571d6f6a3ae1fc5df00b2a1467baecbba SHA256 e53f2cc5c63713f127f04a8bb2430c6f2b17da1825772a993f170268352a5858

@ -33,8 +33,10 @@ src_install() {
}
pkg_postinst() {
[[ -f ${ROOT}/boot/initrd ]] &&
calculate_update_splash ${ROOT}/boot/initrd
[[ -f ${ROOT}/boot/initrd-install ]] &&
calculate_update_splash ${ROOT}/boot/initrd-install
local initrdfile=$(calculate_get_current_initrd)
local initrdinstallfile=$(calculate_get_current_initrd -install)
[[ -f ${ROOT}${initrdfile} ]] &&
calculate_update_splash ${ROOT}${initrdfile}
[[ -f ${ROOT}${initrdinstallfile} ]] &&
calculate_update_splash ${ROOT}${initrdinstallfile}
}

@ -2,6 +2,12 @@
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*cls-themes-10.9-r3 (06 Sep 2010)
06 Sep 2010; Mike Hiretsky (mhiretskiy) <mh@calculate.ru>
-cls-themes-10.9-r2.ebuild, +cls-themes-10.9-r3.ebuild:
Update method of initrd refresh.
*cls-themes-10.9-r2 (19 Aug 2010)
19 Aug 2010; Mike Hiretsky (mhiretskiy) <mh@calculate.ru>

@ -6,6 +6,6 @@ EBUILD cls-themes-10.0.1.ebuild 613 RMD160 c3b6f9cef3b2ecce778d39b5325d115140f3f
EBUILD cls-themes-10.0.ebuild 460 RMD160 bab0eb9f62755d8c95be6d54467f592aacfa6ddc SHA1 47c0cbf19b2b4a4a449e93bf4781ebd91f381efe SHA256 95a2262076ebfc45b0a26e323d1da5b622855066abefc7d9021734eb522628f0
EBUILD cls-themes-10.2-r1.ebuild 673 RMD160 e56afdc6e6629257cf705ab1f23ba6a7a8d1eeeb SHA1 93169224f1c924f830ddc4aa61f802dbd387c5b6 SHA256 cbfd7bebd69fa4d11ed83c1daef24789fc9223353b818f8ff6bcbae460b92206
EBUILD cls-themes-10.4.ebuild 673 RMD160 e56afdc6e6629257cf705ab1f23ba6a7a8d1eeeb SHA1 93169224f1c924f830ddc4aa61f802dbd387c5b6 SHA256 cbfd7bebd69fa4d11ed83c1daef24789fc9223353b818f8ff6bcbae460b92206
EBUILD cls-themes-10.9-r2.ebuild 675 RMD160 302677cfa16cdd07c3f6879c4e3edc484c836b7b SHA1 e6300e6df370abe3259c10958a5bc0cfa7e3870a SHA256 6ce30b4343bebb2836311f942b46e292f9999c71e687fa8a9c7563c21e9a6f3f
MISC ChangeLog 718 RMD160 c02cc0d346f4752c667ea34a534bd84ac63f0bd3 SHA1 e07e59ef1d8cd7b88c83971db2a4c8e4079611e0 SHA256 0d9e7beefe4c1f9abe511b3f8398def97f920377357a4486fe946c3435615f27
EBUILD cls-themes-10.9-r3.ebuild 793 RMD160 4202941eded4322dc1aa545c1898d826c5d838bb SHA1 aed2645a4659478003586ec933b0833d874b14a8 SHA256 c9b6ad581f45a224dab130c060bc13241ccd60130bff5e2e888327e2d66c9b4e
MISC ChangeLog 907 RMD160 9305c3ce5f93cb2ee9f7365997929d2135724b63 SHA1 66199b361cb7cedb96d9ee58b0b5b2e1814511ba SHA256 37c3cc9e55e83fe66d04a562de38e7187e4e657d549aa27bf75238805aee19f2
MISC metadata.xml 256 RMD160 4d2932b17e710e22b4ef8d10d4efa8e29ec2f59e SHA1 af0b67b9e0e87272e68c6017cb83ba23f6c86c27 SHA256 721c3fbe7e755146d6767cdd14cff57bf8474852588e99630f70bf5a058df759

@ -23,8 +23,10 @@ src_install() {
}
pkg_postinst() {
[[ -f ${ROOT}/boot/initrd ]] &&
calculate_update_splash ${ROOT}/boot/initrd
[[ -f ${ROOT}/boot/initrd-install ]] &&
calculate_update_splash ${ROOT}/boot/initrd-install
local initrdfile=$(calculate_get_current_initrd)
local initrdinstallfile=$(calculate_get_current_initrd -install)
[[ -f ${ROOT}${initrdfile} ]] &&
calculate_update_splash ${ROOT}${initrdfile}
[[ -f ${ROOT}${initrdinstallfile} ]] &&
calculate_update_splash ${ROOT}${initrdinstallfile}
}
Loading…
Cancel
Save