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
76103ffc
Kaydet (Commit)
76103ffc
authored
Agu 03, 2020
tarafından
Your Name
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add branch support unibuild
üst
95b29cbf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
8 deletions
+39
-8
building.rst
doc/building.rst
+2
-2
example_git
example/example_git
+18
-0
00-single-source
hooks/00-single-source
+3
-1
fetcher
modules/fetcher
+16
-5
No files found.
doc/building.rst
Dosyayı görüntüle @
76103ffc
...
...
@@ -118,9 +118,9 @@ no license Source code license.
Unibuild supported different source types. All known source types:
1. name::git://xxxx.git
1. name::git://xxxx.git
::branch
2. git+https://xxxxx.git
2. git+https://xxxxx.git
::branch
3. name::https://xxxxx
...
...
example/example_git
0 → 100644
Dosyayı görüntüle @
76103ffc
#!/bin/bash
name
=
"inary"
version
=
"1.4"
summary
=
"Inary package manager"
executable
=
"inary"
description
=
"Package manager for sulinos"
builddepends
=(
"python3"
)
depends
=(
"python3"
"curl"
)
license
=
"gplv3"
release
=
"1"
source
=(
git+https://gitlab.com/sulinos/devel/inary::develop
)
_build
(){
make build
}
_install
(){
make
install
DESTDIR
=
$INSTALLDIR
}
hooks/00-single-source
Dosyayı görüntüle @
76103ffc
...
...
@@ -3,7 +3,9 @@ if [ "$(ls -F $WORKDIR | grep \/$ | wc -l)" == "1" ] ; then
export
WORKDIR
=
"
$WORKDIR
/
$(
ls
-F
$WORKDIR
|
grep
\/
$)
"
fi
info "
Single
source
detected: new workdir
=>
$WORKDIR
"
if [ "
$BuildType
" != "" ] ; then
if fn_exists "
_setup
" || fn_exists "
_build
" || fn_exists "
_install
" ; then
info "
Auto build
type
detection disabled.
"
elif [ "
$BuildType
" != "" ] ; then
info "
Build Type found.
"
elif [ -f "
$WORKDIR
/meson.build
" ] ; then
BuildType="
meson
"
...
...
modules/fetcher
Dosyayı görüntüle @
76103ffc
...
...
@@ -10,15 +10,26 @@ for src in ${source[@]} ; do
cp
-prfv
$CURDIR
/
$src
$WORKDIR
/
elif
echo
"
$src
"
|
grep
"git://"
&>/dev/null
;
then
srcloc
=
$(
echo
$src
|
sed
"s|^.*git://|git://|g"
)
srcloc
=
$(
echo
$src
|
sed
"s|^.*git://|git://|g"
|
sed
"s/::.*//g"
)
srcname
=
$(
echo
$src
|
sed
"s|::git://.*
$|
|g"
)
echo
$srcloc
$srcname
branch
=
$(
echo
$src
|
sed
"s|^.*::||g"
)
echo
$srcloc
$srcname
$branch
info
"Clonning:
$srcloc
"
[
-d
"
$srcname
"
]
||
git clone
$srcloc
$srcname
if
[
"
$branch
"
==
""
]
;
then
[
-d
"
$srcname
"
]
||
git clone
$srcloc
$srcname
else
[
-d
"
$srcname
"
]
||
git clone
$srcloc
$srcname
-b
$branch
fi
elif
echo
"
$src
"
|
grep
"^git+"
&>/dev/null
;
then
srcloc
=
$(
echo
$src
|
sed
"s|^git+||g"
)
srcloc
=
$(
echo
$src
|
sed
"s|^git+||g"
|
sed
"s/::.*//g"
)
branch
=
$(
echo
$src
|
sed
"s|^.*::||g"
)
echo
$srcloc
$srcname
$branch
info
"Clonning:
$srcloc
"
git clone
$srcloc
||
true
if
[
"
$branch
"
==
""
]
;
then
git clone
$srcloc
||
true
else
git clone
$srcloc
-b
$branch
||
true
fi
elif
echo
"
$src
"
|
grep
"::http"
&>/dev/null
;
then
srcloc
=
$(
echo
$src
|
sed
"s|^.*::||g"
)
srcname
=
$(
echo
$src
|
sed
"s|::http.*
$|
|g"
)
...
...
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