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
05a8a607
Commit
05a8a607
authored
Feb 14, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use a= command instead which and VAR= command for disable requires
parent
b68d7e51
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
mkpatch
bin/mkpatch
+4
-8
No files found.
bin/mkpatch
View file @
05a8a607
...
...
@@ -39,11 +39,6 @@ fi
#echo "TOPDIR: $TOPDIR"
export
TOPDIR
which cvs
>
/dev/null
&&
CVS
=
cvs
which svn
>
/dev/null
&&
SVN
=
svn
which git
>
/dev/null
&&
GIT
=
git
if
[
-f
$1
.orig
]
;
then
DIFILE
=
`
realpath
$1
`
[
-n
"
$TOPDIR
"
]
&&
cd
"
$TOPDIR
"
...
...
@@ -54,12 +49,13 @@ if [ -f $1.orig ] ; then
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
$CVS
diff
-u
$DIFILE
>
$DIFILE
.patch
a
=
cvs
diff
-u
$DIFILE
>
$DIFILE
.patch
exit
0
fi
...
...
@@ -68,7 +64,7 @@ if [ -n "$SVN" -a -d .svn ] ; then
[
-n
"
$TOPDIR
"
]
&&
cd
"
$TOPDIR
"
DIFILE
=
${
DIFILE
/
`
realpath
$PWD
`
\//
}
#echo 2 $DIFILE $PWD
$SVN
diff
$DIFILE
>
$DIFILE
.patch
a
=
svn
diff
$DIFILE
>
$DIFILE
.patch
exit
0
fi
...
...
@@ -77,7 +73,7 @@ if [ -n "$GIT" ] ; then
[
-n
"
$TOPDIR
"
]
&&
cd
"
$TOPDIR
"
DIFILE
=
${
DIFILE
/
`
realpath
$PWD
`
\//
}
#echo 2 $DIFILE $PWD
$GIT
diff
$DIFILE
|
sed
-e
"s|^--- a/|--- |g"
|
sed
-e
"s|^
\+\+\+
b/|
\+\+\+
|g"
>
$DIFILE
.patch
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