summaryrefslogtreecommitdiff
path: root/xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'xibuild')
-rwxr-xr-xxibuild/build_all.sh2
-rwxr-xr-xxibuild/build_package.sh4
-rw-r--r--xibuild/build_profile3
3 files changed, 5 insertions, 4 deletions
diff --git a/xibuild/build_all.sh b/xibuild/build_all.sh
index 755c528..a0adbbc 100755
--- a/xibuild/build_all.sh
+++ b/xibuild/build_all.sh
@@ -86,7 +86,7 @@ while true; do
printf "${ERROR} Something went wrong!${NEUTRAL} Press enter to view recent log"
read out;
- less $(ls -1 --sort time $XIB_EXPORT/repo/*/*.log | head -1 | xargs realpath)
+ less $(ls -t1 $XIB_EXPORT/repo/*/*.log | head -1 | xargs realpath)
read -p "Retry build? [Y/n]" response
if [ "$response" = "n" ]; then
diff --git a/xibuild/build_package.sh b/xibuild/build_package.sh
index e09aecd..b430738 100755
--- a/xibuild/build_package.sh
+++ b/xibuild/build_package.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
GREEN="\033[0;32m"
BLUE="\033[0;34m"
@@ -70,7 +70,7 @@ fetch_source () {
extract $downloaded_file
# if the extracted file only had one directory
- if [ "$(ls -l | wc -l)" = "3" ]; then
+ if [ "$(ls -1 | wc -l)" = "2" ]; then
for file in */* */.*; do
echo $file | grep -q '\.$' || mv $file .
done;
diff --git a/xibuild/build_profile b/xibuild/build_profile
index 0997928..04c2ceb 100644
--- a/xibuild/build_profile
+++ b/xibuild/build_profile
@@ -1,3 +1,5 @@
+export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin:/tools/sbin
+
apply_patches () {
for p in *.patch; do
echo "Applying $p"
@@ -7,7 +9,6 @@ apply_patches () {
export JOBS=$(grep "processor" /proc/cpuinfo | wc -l)
export HOME=/root
-export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
export MAKEFLAGS="-j$JOBS"
export XORG_PREFIX="/usr"