r5010: Shouldn't use == in /bin/sh scripts, that's a bashism (Stephen Watson).
[rox-filer.git] / ROX-Filer / src / build
blob9aa0e51f75293724562fb3cfebace8f5cb70d7a5
1 #!/bin/sh
3 # This script is called by ROX-Filer-src.xml. It builds the filer
4 # against the GTK 2.4 headers, using the gtk-2.4 compatibility environment.
6 if [ "x$GTK24_HOME" = "x" ]; then
7 echo 'Run me like this:'
8 echo '0compile setup ../../ROX-Filer-src.xml build-dir'
9 echo 'cd build-dir'
10 echo '0compile build'
11 exit 1
14 if [ ! -f Makefile ]; then
15 "$GTK24_HOME/gtk-2.4" "$SRCDIR/ROX-Filer/src/configure" "$@" || exit 1
18 [ -d "$DISTDIR/ROX-Filer" ] || mkdir "$DISTDIR/ROX-Filer" || exit 1
20 "$GTK24_HOME/gtk-2.4" make "PLATFORM_DIR=$DISTDIR/ROX-Filer"|| exit 1
22 (cd "$SRCDIR" && cp -ru Choices install.sh README README-es ROX-Filer.xml rox.xml rox.1 "$DISTDIR") || exit 1
23 (cd "$SRCDIR/ROX-Filer" && cp -ru .DirIcon Help images Messages ROX AppInfo.xml AppRun Options.xml style.css subclasses "$DISTDIR/ROX-Filer") || exit 1
24 find "$DISTDIR" -name '.svn' -type d |xargs rm -rf
26 # Remove debugging symbols, if any
27 rm -f "$DISTDIR/ROX-Filer/ROX-Filer.dbg"