FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
java-deptools/deploy.sh at master · fedora-java/java-deptools · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
fedora-java
/
java-deptools
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
java-deptools
/
deploy.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
19 lines (19 loc) · 737 Bytes
Breadcrumbs
java-deptools
/
deploy.sh
Copy path
File metadata and controls
executable file
·
19 lines (19 loc) · 737 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!
/bin/bash
set
-e
VERSION=0
RELNO=
"
$(
git rev-list
"
$(
git describe --tags --abbrev=0
)
..HEAD
"
--count
)
"
shell=
'
ssh root@java-deptools.fedorainfracloud.org
'
cmd=
'
git ls-tree -r HEAD |awk "/ blob /{print\$4}"
'
{
eval
"
$cmd
"
&&
git submodule foreach
"
$cmd
| sed s@^@
\$
path/@
"
;
}
|
\
sed
'
/^Entering /d
'
|
xargs tar --xform
"
s@^@java-deptools-
$VERSION
/@S
"
-cf java-deptools-
$VERSION
.tar.gz
rm -rf build
mkdir build
cd
build
sed
"
s/^Release:[^%]*/&.
$RELNO
/
"
../java-deptools.spec
>
java-deptools.spec
rpmbuild -bb -D
"
_sourcedir
$PWD
/..
"
-D
"
_rpmdir
$PWD
"
java-deptools.spec
cat noarch/java-deptools-
$VERSION
*
.noarch.rpm
|
$shell
'
set -e
cat > java-deptools.rpm
dnf reinstall -y java-deptools.rpm
systemctl restart java-deptools-frontend
'
Back
|
FazBrowse Home
|
New Git URL