Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos.package
Commits
22fa6509
Commit
22fa6509
authored
Jan 15, 2014
by
Rafael Monnerat
👻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always update files on target folder while prepare
parent
545c1bdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
prepare_slapos_build.sh
prepare_slapos_build.sh
+5
-5
No files found.
prepare_slapos_build.sh
View file @
22fa6509
...
@@ -22,13 +22,13 @@ TEMPLATES_DIRECTORY=$CURRENT_DIRECTORY/templates
...
@@ -22,13 +22,13 @@ TEMPLATES_DIRECTORY=$CURRENT_DIRECTORY/templates
SLAPOS_ORGINAL_DIRECTORY
=
slapos-node
SLAPOS_ORGINAL_DIRECTORY
=
slapos-node
SLAPOS_DIRECTORY
=
slapos-node_
$VERSION
+
$RECIPE_VERSION
+
$RELEASE
SLAPOS_DIRECTORY
=
slapos-node_
$VERSION
+
$RECIPE_VERSION
+
$RELEASE
# Prepare directory for new version if needed
if
[
!
-d
"
$CURRENT_DIRECTORY
/
$SLAPOS_DIRECTORY
"
]
;
then
cp
-r
$CURRENT_DIRECTORY
/
$SLAPOS_ORGINAL_DIRECTORY
$CURRENT_DIRECTORY
/
$SLAPOS_DIRECTORY
fi
function
prepare_template_files
function
prepare_template_files
{
{
# Prepare directory for new version if needed
mkdir
-p
$CURRENT_DIRECTORY
/
$SLAPOS_DIRECTORY
cp
-rf
$CURRENT_DIRECTORY
/
$SLAPOS_ORGINAL_DIRECTORY
/
*
$CURRENT_DIRECTORY
/
$SLAPOS_DIRECTORY
sed
$VERSION_REGEX
$TEMPLATES_DIRECTORY
/Makefile.in
>
$CURRENT_DIRECTORY
/
$SLAPOS_DIRECTORY
/slapos/Makefile
sed
$VERSION_REGEX
$TEMPLATES_DIRECTORY
/Makefile.in
>
$CURRENT_DIRECTORY
/
$SLAPOS_DIRECTORY
/slapos/Makefile
sed
$VERSION_REGEX
$TEMPLATES_DIRECTORY
/offline.sh.in
>
$CURRENT_DIRECTORY
/
$SLAPOS_DIRECTORY
/slapos/offline.sh
sed
$VERSION_REGEX
$TEMPLATES_DIRECTORY
/offline.sh.in
>
$CURRENT_DIRECTORY
/
$SLAPOS_DIRECTORY
/slapos/offline.sh
}
}
...
...
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