This repository has been archived by the owner on May 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
94 changed files
with
5,671 additions
and
2,439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
polo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/bin/bash | ||
|
||
app_name=$(cat app_name) | ||
pkg_name=$(cat pkg_name) | ||
|
||
tgz="../../pbuilder/" | ||
dsc="../../builds/${pkg_name}*.dsc" | ||
libs="../../libs" | ||
|
||
backup=`pwd` | ||
DIR="$( cd "$( dirname "$0" )" && pwd )" | ||
cd $DIR | ||
|
||
sh build-source.sh | ||
|
||
cd installer | ||
|
||
for arch in i386 amd64 | ||
do | ||
|
||
echo "" | ||
echo "==========================================================================" | ||
echo " build-deb.sh : $arch" | ||
echo "==========================================================================" | ||
echo "" | ||
|
||
rm -rfv ${arch} | ||
mkdir -pv ${arch} | ||
|
||
echo "-------------------------------------------------------------------------" | ||
|
||
sudo pbuilder --build --buildresult ${arch} --basetgz "${tgz}base-${arch}.tgz" ${dsc} | ||
|
||
#check for errors | ||
if [ $? -ne 0 ]; then | ||
cd "$backup"; echo "Failed"; exit 1; | ||
fi | ||
|
||
echo "--------------------------------------------------------------------------" | ||
|
||
cp -pv --no-preserve=ownership ./${arch}/${pkg_name}*.deb ./${pkg_name}-${arch}.deb | ||
|
||
#check for errors | ||
if [ $? -ne 0 ]; then | ||
cd "$backup"; echo "Failed"; exit 1; | ||
fi | ||
|
||
echo "--------------------------------------------------------------------------" | ||
|
||
done | ||
|
||
cd "$backup" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
|
||
backup=`pwd` | ||
DIR="$( cd "$( dirname "$0" )" && pwd )" | ||
cd $DIR | ||
|
||
app_name=$(cat app_name) | ||
pkg_name=$(cat pkg_name) | ||
|
||
# build debs | ||
sh build-deb.sh | ||
|
||
cd installer | ||
|
||
for arch in i386 amd64 | ||
do | ||
|
||
rm -rfv ${arch}/files | ||
mkdir -pv ${arch}/files | ||
|
||
echo "" | ||
echo "==========================================================================" | ||
echo " build-installers.sh : $arch" | ||
echo "==========================================================================" | ||
echo "" | ||
|
||
dpkg-deb -x ${arch}/${pkg_name}*.deb ${arch}/files | ||
|
||
#check for errors | ||
if [ $? -ne 0 ]; then | ||
cd "$backup"; echo "Failed"; exit 1; | ||
fi | ||
|
||
echo "--------------------------------------------------------------------------" | ||
|
||
rm -rfv ${arch}/${pkg_name}*.* # remove extra files | ||
cp -pv --no-preserve=ownership ./sanity.config ./${arch}/sanity.config | ||
sanity --generate --base-path ./${arch} --out-path . --arch ${arch} | ||
|
||
#check for errors | ||
if [ $? -ne 0 ]; then | ||
cd "$backup"; echo "Failed"; exit 1; | ||
fi | ||
|
||
echo "--------------------------------------------------------------------------" | ||
|
||
done | ||
|
||
|
||
cd "$backup" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
|
||
backup=`pwd` | ||
DIR="$( cd "$( dirname "$0" )" && pwd )" | ||
cd "$DIR" | ||
|
||
app_name=$(cat app_name) | ||
pkg_name=$(cat pkg_name) | ||
|
||
echo "" | ||
echo "==========================================================================" | ||
echo " build-source.sh" | ||
echo "==========================================================================" | ||
echo "" | ||
|
||
echo "app_name: $app_name" | ||
echo "pkg_name: $pkg_name" | ||
echo "--------------------------------------------------------------------------" | ||
|
||
# commit to bzr repo | ||
bzr add * | ||
bzr commit -m "updated" | ||
|
||
#skip errors as commit may fail if no changes | ||
|
||
echo "--------------------------------------------------------------------------" | ||
|
||
# clean build dir | ||
rm -rf ../builds | ||
|
||
# build source | ||
bzr builddeb --source --native --build-dir ../builds/temp --result-dir ../builds | ||
|
||
#check for errors | ||
if [ $? -ne 0 ]; then | ||
cd "$backup"; echo "Failed"; exit 1; | ||
fi | ||
|
||
echo "--------------------------------------------------------------------------" | ||
|
||
# list files | ||
ls -l ../builds | ||
|
||
echo "-------------------------------------------------------------------------" | ||
|
||
cd "$backup" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.