Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cookbook
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
cookbook
Commits
b024d9bf
"src/git@gitlab.redox-os.org:redox-os/relibc.git" did not exist on "d0a4f2f845f2129ee9d79aad65cda59eb26cc7e1"
Verified
Commit
b024d9bf
authored
5 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
WIP: add pkgar support
parent
e1654fdc
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitmodules
+4
-0
4 additions, 0 deletions
.gitmodules
cook.sh
+33
-4
33 additions, 4 deletions
cook.sh
pkgar
+1
-0
1 addition, 0 deletions
pkgar
with
38 additions
and
4 deletions
.gitmodules
+
4
−
0
View file @
b024d9bf
...
...
@@ -60,3 +60,7 @@
path = patches/jobserver-rs
url = https://gitlab.redox-os.org/redox-os/jobserver-rs.git
branch = redox
[submodule "pkgar"]
path = pkgar
url = https://gitlab.redox-os.org/redox-os/pkgar.git
branch = master
This diff is collapsed.
Click to expand it.
cook.sh
+
33
−
4
View file @
b024d9bf
...
...
@@ -15,15 +15,17 @@ export PREPARE_COPY=1
if
[
!
"
$(
uname
-s
)
"
=
"Redox"
]
then
function
docgen
{
CC
=
cc cargo run
--release
--manifest-path
"
$ROOT
/docgen/Cargo.toml"
--bin
docgen
--
"
$@
"
}
function
pkg
{
CC
=
cc cargo run
--release
--manifest-path
"
$ROOT
/pkgutils/Cargo.toml"
--bin
pkg
--
$@
CC
=
cc cargo run
--release
--manifest-path
"
$ROOT
/pkgutils/Cargo.toml"
--bin
pkg
--
"
$@
"
}
function
docgen
{
CC
=
cc cargo run
--release
--manifest-path
"
$ROOT
/
docgen
/Cargo.toml"
--bin
docgen
--
$@
function
pkgar
{
CC
=
cc cargo run
--release
--manifest-path
"
$ROOT
/
pkgar
/Cargo.toml"
--bin
pkgar
--
"
$@
"
}
fi
function
usage
{
...
...
@@ -423,6 +425,33 @@ function op {
unstage
)
rm
-rfv
stage
;;
pkg
)
if
[
!
-e
"
${
ROOT
}
/build/secret.key"
]
then
mkdir
-p
"
${
ROOT
}
/build"
pkgar
\
keygen
\
--secret
"
${
ROOT
}
/build/secret.key"
\
--public
"
${
ROOT
}
/build/public.key"
fi
pkgar
\
create
\
--secret
"
${
ROOT
}
/build/secret.key"
\
--file
stage.pkg
\
stage
if
command
-v
pigz
>
/dev/null
then
pigz
--force
stage.pkg
else
echo
"Install pigz for increased performance"
gzip
--force
recipes/jeremy/stage.pkg
fi
;;
unpkg
)
rm
-fv
stage.pkg stage.pkg.gz
;;
tar
)
echo
"name =
\"
$1
\"
"
>
"stage.toml"
echo
"version =
\"
$(
op
$1
version
)
\"
"
>>
"stage.toml"
...
...
This diff is collapsed.
Click to expand it.
pkgar
@
6855ee50
Subproject commit 6855ee50a3beda271975aebce50196ebdb75d442
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment