aboutsummaryrefslogtreecommitdiffstats
path: root/build_linux.sh
blob: 3521c0716ee036be04cea65e1e5b977add774718 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

for DIR in "./build/" "./build/i586/" "./build/x86_64/" "./build/tools/"
do
  (! [ -d $DIR ] ) && mkdir $DIR
done

cp -af tools/dd.sh build/tools/dd.sh
cp -af data/run.sh build/
cp -af data/makeself.sh build/
cp -af data/xdg-su build/
cp -af LICENSE.txt build/

make -f Makefile
mv -f po/locale/ build/

ARCH="i586"
if [ `uname -m` == "x86_64" ]; then
  ARCH="x86_64"
fi

cxfreeze usbdumper --target-dir=build/$ARCH/ --include-modules=PyQt4,dbus,sip,encodings.utf_8,encodings.ascii
cp -a bindata/$ARCH/* build/$ARCH/