#!/bin/sh # *************************************************************************** # bootstrap : Set up config.mak # *************************************************************************** # Copyright (C) 2003 VideoLAN # $Id: bootstrap,v 1.2 2003/11/15 02:38:25 hartman Exp $ # # Authors: Christophe Massiot # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. # *************************************************************************** if test "$#" != "0"; then echo "Usage: $0" >&2 echo " Prepare config.mak file." >&2 exit 1 fi LANG=C export LANG set -e set -x echo -e "# Automatically generated by bootstrap.\n# Make changes if you know what you're doing.\n" >| config.mak if test ".`uname -s`" = ".Darwin"; then echo "SYS = DARWIN" >> config.mak echo "EXTRA_CPPFLAGS = -no-cpp-precomp" >> config.mak echo "CONTRIB_URL = http://www.videolan.org/pub/videolan/devtools/contrib-macosx.tar.bz2" >> config.mak else echo "SYS = UNKNOWN" >> config.mak fi if which curl >/dev/null; then echo "WGET = curl -O" >> config.mak elif which wget >/dev/null; then echo "WGET = wget" >> config.mak else echo "You need at least wget or curl to fetch the packages." >&2 exit 1 fi echo "PREFIX = `pwd`" >> config.mak