blob: 80428a37d371915b29143d0e9b3d4518827dcaf6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/bin/bash
create() {
local desc=$*
printf "#!/bin/sh\n"
printf "# This file was automatically generated, do not edit!"
printf "\n\n"
printf "DESC=\"$desc\"\n"
printf "DEPS=\""
while read repo; do
[ -d repo/$repo ] && [ ! "$repo" = "meta" ] &&
for file in $(ls repo/$repo/*.xibuild); do
local name=$(basename -s ".xibuild" $file)
printf " $name"
done
done
printf "\"\n"
}
ls repo | create 'AlL tHe pacKageS!!' > repo/meta/all.xibuild
skip="skip meta"
for repo in $(ls repo); do
pkg_name=repo-$repo
if echo $skip | grep -q $repo; then
echo "Skipping $repo"
else
echo $repo | create "All the the packages available in $repo" > repo/meta/$pkg_name.xibuild
echo "Generated $pkg_name.xibuild"
fi
done
|