mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-25 17:21:27 -05:00
updated ubuntu build script
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.4.x@1485 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
7da3b6200c
commit
9a54eeffd9
@ -1,13 +1,24 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
###################### PARAMETERS ####################
|
###################### PARAMETERS ####################
|
||||||
version="0.4.13e"
|
version="0.4.14-rc1"
|
||||||
arch=`dpkg --print-architecture`
|
arch=`dpkg --print-architecture`
|
||||||
packager="Cyril Soler <csoler@users.sourceforge.net>"
|
packager="Cyril Soler <csoler@users.sourceforge.net>"
|
||||||
|
|
||||||
|
# Directory where to find libretroshare/src/ and retroshare-gui/src
|
||||||
|
rsdir=/net/cortinaire/media/disc/csoler/RetroShare/retroshare-dev/v0.4.x/
|
||||||
|
|
||||||
######################################################
|
######################################################
|
||||||
|
|
||||||
echo attempting to get svn revision number...
|
echo attempting to get svn revision number...
|
||||||
svn=`svn info | grep 'Revision:' | cut -d\ -f2`
|
svn=`svn info | grep 'Revision:' | cut -d\ -f2`
|
||||||
|
|
||||||
|
if test "$svn" = "" ; then
|
||||||
|
echo Could not read svn version. Please enter it:
|
||||||
|
read svn
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo Got svn version $svn
|
||||||
echo done.
|
echo done.
|
||||||
version="$version"."$svn"
|
version="$version"."$svn"
|
||||||
pkgname=RetroShare_"$version"_ubuntu_"$arch".deb
|
pkgname=RetroShare_"$version"_ubuntu_"$arch".deb
|
||||||
@ -16,11 +27,13 @@ echo
|
|||||||
echo Building retroshare debian package version $version for Ubuntu $arch.
|
echo Building retroshare debian package version $version for Ubuntu $arch.
|
||||||
echo Please check that:
|
echo Please check that:
|
||||||
echo " "- you have sudo access and that root has right to write in this directory and the subdirectories.
|
echo " "- you have sudo access and that root has right to write in this directory and the subdirectories.
|
||||||
echo " "- you have compiled libretroshare and retroshare-gui in ../../libretroshare/src/
|
echo " "- you have compiled libretroshare and retroshare-gui in libretroshare/src/
|
||||||
echo " "and ../../retroshare-gui/src/
|
echo " "and retroshare-gui/src/
|
||||||
echo " "- you have updated version numbers in ../../retroshare-gui/src/util/rsversion.cpp
|
echo " "- you have updated version numbers in retroshare-gui/src/util/rsversion.cpp
|
||||||
echo " "and ../../retroshare-gui/src/retroshare.nsi
|
echo " "and retroshare-gui/src/retroshare.nsi
|
||||||
echo " "- version and name will be: $pkgname
|
echo " "- version and name will be: $pkgname
|
||||||
|
echo " "- current '$rsdir' variable is correct:
|
||||||
|
echo " "'rsdir='$rsdir
|
||||||
|
|
||||||
if ! test `whoami` = "root" ; then
|
if ! test `whoami` = "root" ; then
|
||||||
echo Please run this script as root.
|
echo Please run this script as root.
|
||||||
@ -49,20 +62,20 @@ echo Cleaning...
|
|||||||
find retroshare -name "*~" -exec \rm -f {} \;
|
find retroshare -name "*~" -exec \rm -f {} \;
|
||||||
|
|
||||||
# copy executables at the right place
|
# copy executables at the right place
|
||||||
if ! test -f ../../retroshare-gui/src/RetroShare; then
|
if ! test -f $rsdir/retroshare-gui/src/RetroShare; then
|
||||||
echo Can not find executable ../../retroshare-gui/src/RetroShare. Please fix this.
|
echo Can not find executable $rsdir/retroshare-gui/src/RetroShare. Please fix this.
|
||||||
echo
|
echo
|
||||||
exit ;
|
exit ;
|
||||||
fi
|
fi
|
||||||
if ! test -f ../../retroshare-nogui/src/retroshare-nogui; then
|
if ! test -f $rsdir/retroshare-nogui/src/retroshare-nogui; then
|
||||||
echo Can not find executable ../../retroshare-nogui/src/retroshare-nogui. Please fix this.
|
echo Can not find executable $rsdir/retroshare-nogui/src/retroshare-nogui. Please fix this.
|
||||||
echo
|
echo
|
||||||
exit ;
|
exit ;
|
||||||
fi
|
fi
|
||||||
echo Stripping executables...
|
echo Stripping executables...
|
||||||
cp ../../retroshare-gui/src/RetroShare retroshare/usr/bin/
|
cp $rsdir/retroshare-gui/src/RetroShare retroshare/usr/bin/
|
||||||
strip retroshare/usr/bin/RetroShare
|
strip retroshare/usr/bin/RetroShare
|
||||||
cp ../../retroshare-nogui/src/retroshare-nogui retroshare/usr/bin/
|
cp $rsdir/retroshare-nogui/src/retroshare-nogui retroshare/usr/bin/
|
||||||
strip retroshare/usr/bin/retroshare-nogui
|
strip retroshare/usr/bin/retroshare-nogui
|
||||||
|
|
||||||
# compute md5 sums
|
# compute md5 sums
|
||||||
|
Loading…
x
Reference in New Issue
Block a user