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
a4f68b16
Commit
a4f68b16
authored
Jul 20, 2016
by
Feng Xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing files in EXTRA_DIST and add a test.
Change-Id: If80725402173cdf50969cb08e7fe5affe3532fb2
parent
af8732ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
Makefile.am
Makefile.am
+1
-0
tests.sh
tests.sh
+25
-0
No files found.
Makefile.am
View file @
a4f68b16
...
...
@@ -782,6 +782,7 @@ EXTRA_DIST = $(@DIST_LANG@_EXTRA_DIST) \
editors/README.txt
\
editors/proto.vim
\
editors/protobuf-mode.el
\
examples/CMakeLists.txt
\
examples/README.txt
\
examples/Makefile
\
examples/addressbook.proto
\
...
...
tests.sh
View file @
a4f68b16
...
...
@@ -44,6 +44,30 @@ build_cpp() {
build_cpp_distcheck
()
{
./autogen.sh
./configure
make dist
# List all files that should be included in the distribution package.
git ls-files |
grep
"^
\(
java
\|
python
\|
objectivec
\|
csharp
\|
js
\|
ruby
\|
cmake
\|
examples
\)
"
|
\
grep
-v
".gitignore"
|
grep
-v
"java/compatibility_tests"
>
dist.lst
# Unzip the dist tar file.
DIST
=
`
ls
*
.tar.gz
`
tar
-xf
$DIST
cd
${
DIST
//.tar.gz
}
# Check if every file exists in the dist tar file.
FILES_MISSING
=
""
for
FILE
in
$(
<../dist.lst
)
;
do
if
!
file
$FILE
&>/dev/null
;
then
echo
"
$FILE
is not found!"
FILES_MISSING
=
"
$FILE
$FILES_MISSING
"
fi
done
cd
..
if
[
!
-z
"
$FILES_MISSING
"
]
;
then
echo
"Missing files in EXTRA_DIST:
$FILES_MISSING
"
exit
1
fi
# Do the regular dist-check for C++.
make distcheck
-j2
}
...
...
@@ -320,6 +344,7 @@ build_javascript() {
if
[
"$#"
-ne
1
]
;
then
echo
"
Usage:
$0
{ cpp |
cpp_distcheck |
csharp |
java_jdk6 |
java_jdk7 |
...
...
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