Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
9ada015e
Commit
9ada015e
authored
Apr 24, 2017
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Automatically convert sources to DOS line endings in Windows release zip.
Fixes #174
parent
cfd813e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
release.sh
release.sh
+11
-3
No files found.
release.sh
View file @
9ada015e
...
...
@@ -61,22 +61,30 @@ build_packages() {
echo
"========================================================================="
echo
"Building C++ package..."
echo
"========================================================================="
# make dist tarball and move into ..
cd
c++
doit autoreconf
-i
doit ./configure
doit make
-j6
distcheck
doit make dist-zip
doit
mv
capnproto-c++-
$VERSION
.tar.gz ..
doit
mv
capnproto-c++-
$VERSION
.zip ../capnproto-c++-win32-
$VERSION
.zip
doit make distclean
# build windows executables
doit ./configure
--host
=
i686-w64-mingw32
--with-external-capnp
\
--disable-shared
CXXFLAGS
=
'-static-libgcc -static-libstdc++'
doit make
-j6
capnp.exe capnpc-c++.exe capnpc-capnp.exe
doit i686-w64-mingw32-strip capnp.exe capnpc-c++.exe capnpc-capnp.exe
doit
mkdir
capnproto-tools-win32-
$VERSION
doit
mv
capnp.exe capnpc-c++.exe capnpc-capnp.exe capnproto-tools-win32-
$VERSION
doit zip
-r
../capnproto-c++-win32-
$VERSION
.zip capnproto-tools-win32-
$VERSION
doit make maintainer-clean
# repack dist tarball and win32 tools into win32 zip, with DOS line endings
doit
tar
zxf ../capnproto-c++-
$VERSION
.tar.gz
find capnproto-c++-
$VERSION
-name
'*.c++'
-o
-name
'*.h'
-o
-name
'*.capnp'
-o
-name
'*.md'
-o
-name
'*.txt'
|
grep
-v
testdata | doit xargs unix2dos
doit zip
-r
../capnproto-c++-win32-
$VERSION
.zip capnproto-c++-
$VERSION
capnproto-tools-win32-
$VERSION
rm
-rf
capnproto-c++-
$VERSION
capnproto-tools-win32-
$VERSION
cd
..
}
...
...
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