From ab063ab0af7dbd92140dad0f20ad396ba2d45d3d Mon Sep 17 00:00:00 2001 From: John Voltz Date: Thu, 6 Mar 2008 17:52:37 +0000 Subject: some buildroot helper scripts --- scripts/add_new_package.wizard | 94 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100755 scripts/add_new_package.wizard (limited to 'scripts/add_new_package.wizard') diff --git a/scripts/add_new_package.wizard b/scripts/add_new_package.wizard new file mode 100755 index 000000000..773343d3f --- /dev/null +++ b/scripts/add_new_package.wizard @@ -0,0 +1,94 @@ +#!/bin/sh + +echo "**** Autotools Add New Package Wizard ****" +echo " This script will generate files to add a" +echo " new package to buildroot." +echo + +echo "What is the name of the package?" +read PACKAGE_NAME + +echo "What is the version number?" +read VERSION_NUM + +echo "What is the web address of the tarball?" +read DOWNLOAD_LOC + +echo "Enter any known dependencies, separated" +echo "by spaces, or just press enter." +read EXTRA_DEPS + +echo "Enter a description of the package." +read DESCRIPTION + +echo "Does autoreconf need to be run first? (y/n)" +read ANSWER + +if [ "$ANSWER" = "y" ]; then + RECONF="YES" +else + RECONF="NO" +fi + +echo "Does it need to be installed to the staging dir?" +echo "Say yes, if other packages depend on it." +echo "(If not sure, just say yes. It will only use more" +echo "space on your hard drive.)" +read ANSWER + +if [ "$ANSWER" = "y" ]; then + STAGING="YES" +else + STAGING="NO" +fi + +echo "Enter any configure script options." +read CONFIG_OPTIONS + +URL=${DOWNLOAD_LOC%/*} +TARBALL=${DOWNLOAD_LOC##*/} +EXTENSION=${TARBALL##*.tar.} +NAME_UPPER=`echo ${PACKAGE_NAME} | tr [a-z] [A-Z]` +NAME_UPPER=${NAME_UPPER//-/_} + +mkdir ../package/${PACKAGE_NAME} + +cat > ../package/${PACKAGE_NAME}/${PACKAGE_NAME}.mk < ../package/${PACKAGE_NAME}/Config.in <