Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HardenedBSD
hbsd_build
Commits
0ef61c81
Commit
0ef61c81
authored
Dec 05, 2019
by
Yarema
Browse files
Support BUILD-LATEST symlink and sync
parent
d9a0b019
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/publish.sh
View file @
0ef61c81
...
...
@@ -25,22 +25,18 @@
# SUCH DAMAGE.
publish_release
()
{
local
res
mv
${
HBSD_STAGEDIR
}
${
HBSD_PUBDIR
}
/
${
HBSD_BUILDNUMBER
}
res
=
${
?
}
[
${
res
}
-gt
0
]
&&
return
${
res
}
ln
-sf
${
HBSD_BUILDNUMBER
}
${
HBSD_PUBDIR
}
/BUILD-LATEST
return
${
?
}
}
kick_publisher_tires
()
{
local
res
[
-z
"
${
HBSD_MIRROR_MASTER
}
"
]
&&
return
0
rsync
-a
${
HBSD_PUBDIR
}
/
${
HBSD_BUILDNUMBER
}
/
\
${
HBSD_MIRROR_MASTER
}
:
${
HBSD_MIRROR_PUBDIR
}
/build-
${
HBSD_BUILDNUMBER
}
res
=
${
?
}
if
[
${
res
}
-gt
0
]
;
then
return
${
res
}
fi
rsync
-a
${
HBSD_PUBDIR
}
/
${
HBSD_MIRROR_MASTER
}
:
${
HBSD_MIRROR_PUBDIR
}
/
return
${
?
}
}
Write
Preview
Supports
Markdown
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