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
d34e16dd
You need to sign in or sign up before continuing.
Commit
d34e16dd
authored
Jan 20, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mkpatch: add top_srcdir support
parent
b30a824e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
mkpatch
bin/mkpatch
+7
-0
No files found.
bin/mkpatch
View file @
d34e16dd
...
...
@@ -11,9 +11,11 @@
if
[
-f
Makefile
]
;
then
DD1
=
`
grep
^TOPOBJDIR Makefile |
sed
-e
"s| ||g"
`
DD2
=
`
grep
^top_builddir Makefile |
sed
-e
"s| ||g"
`
DD3
=
`
grep
^top_srcdir Makefile |
sed
-e
"s| ||g"
`
elif
[
-f
Makefile.in
]
;
then
DD1
=
`
grep
^TOPOBJDIR Makefile.in |
sed
-e
"s| ||g"
`
DD2
=
`
grep
^top_builddir Makefile.in |
sed
-e
"s| ||g"
`
DD3
=
`
grep
^top_srcdir Makefile.in |
sed
-e
"s| ||g"
`
else
warning
"Can't get topdir from Makefile.in"
fi
...
...
@@ -28,6 +30,11 @@ if [ -n "$DD2" ] ; then
TOPDIR
=
$top_builddir
fi
if
[
-n
"
$DD3
"
]
;
then
export
$DD3
TOPDIR
=
$top_srcdir
fi
#test -z "$TOPDIR" && exit 1
#echo "TOPDIR: $TOPDIR"
export
TOPDIR
...
...
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