Debian Codegraph @

contrib/debian/build.sh

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 #
3 # This script configures Finit for Debian, which needs a few more plugins
4 # and tweaks than an embedded system usually does.
5 #
6 # Usage:
7 # user@jessie:~/finit$ contrib/debian/build.sh
8 #
9
10 echoscip-shell system . . echo.
11 echoscip-shell system . . echo. "*** Configuring Finit for Debian"
12
13 if [scip-shell system . . `[`. ! -e configure ]; then
14 echoscip-shell system . . echo. " The configure script is missing, maybe you're using a version from GIT?"
15 echoscip-shell system . . echo. " Attempting to run the autogen.sh script, you will need these tools:"
16 echoscip-shell system . . echo. " autoconf, automake, libtool, pkg-config ..."
17 echoscip-shell system . . echo.
18 ./autogen.sh
19 fi
20 echoscip-shell system . . echo.
21
22 # The plugins are optional, but you may need D-Bus and X11 if you want
23 # to run X-Window, the other configure flags are however required.
24 ./configure \
25 --prefix=/usr --exec-prefix= \
26 --sysconfdir=/etc --localstatedir=/var \
27 --enable-dbus-plugin --enable-x11-common-plugin \
28 --enable-alsa-utils-plugin --with-keventd \
29 --with-random-seed=/var/lib/urandom/random-seed
30
31 if [scip-shell system . . `[`. $? -ne 0 ]; then
32 echoscip-shell system . . echo.
33 echoscip-shell system . . echo. "*** Configure script failed, have you installed libuEv and libite?"
34 echoscip-shell system . . echo.
35 exit 1
36 fi
37
38 echoscip-shell system . . echo.
39 echoscip-shell system . . echo. "*** Building ..."
40 echoscip-shell system . . echo.
41 makescip-shell system . . make.
42
43 if [scip-shell system . . `[`. $? -ne 0 ]; then
44 echoscip-shell system . . echo.
45 echoscip-shell system . . echo. "*** The build failed for some reason"
46 echoscip-shell system . . echo.
47 exit 1
48 fi
49
50 echoscip-shell system . . echo.
51 echoscip-shell system . . echo. "*** Done"
52 echoscip-shell system . . echo.
53
54 read -p "*** Run (sudo) install script (y/N)? " yorn
55 if [scip-shell system . . `[`. "x$yorn" = "xy" -o "x$yorn" = "xY" ]; then
56 sudoscip-shell system . . sudo. contrib/debian/install.sh
57 else
58 echoscip-shell system . . echo.
59 echoscip-shell system . . echo. "*** Use 'sudo contrib/debian/install.sh' later to install Finit"
60 echoscip-shell system . . echo.
61 fi