Skip to content

Instantly share code, notes, and snippets.

@MagneFire
Last active November 18, 2021 10:51
Show Gist options
  • Save MagneFire/da59da6e108dcc588b2aa3fab1f1a49c to your computer and use it in GitHub Desktop.
Save MagneFire/da59da6e108dcc588b2aa3fab1f1a49c to your computer and use it in GitHub Desktop.
#!/bin/bash
wf=`find . -maxdepth 1 -type d -not -name ".*" -exec echo {} \;`
for i in ${wf}; do
echo "require unofficial-watchface.inc" > "${i:2}_git.bb"
done
cat << EOF > unofficial-watchfaces_git.bb
SUMMARY = "A meta recipe for all unofficial watchfaces."
HOMEPAGE = "https://github.com/AsteroidOS/unofficial-watchfaces/"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-or-later;md5=fed54355545ffd980b814dab4a3b312c"
ALLOW_EMPTY:${PN} = "1"
EOF
for i in ${wf}; do
echo "DEPENDS += \"${i:2}\"" >> unofficial-watchfaces_git.bb
echo "RDEPENDS:${PN} += \"${i:2}\"" >> unofficial-watchfaces_git.bb
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment