Converted README to markdown
[rox-filer.git] / ROX-Filer / src / build
blob5f162ee87fbe1d30b853b748a2f38afea5a983df
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 # This should already exist for releases, but is needed for Git checkouts
7 if [ ! -f "$SRCDIR/ROX-Filer/src/configure" ]; then
8 (cd "$SRCDIR/ROX-Filer/src" && autoconf) || exit 1
9 fi
11 # This should already exist for releases, but is needed for Git checkouts
12 if [ ! -f "$SRCDIR/rox.1" ]; then
13 (make -C "$SRCDIR/ROX-Filer/src/Docs") || exit 1
16 if [ ! -f Makefile ]; then
17 "$SRCDIR/ROX-Filer/src/configure" "$@" || exit 1
20 [ -d "$DISTDIR/ROX-Filer" ] || mkdir "$DISTDIR/ROX-Filer" || exit 1
22 make "PLATFORM_DIR=$DISTDIR/ROX-Filer"|| exit 1
24 (cd "$SRCDIR" && cp -r Choices README README-es rox.xml rox.1 "$DISTDIR") || exit 1
25 (cd "$SRCDIR/ROX-Filer" && cp -r .DirIcon Help images Messages ROX AppInfo.xml AppRun Options.xml style.css subclasses Templates.ui "$DISTDIR/ROX-Filer") || exit 1
26 find "$DISTDIR" -name '.svn' -type d |xargs rm -rf
28 # Remove debugging symbols, if any
29 rm -f "$DISTDIR/ROX-Filer/ROX-Filer.dbg"