#!/bin/bash
# Bootstrap script for Endless OS Knowledge Apps
# Run this script on a clean source checkout to get ready for building.

POT_FILE=po/eos-knowledge.pot

test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
olddir=`pwd`

cd $srcdir
test -f configure.ac || {
    echo "You must run this script in the top-level checkout directory"
    exit 1
}

# Clone and update Jasmine submodule if this is a Git checkout
if test -d .git; then
    git submodule init .
    git submodule update --recursive
fi

# GNU gettext automake support doesn't get along with git
# https://bugzilla.gnome.org/show_bug.cgi?id=661128
touch -t 200001010000 $POT_FILE

# NOCONFIGURE is used by gnome-common
if test -z "$NOCONFIGURE"; then
    echo "This script will run ./configure automatically. If you wish to pass "
    echo "any arguments to it, please specify them on the $0 "
    echo "command line. To disable this behavior, have NOCONFIGURE=1 in your "
    echo "environment."
fi

# Run the actual tools to prepare the clean checkout
autoreconf -fi || exit $?
rm -f po/Makevars.template

cd "$olddir"
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"

#!/bin/bash
# Bootstrap script for Endless OS Knowledge Apps
# Run this script on a clean source checkout to get ready for building.

POT_FILE=po/eos-knowledge.pot

test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
olddir=`pwd`

cd $srcdir
test -f configure.ac || {
    echo "You must run this script in the top-level checkout directory"
    exit 1
}

# GNU gettext automake support doesn't get along with git
# https://bugzilla.gnome.org/show_bug.cgi?id=661128
touch -t 200001010000 $POT_FILE

# NOCONFIGURE is used by gnome-common
if test -z "$NOCONFIGURE"; then
    echo "This script will run ./configure automatically. If you wish to pass "
    echo "any arguments to it, please specify them on the $0 "
    echo "command line. To disable this behavior, have NOCONFIGURE=1 in your "
    echo "environment."
fi

# Run the actual tools to prepare the clean checkout
autoreconf -fi || exit $?
rm -f po/Makevars.template

cd "$olddir"
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"

Remove code to handle git submodules
Remove code to handle git submodules

Jasmine was the only module before and has been removed so this is dead
code that needed removing.
