add bootstrap script as alternative to autogen.sh

This commit is contained in:
Nedko Arnaudov 2023-05-06 13:42:28 +03:00
parent 99e8578fa7
commit ce01ee2230
1 changed files with 37 additions and 0 deletions

37
bootstrap Executable file
View File

@ -0,0 +1,37 @@
#!/bin/sh
#
# autotools bootstrap script for py2gtk2
#
# This file is part of py2gtk2
#
# Copyright (C) 2023 Nedko Arnaudov <nedko@nedk.org>
#
# 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; version 2 of the License
#
# 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
if test x$1 = xclean
then
GENERATED="aclocal.m4 autom4te.cache config.h.in configure m4 Makefile.in"
set -x
if test -f Makefile; then make distclean; fi
rm -rf ${GENERATED}
else
set -x
mkdir -p m4
aclocal -I m4
libtoolize --copy --force
autoheader
automake --foreign --add-missing --copy
autoconf
fi