summaryrefslogtreecommitdiff
path: root/auto
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-18 09:56:56 +0100
committerdavidovski <david@davidovski.xyz>2022-05-18 09:56:56 +0100
commit4cfc98e1be889f359613a54010b67e13c673e4ab (patch)
tree085c6f015955435d1138078984a897491b1b1e37 /auto
parentda500224f138f6d4800d248c24228987a0a149de (diff)
parentdccab9b94dcfc5e040647210ba22b9cc4bddc742 (diff)
Merge branch 'master' of git.cheetah.remote:xilinux/buildfiles
Diffstat (limited to 'auto')
-rwxr-xr-xauto/create.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/auto/create.sh b/auto/create.sh
index 35306fc..9cddf75 100755
--- a/auto/create.sh
+++ b/auto/create.sh
@@ -3,7 +3,7 @@ read -p "package name> " name
repo=$(ls repo/ | fzf --prompt="repo> ")
read -p "package version> " version
read -p "description> " desc
-deps=$(find repo -type f | sed "s/.xibuild//g" | rev | cut -f1 -d/ | rev |fzf -m --prompt="dependencies> " | tr '\n' ' ')
+deps=$(find repo -type d -maxdepth 2 -mindepth 2 | sed 's/.*\///g' | rev | cut -f1 -d/ | rev |fzf -m --prompt="dependencies> " | tr '\n' ' ')
read -p "source url> " url
read -p "additional urls> " additional
type=$(find ./templates -type f | sed "s/.xibuild//g" | rev | cut -f1 -d/ | rev | fzf --prompt="build type> ")
@@ -60,7 +60,6 @@ EOF
[ "${#additional}" = 0 ] || {
filenames=""
- mkdir $name
for l in $additional; do
filename=$(basename $l)
curl -SsL $l > $package/$filename