wok-6.x view cookutils/stuff/cook-newest.patch @ rev 22517
updated atk-dev again (2.15.4 -> 2.34.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jan 01 17:10:16 2020 +0100 (2020-01-01) |
parents | |
children |
line source
1 Force the date of the last produced file to the newest package source file.
2 Take care or receipt *and* stuff
3 --- a/cook
4 +++ b/cook
5 @@ -879,7 +879,8 @@
7 # Build cpio archives.
8 action 'Compressing the FS...'
9 - find fs -newer $receipt -exec touch -hr $receipt {} \;
10 + newest="$(find receipt stuff 2>/dev/null | xargs ls -td | sed q)"
11 + find fs -newer $newest -exec touch -hr $newest {} \;
12 find fs | cpio -o -H newc --quiet | lzma e fs.cpio.lzma -si
13 rm -rf fs
14 status