mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-19 11:24:18 +08:00
Add sha256sums file storing a list of every file in a package and their checksum
This commit is contained in:
parent
6eb28fa429
commit
9dcafe9aca
9
cook.sh
9
cook.sh
@ -423,7 +423,16 @@ function op {
|
||||
echo "depends = []" >> "stage.toml"
|
||||
fi
|
||||
|
||||
rm -rf stage/pkg
|
||||
mkdir -p stage/pkg
|
||||
|
||||
pushd stage > /dev/null
|
||||
find . -type f | cut -d / -f 2- | sort | while read file
|
||||
do
|
||||
sha256sum "$file" >> "pkg/$1.sha256sums"
|
||||
done
|
||||
popd > /dev/null
|
||||
|
||||
cp -v stage.toml "stage/pkg/$1.toml"
|
||||
pkg --target=$TARGET create stage
|
||||
;;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user