Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
15c6a127
Commit
15c6a127
authored
Jul 10, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmpub: add set spec name as option
parent
ee479b04
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
rpmpub
bin/rpmpub
+12
-6
No files found.
bin/rpmpub
View file @
15c6a127
...
...
@@ -15,17 +15,12 @@ load_mod spec rpm etersoft
if
[
"
$1
"
=
"-h"
]
;
then
echog
"rpmpub - Etersoft specific script for publish gear repo to target ftp dir"
echog
"Usage: rpmpub [-r
VERSION ] [TARGET
]"
echog
"Usage: rpmpub [-r
PROJECTVERSION ] [SPEC] [TARGETDIR
]"
echog
"You can set default target dir in UPLOADDIR variable in config file"
exit
0
fi
SPECNAME
=
$(
basename
$(
pwd
))
.spec
if
[
!
-r
$SPECNAME
]
;
then
fatal
"Spec
$SPECNAME
does not found in the current dir"
fi
# publish to unstable by default
ALPHA
=
unstable
...
...
@@ -34,6 +29,17 @@ if [ "$1" = "-r" ] ; then
shift
2
fi
if
[
-n
"
${
1
/*.spec/
}
"
]
;
then
SPECNAME
=
$(
basename
$(
pwd
))
.spec
else
SPECNAME
=
$1
shift
fi
if
[
!
-r
$SPECNAME
]
;
then
fatal
"Spec
$SPECNAME
does not found in the current dir"
fi
#ETERDESTSRPM=/var/ftp/pub/Etersoft/CIFS@Etersoft/$VERSION/sources
ETERDESTSRPM
=
$1
if
[
-z
"
$ETERDESTSRPM
"
]
;
then
...
...
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