FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 06-24-2011, 07:21 PM
Dave Reisner
 
Default repo-add: add new command, repo-elephant

_ _
/ \__/ \_____
/ / `
) '/ ( |
`\__)/__/'_ / `
//_|_|~|_|_|
^""'"' ""'"'

Signed-off-by: Dave Reisner <d@falconindy.com>
---
An elephant never forgets... or forgives...

scripts/Makefile.am | 7 ++++++-
scripts/repo-add.sh.in | 26 ++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 1 deletions(-)

diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index 3b96c11..492eb0f 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -5,7 +5,8 @@ SUBDIRS = po

bin_SCRIPTS =
$(OURSCRIPTS)
- repo-remove
+ repo-remove
+ repo-elephant

OURSCRIPTS =
makepkg
@@ -97,4 +98,8 @@ repo-remove: $(srcdir)/repo-add.sh.in
rm -f repo-remove
$(LN_S) repo-add repo-remove

+repo-elephant: $(srcdir)/repo-add.sh.in
+ rm -f repo-elephant
+ $(LN_S) repo-add repo-elephant
+
# vim:set ts=2 sw=2 noet:
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in
index 9fdc750..0ccefc2 100644
--- a/scripts/repo-add.sh.in
+++ b/scripts/repo-add.sh.in
@@ -391,6 +391,27 @@ db_remove_entry() {
return $notfound
} # end db_remove_entry

+elephant() {
+ cat <<EOF
+ __
+ '.
+ '-
+ / /_ .---.
+ / | ,./--.// )
+ | // )/ /
+ ' ^ ^ / )____.----.. 6
+ '.____. .___/ ._)
+ ./. )
+ ' /
+ _/ / ). ) (
+ /# .! | / /
+ C// # /'-----'/ # /
+ . 'C/ | | | | |mrf ,
+ ), .. .'OOO-'. ..'OOO'OOO-'. ..(,
+EOF
+ exit 0
+}
+
check_repo_db() {
local repodir

@@ -533,6 +554,11 @@ esac

# figure out what program we are
cmd=${0##*/}
+if [[ $cmd == "repo-elephant" ]]; then
+ elephant
+ exit 0
+fi
+
if [[ $cmd != "repo-add" && $cmd != "repo-remove" ]]; then
error "$(gettext "Invalid command name '%s' specified.")" "$cmd"
exit 1
--
1.7.5.4
 
Old 06-24-2011, 08:43 PM
Allan McRae
 
Default repo-add: add new command, repo-elephant

On 25/06/11 05:21, Dave Reisner wrote:

_ _
/ \__/ \_____
/ / `
) '/ ( |
`\__)/__/'_ / `
//_|_|~|_|_|
^""'"' ""'"'

Signed-off-by: Dave Reisner<d@falconindy.com>
---


Signed-off-by: Allan
 

Thread Tools




All times are GMT. The time now is 07:03 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org