Skip to content

Commit

Permalink
Update build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
teejee2008 committed Oct 12, 2013
1 parent fc6be21 commit 74a82b8
Show file tree
Hide file tree
Showing 17 changed files with 87 additions and 1,557 deletions.
8 changes: 8 additions & 0 deletions build-binary → build-deb.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#!/bin/bash

backup=`pwd`
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd "$DIR"

rm -rf ../builds
bzr builddeb --native --build-dir ../builds/temp --result-dir ../builds
ls -l ../builds

cd "$backup"
4 changes: 0 additions & 4 deletions build-install

This file was deleted.

10 changes: 10 additions & 0 deletions build-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

backup=`pwd`
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd "$DIR"

sh ./build-deb.sh
sudo gdebi --non-interactive ../builds/timeshift*.deb

cd "$backup"
32 changes: 0 additions & 32 deletions build-installer

This file was deleted.

35 changes: 35 additions & 0 deletions build-installer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash

backup=`pwd`
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd $DIR

sh ./build-source.sh
cd ./installer

tgz="/home/teejee/projects/pbuilder/"
dsc="/home/teejee/projects/builds/timeshift*.dsc"

chmod u+x ./install.sh

# build installer -------------------------------------

for arch in i386 amd64
do

rm -rf ${arch}
mkdir -p ${arch}

sudo pbuilder --build --buildresult ${arch} --basetgz "${tgz}base-${arch}.tgz" ${dsc}

dpkg-deb -x ${arch}/timeshift*.deb ${arch}/extracted

cp -p --no-preserve=ownership -t ${arch}/extracted ./install.sh

makeself ${arch}/extracted ./timeshift-latest-${arch}.run "TimeShift (${arch})" ./install.sh

cp -p --no-preserve=ownership -t /home/teejee/Dropbox/Public/linux ./timeshift-latest-${arch}.run

done

cd "$backup"
8 changes: 8 additions & 0 deletions build-source → build-source.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#!/bin/bash

backup=`pwd`
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd "$DIR"

rm -rf ../builds
bzr builddeb --source --native --build-dir ../builds/temp --result-dir ../builds
ls -l ../builds

cd "$backup"
File renamed without changes.
File renamed without changes.
Binary file removed installer/64bit/timeshift
Binary file not shown.
31 changes: 6 additions & 25 deletions installer/install.sh
Original file line number Diff line number Diff line change
@@ -1,33 +1,12 @@
#!/bin/bash

prefix=/usr
bindir=${prefix}/bin
sharedir=${prefix}/share
localedir=${sharedir}/locale
launcherdir=${sharedir}/applications
backup=`pwd`
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd "$DIR"

echo "Installing files..."

mkdir -p "${bindir}"
mkdir -p "${sharedir}"
mkdir -p "${launcherdir}"
mkdir -p "${sharedir}/timeshift"
mkdir -p "${sharedir}/pixmaps"
mkdir -p "/mnt/timeshift"

#binary
install -m 0755 timeshift "${bindir}"

#shared files
cp -dpr --no-preserve=ownership -t "${sharedir}/timeshift" ./share/timeshift/*
chmod --recursive 0755 ${sharedir}/timeshift/*

#launcher
install -m 0755 TimeShift.desktop "${launcherdir}"

#app icon
install -m 0755 ./share/pixmaps/timeshift.png "${sharedir}/pixmaps/"

sudo cp -dpr --no-preserve=ownership -t / ./*

if [ $? -eq 0 ]; then
echo "TimeShift was installed successfully"
Expand All @@ -36,3 +15,5 @@ else
echo "Installation failed!"
exit 1
fi

cd "$backup"
Loading

0 comments on commit 74a82b8

Please sign in to comment.