Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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
wine
wine-cw
Commits
8a3f7646
Commit
8a3f7646
authored
Sep 04, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support for various unpacked subdir name
parent
ca82bce9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
update-wine-cw.sh
update-wine-cw.sh
+12
-5
No files found.
update-wine-cw.sh
View file @
8a3f7646
...
...
@@ -12,7 +12,7 @@ TDIR=$(mktemp -d)
fatal
()
{
echo
"
$*
"
>
&2
echo
"
FATAL:
$*
"
>
&2
echo
"Removing
$TDIR
..."
rm
-rf
$TDIR
exit
1
...
...
@@ -27,8 +27,14 @@ cd $TDIR
erc
$F
FD
=
$(
basename
$F
.gz
)
CWVERSION
=
$(
echo
$FD
|
sed
-e
"s|crossover-sources-
\(
.*
\)
.tar|
\1
|"
)
#"
WD
=
$TDIR
/
$FD
/wine
test
-d
$WD
||
fatal
# try detect wine dir
WD
=
$TDIR
/
*
/wine
if
[
!
-d
$WD
]
;
then
WD
=
$TDIR
/
*
/
*
/wine
[
-d
$WD
]
||
fatal
"can't find wine dir in
$TDIR
/**/wine"
fi
VERSION
=
$(
cat
$WD
/VERSION |
sed
-e
"s|^Wine version ||"
)
cd
$CWDIR
||
fatal
...
...
@@ -37,7 +43,7 @@ if git checkout bcw-$CWVERSION 2>/dev/null ; then
fatal
"branch bcw-
$CWVERSION
already exists, skipping"
else
info
"Checkouting branch bcw-
$CWVERSION
..."
git checkout
-b
bcw-
$CWVERSION
wine-
$VERSION
||
fatal
git checkout
-b
bcw-
$CWVERSION
wine-
$VERSION
||
fatal
"can't create new branch"
fi
commit_files
()
...
...
@@ -57,8 +63,9 @@ commit_files
info
info
"Commit source to history branch"
info
"Checkouting branch history ..."
git checkout
history
||
fatal
git checkout
history
||
fatal
"can't checkout history"
commit_files
git tag cw-
$CWVERSION
echo
"Removing
$TDIR
..."
rm
-rf
$TDIR
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