Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
289856f3
Commit
289856f3
authored
12 years ago
by
Emmanuel Milou
Browse files
Options
Downloads
Patches
Plain Diff
[#14162] Build tarball for Debian Maintainer as a Jenkins artefact
parent
15fea746
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/build-system/build_tarball.sh
+100
-0
100 additions, 0 deletions
tools/build-system/build_tarball.sh
tools/build-system/launch-build-machine-jenkins.sh
+7
-1
7 additions, 1 deletion
tools/build-system/launch-build-machine-jenkins.sh
with
107 additions
and
1 deletion
tools/build-system/build_tarball.sh
0 → 100755
+
100
−
0
View file @
289856f3
#!/bin/bash
#
# Script to build the source tarball for distribution on sflphone.org
#
# Author: Francois Marier <francois@debian.org>
if
[
!
-e
daemon/configure.ac
]
;
then
echo
"This script must be run in the root directory of the sflphone repository"
exit
1
fi
if
[
"z
$1
"
=
"z"
]
;
then
echo
"Usage:
$0
VERSION_NUMBER"
exit
2
fi
VERSION
=
$1
BUILDDIR
=
sflphone-
$VERSION
if
[
-e
$BUILDDIR
]
;
then
echo
"The build directory (
$BUILDDIR
) already exists. Delete it first."
exit
3
fi
mkdir
$BUILDDIR
cp
-r
*
$BUILDDIR
/
pushd
$BUILDDIR
rm
-rf
$BUILDDIR
rm
-f
*
.tar.gz
rm
-rf
lang/
rm
-rf
tools/
#rm -rf kde/
rm
-rf
.git/
rm
-f
.gitignore
find
-name
.project
-type
f
-exec
rm
{}
\;
find
-name
.cproject
-type
f
-exec
rm
{}
\;
find
-name
.settings
-type
d
-exec
rm
-rf
{}
\;
pushd
daemon
./autogen.sh
popd
pushd
daemon/libs/pjproject
find
-name
os-auto.mak
-type
f
-exec
rm
{}
\;
# Remove pre-built binaries
rm
-f
pjsip/bin/pjsip-test-x86_64-unknown-linux-gnu
rm
-f
pjsip-apps/bin/pjsua-x86_64-unknown-linux-gnu
rm
-f
pjlib/bin/pjlib-test-x86_64-unknown-linux-gnu
rm
-f
pjnath/bin/pjnath-test-x86_64-unknown-linux-gnu
rm
-f
pjnath/bin/pjturn-client-x86_64-unknown-linux-gnu
rm
-f
pjlib-util/bin/pjlib-util-test-x86_64-unknown-linux-gnu
rm
-f
pjnath/bin/pjturn-srv-x86_64-unknown-linux-gnu
rm
-f
pjmedia/bin/pjmedia-test-x86_64-unknown-linux-gnu
rm
-f
third_party/portaudio/src/hostapi/asio/Pa_ASIO.pdf
rm
-f
third_party/portaudio/src/hostapi/asio/Callback_adaptation_.pdf
# Put actual files in the tarball
rm
-f
config.guess config.sub
cp
/usr/share/misc/config.guess
.
cp
/usr/share/misc/config.sub
.
rm
-f
config.log config.status build.mak
rm
-f
pjlib/include/pj/compat/m_auto.h
rm
-f
pjlib/include/pj/compat/os_auto.h
rm
-f
pjmedia/include/pjmedia-codec/config_auto.h
rm
-f
pjmedia/include/pjmedia/config_auto.h
rm
-f
pjsip/include/pjsip/sip_autoconf.h
# Remove non-GPL compatible code
sed
-e
's/ milenage / /'
third_party/build/Makefile
>
third_party/build/Makefile.new
mv
third_party/build/Makefile.new third_party/build/Makefile
sed
-e
's/ -lmilenage-$(TARGET_NAME) / /'
build.mak.in
>
build.mak.in.new
mv
build.mak.in.new build.mak.in
sed
-e
's/ $(PJ_DIR)\/third_party\/lib\/libmilenage-$(LIB_SUFFIX) / /'
build.mak.in
>
build.mak.in.new
mv
build.mak.in.new build.mak.in
rm
-rf
third_party/build/ilbc/
rm
-rf
third_party/build/milenage/
rm
-rf
third_party/ilbc/
rm
-rf
third_party/milenage/
aclocal
--force
popd
pushd
gnome
./autogen.sh
popd
find
-name
autom4te.cache
-type
d
-exec
rm
-rf
{}
\;
find
-name
*
.in~
-type
f
-exec
rm
{}
\;
popd
# builddir
rm
-f
sflphone-
$VERSION
.tar.gz
tar
zcf sflphone-
$VERSION
.tar.gz sflphone-
$VERSION
rm
-rf
$BUILDDIR
This diff is collapsed.
Click to expand it.
tools/build-system/launch-build-machine-jenkins.sh
+
7
−
1
View file @
289856f3
...
...
@@ -24,7 +24,8 @@ SNAPSHOT_TAG=`date +%Y%m%d`
TAG_NAME_PREFIX
=
VERSION_NUMBER
=
"1.1.1"
LAUNCHPAD_PACKAGES
=(
"sflphone-common"
"sflphone-client-kde"
"sflphone-client-gnome"
"sflphone-plugins"
)
# LAUNCHPAD_PACKAGES=("sflphone-common" "sflphone-client-kde" "sflphone-client-gnome" "sflphone-plugins")
LAUNCHPAD_PACKAGES
=(
)
echo
echo
" /***********************
\\
"
...
...
@@ -263,6 +264,11 @@ done
# git push origin release
#fi
# Archive source tarball for Debian maintainer
.
`
dirname
$0
`
/build_tarball.sh
${
SOFTWARE_VERSION
}
# close file descriptor
exec
3>&-
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment