forked from ncmprhnsbl/openbox-porteus4.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenbox-build.sh
44 lines (34 loc) · 899 Bytes
/
openbox-build.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
#!/bin/bash
## Build xfce desktop.
## This script must be run from the root of the openbox dev folder
## The following folders should exist
## Enter the name of the folder that holds your openbox dev file
basef=`pwd`
## github
## |
## ---- DOC PKG32 PKG64 SRC TREE
##
## export64/32
## build
ARCH=`uname -m`
if [ "$ARCH" != "x86_64" ]; then
ARCH=i486
SUFFIX=32
else
SUFFIX=64
fi
[ ! -d $basef/PKG${SUFFIX} ] && { echo "Run this script from root of openbox dev folder"; exit; }
echo "Cleaning old build files"
[ ! -d build ] && mkdir build || rm -rf build/*
for a in `find $basef/PKG${SUFFIX} -type f | egrep "*.tgz|*.txz"`; do
installpkg --terse -root build $a
done
for a in `find $basef/PKG${SUFFIX} -name "*.xzm"`; do
xzm2dir $a build
done
cp -a $basef/TREE/* build
cd build
./launch_before_go_openbox.sh
rm launch_before_go_openbox.sh
cd -
#dir2xzm build 003-openbox${SUFFIX}.xzm