Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etercifs
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etercifs
Commits
833e6356
Commit
833e6356
authored
Jan 30, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add kernel source repo checkout, update existing branches
parent
59cf4288
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
7 deletions
+40
-7
update_git.sh
develop/update_git.sh
+40
-7
No files found.
develop/update_git.sh
View file @
833e6356
#!/bin/sh -x
#!/bin/bash -x
# creates new branch for the major kernel version or update such branch
fatal
()
{
...
...
@@ -6,21 +8,52 @@ fatal()
exit
1
}
ECSOURCE
=
../../etercifs-source
MERGEOPT
=
"--no-edit"
MV
=
"
$1
"
[
-n
"
$MV
"
]
||
fatal
[
-n
"
$MV
"
]
||
fatal
"Run with version, f.i. ./update_git.sh 4.11"
KTAG
=
v
$MV
KBRANCH
=
linux-
$MV
.y
ELIST
=
"etersoft-common etersoft-share-flags etersoft-wine"
cd
../../cifs-2.6
||
fatal
if
[
!
-d
$ECSOURCE
]
;
then
cd
$(
dirname
$ECSOURCE
)
||
fatal
git clone https://gitlab.eterfund.ru/etersoft/etercifs-source.git
||
fatal
cd
etercifs-source
||
fatal
git remote add upstream https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
else
cd
$ECSOURCE
||
fatal
fi
git fetch upstream
git tag |
grep
"
$KTAG
"
||
fatal
"There is no
$KTAG
tag in the git repo."
if
git branch |
grep
-q
$KTAG
-etercifs
;
then
LASTTAG
=
$(
git describe
--tags
upstream/
$KBRANCH
)
||
fatal
echo
"Just update branch
$KTAG
-etercifs to latest commit from
$KBRANCH
with tag
$LASTTAG
"
git checkout
$KTAG
-etercifs
||
fatal
#git merge $MERGEOPT upstream/$KBRANCH || fatal
git merge
$MERGEOPT
$LASTTAG
||
fatal
exit
fi
echo
echo
"Update branches..."
for
i
in
$ELIST
;
do
git checkout
$i
||
fatal
git merge
$M
V
||
fatal
git merge
$M
ERGEOPT
$KTAG
||
fatal
done
# create branch from tag
git checkout
-b
$MV
-etercifs
$MV
||
fatal
echo
echo
"Create branch from the tag and merge all to it..."
git checkout
-b
$MV
-etercifs
$KTAG
||
fatal
for
i
in
$ELIST
;
do
git merge
$i
||
fatal
git merge
$
MERGEOPT
$
i
||
fatal
done
echo
"You are in branch
$MV
-etercifs, copy fs/cifs to "
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