summaryrefslogtreecommitdiff
path: root/auto
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 14:06:03 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 14:06:03 +0100
commite87ff16e0e8f223d9a18ea23cdcf103c027bf466 (patch)
treebdde1e9523ea8d6ecd6845366b4118f148096307 /auto
parent8608cecbe8be70112bdff16d957f52cd22f37731 (diff)
fixed create.sh to work without repos
Diffstat (limited to 'auto')
-rwxr-xr-xauto/create.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/auto/create.sh b/auto/create.sh
index 9cddf75..abd4cde 100755
--- a/auto/create.sh
+++ b/auto/create.sh
@@ -1,16 +1,14 @@
#!/bin/sh
read -p "package name> " name
-repo=$(ls repo/ | fzf --prompt="repo> ")
read -p "package version> " version
read -p "description> " desc
-deps=$(find repo -type d -maxdepth 2 -mindepth 2 | sed 's/.*\///g' | rev | cut -f1 -d/ | rev |fzf -m --prompt="dependencies> " | tr '\n' ' ')
+deps=$(find repo -type d -maxdepth 1 -mindepth 1 | 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> ")
clear
echo Name: $name
-echo Repo: $repo
echo Deps: $deps
echo Desc: $desc
echo Vers: $version
@@ -20,7 +18,7 @@ echo Type: $type
read -p "Ok? " go
template=./templates/$type.xibuild
-package=repo/$repo/$name
+package=repo/$name
buildfile=$package/$name.xibuild
[ -f $buildfile ] && read -p "Buildfile already exists, overwrite? " go