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
1246cea2
Commit
1246cea2
authored
Jul 09, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add set_specdir function for fill SPECDIR
parent
9b3d7f87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
spec
share/eterbuild/functions/spec
+14
-0
No files found.
share/eterbuild/functions/spec
View file @
1246cea2
...
...
@@ -178,3 +178,17 @@ spec_by_srpm()
PKGNAME
=
$(
rpm
-qp
--queryformat
"%{NAME}"
$PKG
)
[
-n
"
$PKGNAME
"
]
&&
echo
$PKGNAME
.spec
}
# set specdir by spec (run with full path to spec only or in spec dir)
set_specdir
()
{
SPECDIR
=
.
# get dir from the first spec
if
[
-r
"
$1
"
]
;
then
SPECDIR
=
`
dirname
$1
`
fi
# if spec has no full path, guess from pwd
if
[
"
$SPECDIR
"
=
"."
]
;
then
SPECDIR
=
`
pwd
`
fi
}
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