#! /bin/sh # # Copyright (C) 2009 Siegfried-A. Gevatter # # ################################################################## # # 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 3 or later. # # 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. # # See file /usr/share/common-licenses/GPL for more details. # # ################################################################## # # This assistants's aim is to make it more straightforward for new # contributors to get their Ubuntu installation ready for packaging work. separator1() { echo '------------------------------------------------------' echo } separator2() { echo '======================================================' echo } await_response() { echo echo -n "Press enter when you're ready to continue... " read line # Wait for a key press echo } usage() { prog=$(basename $0) cat </dev/null" ] then echo echo "Note: Write your name and e-mail exactly like in your GPG key." echo "For reference, here are your GPG identities:" gpg --list-secret-keys | grep uid | cut -c4- | sed 's/^[ ]*//;' | \ while read line do echo " - $line" done fi } if [ "$skip_step" = false -a "$(basename $SHELL)" != "bash" ] then echo "Please export the DEBEMAIL and DEBFULLNAME variables in your" echo "shell's configuration file." show_gpg_info skip_step=true await_response fi if [ "$skip_step" = false ] then echo echo "Please indicate your name and e-mail address. This information will" echo "be added to your ~/.bashrc." show_gpg_info echo echo -n "Full name (and comment): " read line echo "export DEBFULLNAME=\"$(echo $line | sed 's/^[ ]*//;s/[ ]*$//')\"" >> ~/.bashrc echo -n "Valid e-mail address: " read line echo "export DEBEMAIL=\"$(echo $line | sed 's/^[ ]*//;s/[ ]*$//')\"" >> ~/.bashrc echo fi separator2 echo "Thank you!" separator1 echo "If you've followed all instructions carefully, your system does now" echo "have the basic tools and configurations recommended for Ubuntu" echo "development." echo echo "Some resources which may be useful during your path are:" echo " - The Ubuntu Packaging Guide: http://developer.ubuntu.com/packaging/html/" echo " - The Ubuntu Developers IRC channel: #ubuntu-motu on irc.freenode.net" echo echo "May the source be with you!"