mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-25 23:06:10 -05:00
update on ubuntu source packaging
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2220 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3f4c0385c8
commit
445a36e9f1
Binary file not shown.
6
build_scripts/Ubuntu_src/README.txt
Normal file
6
build_scripts/Ubuntu_src/README.txt
Normal file
@ -0,0 +1,6 @@
|
||||
This directory contains the material for buildign a debian/ubuntu source package from
|
||||
the svn repository of RetroShare. The various files here are:
|
||||
|
||||
makeSourcePackage.sh : main script. Produces a .dsc file
|
||||
build.sh : compiles the source package. Produce a binary pkg for a given ubuntu distribution
|
||||
make_tgz.sh : rebuilds the basic directory structure if some config/debian files where modified
|
11
build_scripts/Ubuntu_src/clean.sh
Executable file
11
build_scripts/Ubuntu_src/clean.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
rm ./retroshare_0.5-1.diff.gz
|
||||
rm ./retroshare_0.5-1_source.build
|
||||
rm ./retroshare_0.5.orig.tar.gz
|
||||
rm ./retroshare_0.5-1_source.changes
|
||||
rm ./retroshare_0.5-1.dsc
|
||||
|
||||
rm *~
|
||||
find . -name "*~" -exec rm {} \;
|
||||
|
8
build_scripts/Ubuntu_src/cleanProFile.sh
Executable file
8
build_scripts/Ubuntu_src/cleanProFile.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
tmpfile=/tmp/toto42314321
|
||||
|
||||
cat "$1" | grep -v "CONFIG += version_detail_bash_script" > $tmpfile
|
||||
echo "INCLUDEPATH += ../libretroshare" > $1
|
||||
cat $tmpfile >> $1
|
||||
|
@ -9,14 +9,35 @@ packages="."
|
||||
|
||||
tar zxvf $packages/BaseRetroShareDirs.tgz
|
||||
|
||||
# Ultimately, use the following, but
|
||||
cd retroshare-0.5/src/libretroshare/
|
||||
svn co https://retroshare.svn.sourceforge.net/svnroot/retroshare/trunk/libretroshare/src .
|
||||
tar zxvf ../../../libretroshare.tgz
|
||||
# svn co https://retroshare.svn.sourceforge.net/svnroot/retroshare/trunk/libretroshare/src .
|
||||
cd ../../..
|
||||
#
|
||||
cd retroshare-0.5/src/retroshare-gui/
|
||||
# svn co https://retroshare.svn.sourceforge.net/svnroot/retroshare/trunk/retroshare-gui/src .
|
||||
tar zxvf ../../../retroshare-gui.tgz
|
||||
cd ../../..
|
||||
|
||||
cd retroshare-0.5/src/retroshare-gui/
|
||||
svn co https://retroshare.svn.sourceforge.net/svnroot/retroshare/trunk/retroshare-gui/src .
|
||||
cd ../../..
|
||||
# Various cleaning
|
||||
|
||||
find retroshare-0.5 -name ".svn" -exec rm -rf {} \; # remove all svn repositories
|
||||
|
||||
mv retroshare-0.5/src/retroshare-gui/RetroShare.pro retroshare-0.5/src/retroshare-gui/retroshare-gui.pro
|
||||
|
||||
./cleanProFile.sh retroshare-0.5/src/libretroshare/libretroshare.pro
|
||||
./cleanProFile.sh retroshare-0.5/src/retroshare-gui/retroshare-gui.pro
|
||||
|
||||
echo "DESTDIR = ../../libretroshare/src/lib/" > /tmp/toto75299
|
||||
cat retroshare-0.5/src/libretroshare/libretroshare.pro /tmp/toto75299 > /tmp/toto752992
|
||||
cp /tmp/toto752992 retroshare-0.5/src/libretroshare/libretroshare.pro
|
||||
|
||||
mkdir retroshare-0.5.orig
|
||||
cp -r retroshare-0.5/src retroshare-0.5.orig
|
||||
|
||||
# Call debuild to make the source debian package
|
||||
|
||||
cd retroshare-0.5
|
||||
debuild -S
|
||||
debuild -S -kC737CA98
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user