diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2006-03-24 06:38:16 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2006-03-24 06:38:16 +0000 |
commit | d64d9d3f246b023e4ee403b462dfd54be43e4a78 (patch) | |
tree | b6e7cef8bfb37d3c0ce10b96d4fe9f707b2fb54b | |
parent | de50075a7ff44473ade2b9ed55caca261979660c (diff) | |
download | ptxdist-d64d9d3f246b023e4ee403b462dfd54be43e4a78.tar.gz ptxdist-d64d9d3f246b023e4ee403b462dfd54be43e4a78.tar.xz |
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.10-trunk@5238 33e552b5-05e3-0310-8538-816dae2090ed
-rwxr-xr-x | configure | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/configure b/configure deleted file mode 100755 index fc9bb72e6..000000000 --- a/configure +++ /dev/null @@ -1,90 +0,0 @@ -#!/bin/bash - -# -# TODO: -# -# - modify parser to understand --prefix=/foo, not only --prefix /foo -# -# - test for ncurses headers: -# -# @echo -e "#include \"ncurses.h\"\nint main(void){}" | gcc -E - > /dev/null; \ -# if [ "$$?" = "1" ]; then \ -# echo; \ -# echo "Error: you don't seem to have ncurses.h; this probably means"; \ -# echo " that you'll have to install some ncurses-devel packet"; \ -# echo " from your distribution."; \ -# echo; \ -# exit 1; \ -# fi -# - - -PROMPT="ptxdist: " -PTXDIST_TOPDIR=$(cd $(dirname $0) && pwd) - - -# -# we need the PTXdist shell library -# - -libptxdist=${PTXDIST_TOPDIR}/scripts/libptxdist.sh - -if [ -e "$libptxdist" ]; then - . $libptxdist -else - echo "${PROMPT}didn't find \$(PTXDIST_TOPDIR)/scripts/libptxdist.sh" - exit 1 -fi - - -# -# we need the static variable definitions -# - -ptxdistvars=${PTXDIST_TOPDIR}/scripts/ptxdistvars.sh - -if [ -e "$ptxdistvars" ]; then - . $ptxdistvars -else - echo "${PROMPT}didn't find \$(PTXDIST_TOPDIR)/scripts/ptxdistvars.sh" - exit 1 -fi - - -# -# main() -# - -PROGRAM_DESCRIPTION="PTXdist configure" - -source $(cat << EOF | ptxd_generic_option_parser -PREFIX prefix <dir> Set Installation Directory -EOF -) -invoke_parser $@ - - -prefix=${PREFIX:="/usr/local"} -libdir="${prefix}/lib" -bindir="${prefix}/bin" -instdir="${libdir}/ptxdist-${FULLVERSION}" - -echo "checking version=${FULLVERSION}" -echo "checking prefix=${prefix}" -echo "checking topdir=${PTXDIST_TOPDIR}" -echo "checking instdir=${instdir}" - -# substitute variables -echo "creating Makefile" -cat "${PTXDIST_TOPDIR}/Makefile.in" | \ - sed -e "s,@PREFIX@,\"${prefix}\",g" | \ - sed -e "s,@TOPDIR@,\"${PTXDIST_TOPDIR}\",g" | \ - sed -e "s,@INSTDIR@,\"${instdir}\",g" | \ - sed -e "s,@VERSION@,\"${FULLVERSION}\",g" \ - > ${PTXDIST_TOPDIR}/Makefile - -echo "creating rules/Kconfig" -cat "${PTXDIST_TOPDIR}/rules/Kconfig.in" | \ - sed -e "s,@VERSION@,${FULLVERSION},g" \ - > ${PTXDIST_TOPDIR}/rules/Kconfig - |