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
13
Merge Requests
13
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.package
Commits
0c627968
Commit
0c627968
authored
Sep 24, 2012
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prepare will fetch last version of obs directory before modifying it
parent
78b366b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
prepare_slapos_build.sh
prepare_slapos_build.sh
+9
-6
No files found.
prepare_slapos_build.sh
View file @
0c627968
...
...
@@ -10,7 +10,7 @@ SLAPOS_DIRECTORY=slapos-node_$VERSION+$RECIPE_VERSION+0
OBS_DIRECTORY
=
$CURRENT_DIRECTORY
/home:VIFIBnexedi:branches:home:VIFIBnexedi/SlapOS-Node
# Prepare directory for new version if needed
# 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
...
...
@@ -19,7 +19,7 @@ fi
sed
"s/
\%
RECIPE_VERSION
\%
/
$RECIPE_VERSION
/g;s/
\%
VERSION
\%
/
$VERSION
/g"
$TEMPLATES_DIRECTORY
/Makefile.in
>
$CURRENT_DIRECTORY
/
$SLAPOS_DIRECTORY
/slapos/Makefile
sed
"s/
\%
RECIPE_VERSION
\%
/
$RECIPE_VERSION
/g;s/
\%
VERSION
\%
/
$VERSION
/g"
$TEMPLATES_DIRECTORY
/offline.sh.in
>
$CURRENT_DIRECTORY
/
$SLAPOS_DIRECTORY
/slapos/offline.sh
# Prepare Download Cache for SlapOS
# Prepare Download Cache for SlapOS
cd
$CURRENT_DIRECTORY
/
$SLAPOS_DIRECTORY
/slapos/
#rm -rf build/
bash offline.sh
...
...
@@ -32,6 +32,9 @@ tar -czf $SLAPOS_DIRECTORY.tar.gz $SLAPOS_DIRECTORY
################# Prepare obs ###################################
cd
$OBS_DIRECTORY
# Update directory
osc up
# Remove former configuration
osc
rm
-f
$SLAPOS_ORGINAL_DIRECTORY
*
.tar.gz
osc
rm
-f
slapos.spec
...
...
@@ -49,18 +52,18 @@ osc add slapos.spec
cd
$TEMPLATES_DIRECTORY
/debian
dch
-pm
-v
$VERSION
+
$RECIPE_VERSION
+0
--check-dirname-level
=
0
"New version of slapos (
$VERSION
+
$RECIPE_VERSION
)"
cd
$TEMPLATES_DIRECTORY
cd
$TEMPLATES_DIRECTORY
tar
-czf
debian.tar.gz debian
cd
$OBS_DIRECTORY
cp
$TEMPLATES_DIRECTORY
/debian.tar.gz
.
#prepare new .dsc file
osc
rm
-f
slapos
*
.dsc
sed
"s/
\%
RECIPE_VERSION
\%
/
$RECIPE_VERSION
/g;s/
\%
VERSION
\%
/
$VERSION
/g"
$TEMPLATES_DIRECTORY
/slapos.dsc.in
>
$SLAPOS_DIRECTORY
.dsc
osc add
$SLAPOS_DIRECTORY
.dsc
osc add
$SLAPOS_DIRECTORY
.dsc
## Upload new Package
osc commit
-m
" New SlapOS Recipe
$RECIPE_VERSION
"
# Save current version
echo
"
$RECIPE_VERSION
"
>
$CURRENT_DIRECTORY
/slapos-recipe-version
echo
"
$VERSION
"
>
$CURRENT_DIRECTORY
/slapos-version
\ No newline at end of file
echo
"
$RECIPE_VERSION
"
>
$CURRENT_DIRECTORY
/slapos-recipe-version
echo
"
$VERSION
"
>
$CURRENT_DIRECTORY
/slapos-version
\ No newline at end of file
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