Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
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
protobuf
Commits
6936f17b
Commit
6936f17b
authored
Dec 04, 2014
by
Feng Xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update post_process_dist.sh to produce a separate package for each
language.
parent
137dd0f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
11 deletions
+18
-11
configure.ac
configure.ac
+1
-1
post_process_dist.sh
post_process_dist.sh
+17
-10
No files found.
configure.ac
View file @
6936f17b
...
...
@@ -22,7 +22,7 @@ AC_CONFIG_MACRO_DIR([m4])
AC_ARG_VAR(DIST_LANG, [language to include in the distribution package (i.e., make dist)])
case "$DIST_LANG" in
"") DIST_LANG=
cpp
;;
"") DIST_LANG=
all
;;
all | cpp | java | python | javanano) ;;
*) AC_MSG_FAILURE([unknown language: $DIST_LANG]) ;;
esac
...
...
post_process_dist.sh
View file @
6936f17b
...
...
@@ -15,8 +15,8 @@
# non-testdata .txt files are converted to Windows-style line endings.
# 5) Cleans up after itself.
if
[
"
$1
"
==
""
-o
"
$2
"
==
""
]
;
then
echo
"USAGE:
$0
DISTFILE
LANGUAGE
"
>
&2
if
[
"
$1
"
==
""
]
;
then
echo
"USAGE:
$0
DISTFILE"
>
&2
exit
1
fi
...
...
@@ -27,8 +27,9 @@ fi
set
-ex
LANGUAGES
=
"cpp java python"
BASENAME
=
`
basename
$1
.tar.gz
`
LANGUAGE
=
$2
VERSION
=
${
BASENAME
:9
}
# Create a directory called "dist", copy the tarball there and unpack it.
mkdir
dist
...
...
@@ -45,17 +46,23 @@ cd $BASENAME/vsprojects
./convert2008to2005.sh
cd
..
# Build the dist again in .tar.gz and .tar.bz2 formats.
./configure
DIST_LANG
=
$LANGUAGE
make dist-gzip
make dist-bzip2
for
LANG
in
$LANGUAGES
;
do
# Build the dist again in .tar.gz
./configure
DIST_LANG
=
$LANG
make dist-gzip
mv
$BASENAME
.tar.gz ../protobuf-
$LANG
-
$VERSION
.tar.gz
done
# Convert all text files to use DOS-style line endings, then build a .zip
# distribution.
todos
*
.txt
*
/
*
.txt
make dist-zip
# Clean up.
mv
$BASENAME
.tar.gz
$BASENAME
.tar.bz2
$BASENAME
.zip ..
for
LANG
in
$LANGUAGES
;
do
# Build the dist again in .zip
./configure
DIST_LANG
=
$LANG
make dist-zip
mv
$BASENAME
.zip ../protobuf-
$LANG
-
$VERSION
.zip
done
cd
..
rm
-rf
$BASENAME
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