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
81422ff2
Commit
81422ff2
authored
7 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup tar file method
parent
9865c157
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
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
cook.sh
+21
-18
21 additions, 18 deletions
cook.sh
recipes/lua/recipe.sh
+1
-2
1 addition, 2 deletions
recipes/lua/recipe.sh
with
24 additions
and
20 deletions
.gitignore
+
2
−
0
View file @
81422ff2
build
build
repo
repo
source
source.tar
stage
stage
stage.tar
stage.tar
This diff is collapsed.
Click to expand it.
cook.sh
+
21
−
18
View file @
81422ff2
...
@@ -13,7 +13,6 @@ export BINDIR=bin
...
@@ -13,7 +13,6 @@ export BINDIR=bin
export
CARGOFLAGS
=
export
CARGOFLAGS
=
set
-e
set
-e
shopt
-s
nullglob
function
usage
{
function
usage
{
echo
"cook.sh
$1
<op>"
>
&2
echo
"cook.sh
$1
<op>"
>
&2
...
@@ -49,40 +48,44 @@ function op {
...
@@ -49,40 +48,44 @@ function op {
op
$1
unfetch
op
$1
unfetch
;;
;;
fetch
)
fetch
)
if
[
-
z
"
$
GIT
"
]
if
[
-
n
"
$
TAR
"
]
then
then
if
[
!
-f
"
$(
basename
"
$SRC
"
)
"
]
if
[
!
-f
source.tar
]
then
then
wget
"
$SRC
"
wget
"
$TAR
"
-O
source.tar
fi
if
[
!
-d
source
]
then
mkdir source
tar
xvf source.tar
-C
source
--strip-components
1
fi
fi
rm
-rf
build
rm
-rf
build
tar
xvf
"
$(
basename
"
$SRC
"
)
"
cp
-r
source
build
mv
"
$DIR
"
build
elif
[
-n
"
$GIT
"
]
else
then
if
[
!
-d
build
]
if
[
!
-d
source
]
then
then
git clone
--recursive
"
$GIT
"
build
git clone
--recursive
"
$GIT
"
source
fi
fi
pushd
build
>
/dev/null
pushd
source
>
/dev/null
git pull
git pull
git submodule
sync
git submodule
sync
git submodule update
--init
--recursive
git submodule update
--init
--recursive
popd
>
/dev/null
popd
>
/dev/null
fi
for
patch
in
*
.patch
rm
-rf
build
do
cp
-r
source
build
patch
-p1
-d
build <
"
$patch
"
fi
done
;;
;;
unfetch
)
unfetch
)
rm
-rfv
build
rm
-rfv
build
source
if
[
!
-z
"
$SRC
"
]
if
[
-n
"
$TAR
"
]
then
then
rm
-f
"
$(
basename
"
$SRC
"
)
"
rm
-f
source.tar
fi
fi
;;
;;
version
)
version
)
...
...
This diff is collapsed.
Click to expand it.
recipes/lua/recipe.sh
+
1
−
2
View file @
81422ff2
VERSION
=
5.3.1
VERSION
=
5.3.1
SRC
=
http://www.lua.org/ftp/lua-
$VERSION
.tar.gz
TAR
=
http://www.lua.org/ftp/lua-
$VERSION
.tar.gz
DIR
=
lua-
$VERSION
function
recipe_version
{
function
recipe_version
{
echo
"
$VERSION
"
echo
"
$VERSION
"
...
...
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