genode-depot/gen-list.sh

18 lines
481 B
Bash
Executable File

#!/bin/sh
# TODO: git clone shallow, fhs environment, make -f depot/whatever
echo "/* DO NOT EDIT - this file generated by gen-list.sh */ ["
find ../../genode/public/genodelabs/bin -name '*.tar.xz' -print \
| sort \
| awk --field-separator / '{print $8" "$9" "$0}' \
| while read NAME VERSION LOCAL
do
TAR_PATH=`realpath $LOCAL`
SHA256=`nix-prefetch-url file://$TAR_PATH`
echo "{name=\"$NAME\";value={sha256=\"$SHA256\";version=\"${VERSION%%.tar.xz}\";};}"
done
echo ']'