~teejee2008/timeshift/trunk

« back to all changes in this revision

Viewing changes to build-installer.sh

  • Committer: Tony George
  • Date: 2014-10-14 16:13:00 UTC
  • Revision ID: tony.george.kol@gmail.com-20141014161300-asw3g5qqq7qdbpub
Updated installer and build scripts; Some shared libs are now included in installer

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
 
 
3
app_name='timeshift'
 
4
app_fullname='Timeshift RSYNC'
 
5
tgz="../../pbuilder/"
 
6
dsc="../../builds/${app_name}*.dsc"
 
7
libs="../../libs"
 
8
 
3
9
backup=`pwd`
4
10
DIR="$( cd "$( dirname "$0" )" && pwd )"
5
11
cd $DIR
9
15
 
10
16
echo "Building installer..."
11
17
 
12
 
tgz="../../pbuilder/"
13
 
dsc="../../builds/timeshift*.dsc"
14
 
 
15
18
chmod u+x ./install.sh
16
19
 
17
20
# build installer -------------------------------------
31
34
        exit 1
32
35
fi
33
36
 
34
 
dpkg-deb -x ${arch}/timeshift*.deb ${arch}/extracted
 
37
dpkg-deb -x ${arch}/${app_name}*.deb ${arch}/extracted
35
38
 
36
39
cp -p --no-preserve=ownership -t ${arch}/extracted ./install.sh
 
40
cp -p --no-preserve=ownership -t ${arch}/extracted/usr/share/${app_name}/libs ${libs}/${arch}/libgee.so.2
 
41
cp -p --no-preserve=ownership -t ${arch}/extracted/usr/share/${app_name}/libs ${libs}/${arch}/libgudev-1.0.so.0
 
42
cp -p --no-preserve=ownership -t ${arch}/extracted/usr/share/${app_name}/libs ${libs}/${arch}/libjson-glib-1.0.so.0
 
43
chmod --recursive 0755 ${arch}/extracted/usr/share/${app_name}
37
44
 
38
 
makeself ${arch}/extracted ./timeshift-latest-${arch}.run "TimeShift (${arch})" ./install.sh 
 
45
makeself ${arch}/extracted ./${app_name}-latest-${arch}.run "${app_fullname} (${arch})" ./install.sh 
39
46
 
40
47
#check for errors
41
48
if [ $? -ne 0 ]; then
44
51
        exit 1
45
52
fi
46
53
 
47
 
cp -p --no-preserve=ownership ./${arch}/timeshift*.deb ./timeshift-latest-${arch}.deb 
 
54
cp -p --no-preserve=ownership ./${arch}/${app_name}*.deb ./${app_name}-latest-${arch}.deb 
48
55
 
49
56
done
50
57