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
e27f3257
Kaydet (Commit)
e27f3257
authored
Tem 17, 2020
tarafından
sulincix
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
default target fixes
üst
233adb2b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
7 deletions
+24
-7
example
example/example
+5
-4
default
target/default
+19
-3
No files found.
example/example
Dosyayı görüntüle @
e27f3257
...
...
@@ -5,17 +5,18 @@ summary="example package"
description
=
"example package for build test"
license
=
"gplv3"
release
=
"1"
source
=(
http://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz
)
#
source=(http://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz)
_setup
(){
echo
"setup"
>
$INSTALLDIR
/hello
mkdir
-p
$INSTALLDIR
/hello/
echo
"setup"
>
$INSTALLDIR
/hello/setup
}
_build
(){
echo
"build"
>
$INSTALLDIR
/hello
echo
"build"
>
$INSTALLDIR
/hello
-build
}
_install
(){
echo
"install"
>
$INSTALLDIR
/hello
echo
"install"
>
$INSTALLDIR
/hello
-install
}
target/default
Dosyayı görüntüle @
e27f3257
#!/bin/bash
__write_remove
(){
cd
$INSTALLDIR
find |
while
read
line
do
if
[
-f
$line
]
;
then
echo
"rm -f
$line
"
|
sed
"s/
\.\/
/
\/
/g"
fi
done
find |
while
read
line
do
if
[
-d
$line
]
&&
[
$line
!=
"."
]
;
then
echo
"rmdir
$line
2>/dev/null"
|
sed
"s/
\.\/
/
\/
/g"
fi
done
echo
"rm -f /info/
$name
"
echo
"rm -f /info/
$name
.remove"
}
_create_metadata
(){
mkdir
$PKGDIR
/info/
...
...
@@ -14,11 +31,10 @@ _create_metadata(){
cd
$INSTALLDIR
find
>>
$PKGDIR
/info/
$name
echo
"----end----"
>>
$PKGDIR
/info/
$name
__write_remove
>>
$PKGDIR
/info/
$name
.remove
}
_package
(){
cd
$INSTALLDIR
tar
-cf
$PKGDIR
/
$name
-
$version
.tar
*
cp
-prfv
$INSTALLDIR
/
*
$PKGDIR
/
cd
$PKGDIR
tar
-cf
$CURDIR
/
$name
-
$version
.tar
*
...
...
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