Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
U
unibuild
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
unibuild
Commits
24023e2f
Kaydet (Commit)
24023e2f
authored
Tem 19, 2020
tarafından
sulincix
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
host distro spesific builddepends package list support
üst
bd9b98ed
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
1 deletion
+49
-1
example
example/example
+1
-0
debian
host/debian
+12
-0
default
host/default
+12
-0
inary
host/inary
+12
-0
autohost
modules/autohost
+10
-0
unibuild.sh
unibuild.sh
+2
-1
No files found.
example/example
Dosyayı görüntüle @
24023e2f
...
...
@@ -3,6 +3,7 @@ name="example"
version
=
"1.0"
summary
=
"example package"
description
=
"example package for build test"
builddepends
=(
"gcc"
"aaaa"
)
depends
=(
"hello"
)
license
=
"gplv3"
release
=
"1"
...
...
host/debian
0 → 100644
Dosyayı görüntüle @
24023e2f
#!/bin/bash
_get_build_deps
(){
needed
=
""
for
i
in
${
builddepends
[@]
}
do
cat
/var/lib/dpkg/status |
grep
"^Package:
$i
$"
&>/dev/null
||
needed
=
"
$needed
$i
"
done
if
[
"
$needed
"
!=
""
]
;
then
echo
"Missing:
$needed
"
su
-c
"apt-get install
$needed
"
||
exit
1
fi
}
host/default
0 → 100644
Dosyayı görüntüle @
24023e2f
#!/bin/bash
_get_build_deps
(){
needed
=
""
for
i
in
${
builddepends
}
do
[
-f
/info/
$i
]
||
needed
=
"
$needed
$i
"
done
if
[
"
$needed
"
!=
""
]
;
then
echo
"Missing:
$needed
"
exit
1
fi
}
host/inary
0 → 100644
Dosyayı görüntüle @
24023e2f
#!/bin/bash
_get_build_deps
(){
needed
=
""
for
i
in
${
builddepends
[@]
}
do
ls
/var/lib/inary/package/ |
grep
"^
$i
-[1-9]"
&>/dev/null
||
needed
=
"
$needed
$i
"
done
if
[
"
$needed
"
!=
""
]
;
then
echo
"Missing:
$needed
"
su
-c
"inary it
$needed
"
||
exit
1
fi
}
modules/autohost
0 → 100644
Dosyayı görüntüle @
24023e2f
#!/bin/bash
if
[
"
$HOST
"
==
""
]
;
then
if
[
-d
/var/lib/dpkg
]
;
then
export
HOST
=
debian
elif
[
-d
/var/lib/inary
]
;
then
export
HOST
=
inary
else
export
HOST
=
default
fi
fi
unibuild.sh
Dosyayı görüntüle @
24023e2f
...
...
@@ -5,8 +5,9 @@ for mod in $(ls $MODDIR) ; do
done
source
$1
source
$MODDIR
/../target/
$TARGET
echo
$TARGE
T
source
$MODDIR
/../host/
$HOS
T
set
-e
_get_build_deps
cd
$BUILDDIR
_fetch
cd
$WORKDIR
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment