mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-11 23:49:38 -05:00
updated build scripts for ubuntu
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@835 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ecdbf90de5
commit
c2b87a4af2
@ -1,7 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
version="0.4.10b"
|
###################### PARAMETERS ####################
|
||||||
|
version="0.4.11b"
|
||||||
arch=`dpkg --print-architecture`
|
arch=`dpkg --print-architecture`
|
||||||
|
packager="Cyril Soler <csoler@users.sourceforge.net>"
|
||||||
|
######################################################
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo Building retroshare debian package version $version for Ubuntu $arch.
|
echo Building retroshare debian package version $version for Ubuntu $arch.
|
||||||
@ -11,6 +14,7 @@ echo " "- you have compiled libretroshare and retroshare-gui in ../../libretr
|
|||||||
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: RetroShare_"$version"_ubuntu_hardy_"$arch".deb
|
||||||
|
|
||||||
if ! test `whoami` = "root" ; then
|
if ! test `whoami` = "root" ; then
|
||||||
echo Please run this script as root.
|
echo Please run this script as root.
|
||||||
@ -22,15 +26,20 @@ echo
|
|||||||
echo Press [ENTER] when ok, else quit with Ctrl+C.
|
echo Press [ENTER] when ok, else quit with Ctrl+C.
|
||||||
read tmp
|
read tmp
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo Unzipping...
|
||||||
tar zxvf retroshare.tgz
|
tar zxvf retroshare.tgz
|
||||||
|
echo Changing ownership...
|
||||||
chown -R root.root retroshare
|
chown -R root.root retroshare
|
||||||
|
|
||||||
# setup version numbers and arch in DEBIAN/control
|
# setup version numbers and arch in DEBIAN/control
|
||||||
|
|
||||||
cat retroshare/DEBIAN/control | sed -e s/XXXXXX/"$version"/g | sed -e s/YYYYYY/"$arch"/g > retroshare/DEBIAN/control.tmp
|
echo Setting up version numbers...
|
||||||
|
cat retroshare/DEBIAN/control | sed -e s/XXXXXX/"$version"/g | sed -e s/YYYYYY/"$arch"/g | sed -e s/ZZZZZZ/"$packager"/g > retroshare/DEBIAN/control.tmp
|
||||||
mv retroshare/DEBIAN/control.tmp retroshare/DEBIAN/control
|
mv retroshare/DEBIAN/control.tmp retroshare/DEBIAN/control
|
||||||
|
|
||||||
# clean
|
# clean
|
||||||
|
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
|
||||||
@ -44,14 +53,23 @@ if ! test -f ../../libretroshare/src/rsiface/retroshare-nogui; then
|
|||||||
echo
|
echo
|
||||||
exit ;
|
exit ;
|
||||||
fi
|
fi
|
||||||
|
echo Stripping executables...
|
||||||
cp ../../retroshare-gui/src/RetroShare retroshare/usr/bin/
|
cp ../../retroshare-gui/src/RetroShare retroshare/usr/bin/
|
||||||
|
strip retroshare/usr/bin/RetroShare
|
||||||
cp ../../libretroshare/src/rsiface/retroshare-nogui retroshare/usr/bin/
|
cp ../../libretroshare/src/rsiface/retroshare-nogui retroshare/usr/bin/
|
||||||
|
strip retroshare/usr/bin/retroshare-nogui
|
||||||
|
|
||||||
# compute md5 sums
|
# compute md5 sums
|
||||||
|
echo Computing/setting md5 sums...
|
||||||
cd retroshare
|
cd retroshare
|
||||||
find usr -type f -exec md5sum {} \; > DEBIAN/md5sums
|
find usr -type f -exec md5sum {} \; > DEBIAN/md5sums
|
||||||
cd ..
|
cd ..
|
||||||
|
echo Creating package RetroShare_"$version"_ubuntu_hardy_"$arch".deb
|
||||||
|
|
||||||
dpkg-deb -b retroshare RetroShare_"$version"_ubuntu_hardy_"$arch".deb
|
dpkg-deb -b retroshare RetroShare_"$version"_ubuntu_hardy_"$arch".deb
|
||||||
|
|
||||||
# cleaning
|
# cleaning
|
||||||
|
echo Cleaning...
|
||||||
\rm -rf retroshare
|
\rm -rf retroshare
|
||||||
|
|
||||||
|
echo Done.
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user