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
16fe0853
Commit
16fe0853
authored
Oct 18, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove obsoleted mkpatch
parent
57fb224a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
79 deletions
+0
-79
mkpatch
bin/mkpatch
+0
-79
No files found.
bin/mkpatch
deleted
100755 → 0
View file @
57fb224a
#!/bin/sh
# 2003-2006, 2008 (c) Etersoft www.etersoft.ru
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
# Make patch for file in $1 against CVS/SVN repository or .orig file
# load common functions, compatible with local and installed script
.
`
dirname
$0
`
/../share/eterbuild/functions/common
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
if
[
-n
"
$DD1
"
]
;
then
export
$DD1
TOPDIR
=
$TOPOBJDIR
fi
if
[
-n
"
$DD2
"
]
;
then
export
$DD2
TOPDIR
=
$top_builddir
fi
if
[
-n
"
$DD3
"
]
;
then
export
$DD3
TOPDIR
=
$top_srcdir
fi
#test -z "$TOPDIR" && exit 1
#echo "TOPDIR: $TOPDIR"
export
TOPDIR
if
[
-f
$1
.orig
]
;
then
DIFILE
=
`
realpath
$1
`
[
-n
"
$TOPDIR
"
]
&&
cd
"
$TOPDIR
"
DIFILE
=
${
DIFILE
/
`
realpath
$PWD
`
\//
}
#echo 2 $DIFILE $PWD
diff
-purN
$DIFILE
.orig
$DIFILE
>
$DIFILE
.patch
exit
0
fi
# a= - against rpm requires
if
[
-n
"
$CVS
"
-a
-d
CVS
]
;
then
DIFILE
=
`
realpath
$1
`
[
-n
"
$TOPDIR
"
]
&&
cd
"
$TOPDIR
"
DIFILE
=
${
DIFILE
/
`
realpath
$PWD
`
\//
}
#echo 1 $DIFILE $PWD
a
=
cvs diff
-u
$DIFILE
>
$DIFILE
.patch
exit
0
fi
if
[
-n
"
$SVN
"
-a
-d
.svn
]
;
then
DIFILE
=
`
realpath
$1
`
[
-n
"
$TOPDIR
"
]
&&
cd
"
$TOPDIR
"
DIFILE
=
${
DIFILE
/
`
realpath
$PWD
`
\//
}
#echo 2 $DIFILE $PWD
a
=
svn diff
$DIFILE
>
$DIFILE
.patch
exit
0
fi
if
[
-n
"
$GIT
"
]
;
then
DIFILE
=
`
realpath
$1
`
[
-n
"
$TOPDIR
"
]
&&
cd
"
$TOPDIR
"
DIFILE
=
${
DIFILE
/
`
realpath
$PWD
`
\//
}
#echo 2 $DIFILE $PWD
a
=
git diff
$DIFILE
|
sed
-e
"s|^--- a/|--- |g"
|
sed
-e
"s|^
\+\+\+
b/|
\+\+\+
|g"
>
$DIFILE
.patch
exit
0
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