Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
inary
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)
1
Konular (issue)
1
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
inary
Commits
349bc3c4
Kaydet (Commit)
349bc3c4
authored
Ock 20, 2021
tarafından
Your Name
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix
üst
364d40b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
17 deletions
+38
-17
inary-template
scripts/inary-template
+38
-17
No files found.
scripts/inary-template
Dosyayı görüntüle @
349bc3c4
...
...
@@ -2,6 +2,13 @@
set
-e
#define constants
available_build_types
=(
autotools cmaketools mesontools qt
)
info
(){
echo
-e
"
\0
33[32;1m
$1
\0
33[;0m:
$2
"
}
err
(){
echo
-e
"
\0
33[31;1m
$1
\0
33[;0m:
$2
"
}
inf_msg
(){
echo
"Create new inary package template. "
}
...
...
@@ -31,7 +38,7 @@ err_msg(){
echo
" -b build dependencies list"
echo
" -a package source archive list (required)"
echo
" -q disable rfp status"
echo
" -
qq
rfp description"
echo
" -
m
rfp description"
echo
" Package section:"
echo
" -r runtime dependencies list"
echo
" -v package verison"
...
...
@@ -60,7 +67,7 @@ confopt=""
forceyes
=
""
dummy
=
""
#opt parse
while
getopts
--
':o:n:t:c:p:u:e:l:i:s:d:b:a:r:v:
q:qq
:'
OPTION
;
do
while
getopts
--
':o:n:t:c:p:u:e:l:i:s:d:b:a:r:v:
m
:'
OPTION
;
do
case
"
$OPTION
"
in
o
)
directory
=
"
${
OPTARG
[@]
}
"
...
...
@@ -79,7 +86,7 @@ while getopts -- ':o:n:t:c:p:u:e:l:i:s:d:b:a:r:v:q:qq:' OPTION; do
fi
done
if
[
"
$a
"
==
"0"
]
;
then
e
cho
"Error:
Invalid build type:
$a
$buildtype
"
e
rr
"Error"
"
Invalid build type:
$a
$buildtype
"
err_msg
fi
;;
...
...
@@ -130,19 +137,16 @@ while getopts -- ':o:n:t:c:p:u:e:l:i:s:d:b:a:r:v:q:qq:' OPTION; do
v
)
ver
=
"
${
OPTARG
[@]
}
"
;;
q
)
rfp
=
"
${
OPTARG
[@]
}
"
if
[
"
$rfp
"
!=
"true"
]
&&
[
"
$rfp
"
!=
"false"
]
;
then
echo
"Error: Invalid rfp status:
$rfp
"
err_msg
fi
;;
qq
)
m
)
rfpdescription
=
"
${
OPTARGS
[@]
}
"
;;
?
)
for
arg
in
${
OPTARG
[@]
}
;
do
case
"
$arg
"
in
q
)
echo
"uwu"
rfp
=
"false"
;;
y
)
forceyes
=
"-y"
;;
...
...
@@ -175,9 +179,6 @@ if [ "$src" == "" ] ; then
err_msg
fi
info
(){
echo
-e
"
\0
33[32;1m
$1
\0
33[;0m:
$2
"
}
write_pspec
(){
echo
"<?xml version=
\"
1.0
\"
?>"
...
...
@@ -185,7 +186,7 @@ echo "<!DOCTYPE INARY SYSTEM \"https://gitlab.com/sulinos/sulinproject/inary/raw
echo
"<INARY>"
echo
" <Source>"
echo
" <Name>
$name
</Name>"
if
[
"
$rfp
"
!=
"fals
e"
]
;
then
if
[
"
$rfp
"
==
"tru
e"
]
;
then
echo
" <Rfp>
$rfpdescription
</Rfp>"
else
echo
" <!--Rfp>
$rfpdescription
</Rfp-->"
...
...
@@ -230,8 +231,6 @@ cat << EOF
<Files>
<Path fileType="config">/etc</Path>
<Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="info">/usr/share/info</Path>
<Path fileType="data">/usr/share</Path>
<Path fileType="executable">/usr/bin</Path>
...
...
@@ -243,6 +242,28 @@ cat << EOF
</Package>
EOF
echo
" <Package>"
echo
" <Name>
$name
-pages</Name>"
echo
" <RuntimeDependencies>"
echo
" <Dependency>
$name
</Dependency>"
echo
" </RuntimeDependencies>"
cat
<<
EOF
<Files>
<Path fileType="library">/usr/share/man/</Path>
</Files>
</Package>
EOF
echo
" <Package>"
echo
" <Name>
$name
-docs</Name>"
echo
" <RuntimeDependencies>"
echo
" <Dependency>
$name
</Dependency>"
echo
" </RuntimeDependencies>"
cat
<<
EOF
<Files>
<Path fileType="library">/usr/share/doc/</Path>
</Files>
</Package>
EOF
echo
" <Package>"
echo
" <Name>
$name
-32bit</Name>"
echo
" <RuntimeDependencies>"
for
i
in
$rdeps
;
do
...
...
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