From 5ced3216323329d305a83e060f3700c3e25abd8d Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Thu, 20 Nov 2003 19:44:11 +0000 Subject: [PATCH] Moved to the top level directory. --- maint/mc_glib1_compile | 53 --------------------- maint/mc_glib2_compile | 106 ----------------------------------------- 2 files changed, 159 deletions(-) delete mode 100755 maint/mc_glib1_compile delete mode 100755 maint/mc_glib2_compile diff --git a/maint/mc_glib1_compile b/maint/mc_glib1_compile deleted file mode 100755 index 46fa01c88..000000000 --- a/maint/mc_glib1_compile +++ /dev/null @@ -1,53 +0,0 @@ -#! /bin/sh - -# Get glib-1.2.10 and compile GNU Midnight Commander against it. -# Should be run from the top-level directory. - -: ${MC_TOPDIR=`pwd`} -: ${GLIB_VERSION=1.2.10} - -GLIB_DIR="glib-$GLIB_VERSION" -GLIB_TARBALL="glib-$GLIB_VERSION.tar.gz" -GLIB_URL="ftp://ftp.gtk.org/pub/gtk/v1.2/$GLIB_TARBALL" -GLIB_INSTDIR="$MC_TOPDIR/glib-inst" - -function get_file() { - curl --remote-name "$1" || \ - wget --passive-ftp "$1" || \ - wget "$1" || \ - exit 1 -} - -if test -f src/dir.c; then : ; else - echo "Not in the top-level directory of GNU Midnight Commander." 2>&1 - exit 1 -fi - -if test -f configure; then : ; else - ./autogen.sh --help >/dev/null || exit 1 -fi - -if gzip -vt "$GLIB_TARBALL"; then : ; else - get_file "$GLIB_URL" -fi - -rm -rf "$GLIB_DIR" -gzip -cd "$GLIB_TARBALL" | tar xf - -cd "$GLIB_DIR" -if test -f glist.c; then : ; else - echo "glib source is incomplete" 2>&1 - exit 1 -fi - -rm -rf "$GLIB_INSTDIR" -./configure --disable-shared --with-glib12 --prefix="$GLIB_INSTDIR" || exit 1 -make all || exit 1 -make install || exit 1 - -cd "$MC_TOPDIR" -./configure GLIB_CONFIG="$GLIB_INSTDIR/bin/glib-config" \ - PKG_CONFIG=/bin/false "$@" || exit 1 -make clean || exit 1 -make || exit 1 - -echo "GNU Midnight Commander has been successfully compiled" diff --git a/maint/mc_glib2_compile b/maint/mc_glib2_compile deleted file mode 100755 index dfe0498a1..000000000 --- a/maint/mc_glib2_compile +++ /dev/null @@ -1,106 +0,0 @@ -#! /bin/sh - -# Compile GNU Midnight Commander against glib 2.x. -# Should be run from the top-level directory. - -: ${MC_TOPDIR=`pwd`} -: ${TMP_INSTDIR=$MC_TOPDIR/tmp-inst} -: ${GLIB_VERSION=2.2.1} -: ${PKGC_VERSION=0.15.0} -: ${GETTEXT_VERSION=0.11.5} - -GLIB_DIR="glib-$GLIB_VERSION" -GLIB_TARBALL="glib-$GLIB_VERSION.tar.gz" -GLIB_URL="ftp://ftp.gtk.org/pub/gtk/v2.2/$GLIB_TARBALL" - -PKGC_DIR="pkgconfig-$PKGC_VERSION" -PKGC_TARBALL="pkgconfig-$PKGC_VERSION.tar.gz" -PKGC_URL="http://www.freedesktop.org/software/pkgconfig/releases/$PKGC_TARBALL" - -GETTEXT_DIR="gettext-$GETTEXT_VERSION" -GETTEXT_TARBALL="gettext-$GETTEXT_VERSION.tar.gz" -GETTEXT_URL="ftp://ftp.gnu.org/gnu/gettext/$GETTEXT_TARBALL" - -function get_file() { - curl --remote-name "$1" || \ - wget --passive-ftp "$1" || \ - wget "$1" || \ - exit 1 -} - -if test -f src/dir.c; then : ; else - echo "Not in the top-level directory of GNU Midnight Commander." 2>&1 - exit 1 -fi - -if test -f configure; then : ; else - ./autogen.sh --help >/dev/null || exit 1 -fi - -rm -rf "$TMP_INSTDIR" -PATH="$TMP_INSTDIR/bin:$PATH" -export PATH - -# Compile gettext -cd "$MC_TOPDIR" -if gzip -vt "$GETTEXT_TARBALL"; then : ; else - get_file "$GETTEXT_URL" -fi - -rm -rf "$GETTEXT_DIR" -gzip -cd "$GETTEXT_TARBALL" | tar xf - -cd "$GETTEXT_DIR" -if test -f src/gettext.c; then : ; else - echo "gettext source is incomplete" 2>&1 - exit 1 -fi - -./configure --disable-shared --disable-nls --prefix="$TMP_INSTDIR" || exit 1 -make all || exit 1 -make install || exit 1 - -# Compile pkgconfig -cd "$MC_TOPDIR" -if gzip -vt "$PKGC_TARBALL"; then : ; else - get_file "$PKGC_URL" -fi - -rm -rf "$PKGC_DIR" -gzip -cd "$PKGC_TARBALL" | tar xf - -cd "$PKGC_DIR" -if test -f pkg.c; then : ; else - echo "pkgconfig source is incomplete" 2>&1 - exit 1 -fi - -./configure --disable-shared --prefix="$TMP_INSTDIR" || exit 1 -make all || exit 1 -make install || exit 1 - -# Compile glib -cd "$MC_TOPDIR" -if gzip -vt "$GLIB_TARBALL"; then : ; else - get_file "$GLIB_URL" || exit 1 -fi - -rm -rf "$GLIB_DIR" -gzip -cd "$GLIB_TARBALL" | tar xf - -cd "$GLIB_DIR" -if test -f glib/glist.c; then : ; else - echo "glib source is incomplete" 2>&1 - exit 1 -fi - -./configure --disable-shared --prefix="$TMP_INSTDIR" \ - PKG_CONFIG="$TMP_INSTDIR/bin/pkg-config" \ - CPPFLAGS="-I$TMP_INSTDIR/include" \ - LDFLAGS="-L$TMP_INSTDIR/lib" || exit 1 -make all || exit 1 -make install || exit 1 - -cd "$MC_TOPDIR" -./configure PKG_CONFIG="$TMP_INSTDIR/bin/pkg-config" || exit 1 -make clean || exit 1 -make || exit 1 - -echo "GNU Midnight Commander has been successfully compiled"