-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathBuildDeb.sh
executable file
·83 lines (48 loc) · 2.05 KB
/
BuildDeb.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#! /bin/bash
#####
# This script should generally no longer be used,
# as Launchpad should build a daily release of the code on it's own.
# When a big release should be done, use:
# dch -imD maverick (To update the version number)
# svn copy https://orayta.googlecode.com/svn/trunk/ https://orayta.googlecode.com/svn/tags/release (To tag the current code as a new release)
# Then email me and ask me to request a build from launchpad.
#####
#This script should update all needed files that configure the .deb package, and build a new package for you
#Run this script only from the source dir that you want to build the .deb file from
echo "This script should update all needed files that configure Orayta's .deb package, and make a release redy for a .deb build (or PPA upload)"
echo "Internal use only! This should not be used for anythong else, ever!!!"
#############################################
#Fixed - no need for this anymore
##Hack around qmake's bug...
#touch Orayta
#qmake-qt4
#sed -i 's/[-][$][(]DEL_FILE[)] [$][(]TARGET[)]//g' Makefile
#sed -i 's/[-][$][(]DEL_FILE[)] Makefile//g' Makefile
#sed -i 's|[$][(]INSTALL_ROOT[)]/usr/local/bin|$(DESTDIR)/usr/bin|g' Makefile
#sed -i 's|[$][(]INSTALL_ROOT[)]/usr/share/Orayta/|$(DESTDIR)/usr/share/Orayta|g' Makefile
#sed -i 's|[$][(]INSTALL_ROOT[)]/usr/share/applications/|$(DESTDIR)/usr/share/applications|g' Makefile
#sed -i 's|[@][$][(]QMAKE[)] -unix -o Makefile Orayta.pro||g' Makefile
#sed -i 's|Orayta.pro||g' Makefile
#sed -i 's|/home/moshe/Orayta/svn/|\`pwd\`\/|g' Makefile
#mv Orayta.pro hide.tmp
#############################################
#Build the .deb package
#dpkg-buildpackage
echo "* Building first package..."
dch -imD maverick
debuild -S -k2C383923
echo "* Building second package..."
dch -imD lucid
debuild -S -k2C383923
echo "* Building third package..."
dch -imD karmic
debuild -S -k2C383923
echo "Now you can upload your files!"
echo "Using:"
echo " cd .."
echo " dput ppa:moshe-wagner/orayta <source.changes>"
#Clean up
#make clean
######
#mv hide.tmp Orayta.pro
######