You are not logged in.

#1 2008-04-18 16:25:33

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

A script proclaiming Arch's superiority

I've written a very sophisticated and exquisite, ego-boosting and mind-blowing (albeit perhaps a bit over-engineered) script which aims to prove Arch's superiority, day or night, Europe or America.

It should work with any sane shell, it is quite cpu and memory efficient, it's extensible, it follows the KISS and UNIX principles (do one thing, but do it well). Without much additional effort you can use it to send the good news of Arch's superiority to all the recipients in your address book or make it be known to you and whoever is your in your room by putting it through your speakers at every full hour. Only your imagination is the limit.

I deem the code stable, but you never know. Please test it thoroughly to iron out all possible bugs. The usual warnings about having data backups and my lack of responsibility about any possible damage done apply, of course.

Enjoy!

#!/bin/sh

echo "Arch is the best!"

Last edited by lucke (2008-04-18 18:54:59)

Offline

#2 2008-04-18 18:09:24

neodreams
Member
From: Montreal, Canada
Registered: 2006-03-20
Posts: 87
Website

Re: A script proclaiming Arch's superiority

yikes

Speachless, wonderful.


My Specs: Desktop - http://hacklog.net/solid/
                Laptop - http://hacklog.net/liquid/
                Server - http://hacklog.net/ray/

Offline

#3 2008-04-18 18:18:29

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: A script proclaiming Arch's superiority

This crashes on my Via C3 running Arch

Offline

#4 2008-04-18 18:23:40

freakcode
Member
From: São Paulo - Brazil
Registered: 2007-11-03
Posts: 410
Website

Re: A script proclaiming Arch's superiority

phrakture wrote:

This crashes on my Via C3 running Arch

Please fill a bug report to flyspray.

Offline

#5 2008-04-18 18:28:50

gothmog.todi
Member
From: Austria
Registered: 2007-07-18
Posts: 120

Re: A script proclaiming Arch's superiority

what license is it under? I'm thinking about a fork... wink

Offline

#6 2008-04-18 18:33:12

xdeusx
Member
Registered: 2007-10-15
Posts: 168

Re: A script proclaiming Arch's superiority

omg it deleted all my files while testing it under ubuntu

Offline

#7 2008-04-18 18:35:34

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,950
Website

Re: A script proclaiming Arch's superiority

The script does not work for me. But hey this is open source: here is my improvment:

#!/bin/sh
yes Arch is the best!

You can easily pipe this to your favorite mail or irc client to tell the world what you think about Arch.

Offline

#8 2008-04-18 18:40:48

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: A script proclaiming Arch's superiority

gothmog.todi wrote:

what license is it under? I'm thinking about a fork... wink

I bet it's under the WTFPL license.


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#9 2008-04-18 18:41:57

tlaloc
Member
From: Lower Saxony
Registered: 2006-05-12
Posts: 351

Re: A script proclaiming Arch's superiority

It has already been forked:

#!/bin/sh

echo "Arch ist das Beste!"

Sorry, but my job is here that of a translator. And the first version was written in a deprecated language, anyway ...

Offline

#10 2008-04-18 18:50:35

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: A script proclaiming Arch's superiority

Is it Y2K compliant?

Offline

#11 2008-04-18 18:57:54

gothmog.todi
Member
From: Austria
Registered: 2007-07-18
Posts: 120

Re: A script proclaiming Arch's superiority

peart wrote:

Is it Y2K compliant?

I don't think so. Better not run it on your arch-based doomsday device 'till that is fixed.

Offline

#12 2008-04-18 18:59:37

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: A script proclaiming Arch's superiority

What are your plans for internationalization?

Offline

#13 2008-04-18 19:26:07

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: A script proclaiming Arch's superiority

I think it should explicitly run on dash for better speed and stability

Offline

#14 2008-04-18 19:45:03

Susu
Member
From: Germany
Registered: 2005-11-11
Posts: 191
Website

Re: A script proclaiming Arch's superiority

Can someone provide a PKGBUILD?


Album reviews (in german): http://schallwelle.filzo.de

Offline

#15 2008-04-18 20:04:08

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: A script proclaiming Arch's superiority

Untested (wow, it's been a while since I've written a PKGBUILD from scratch)

pkgname=best_script_in_the_world
pkgver=1.0
pkgrel=1
url="http://www.archlinux.org"
arch=('i686' 'x86_64')
license=('GPL')
source=()
md5sums=()

build()
{
    mkdir -p $startdir/pkg/usr/bin/
    echo #!/bin/sh >> $startdir/pkg/usr/bin/best_script.sh
    echo >> $startdir/pkg/usr/bin/best_script.sh
    echo 'echo "Arch is the best!"' >> $startdir/pkg/usr/bin/best_script.sh
   
    chmod a+x $startdir/pkg/usr/bin/best_script.sh
}

Offline

#16 2008-04-18 22:55:55

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: A script proclaiming Arch's superiority

Susu wrote:

Can someone provide a PKGBUILD?

Hahaha. Epic

Offline

#17 2008-04-18 23:38:14

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,121

Re: A script proclaiming Arch's superiority

Cerebral wrote:

Untested (wow, it's been a while since I've written a PKGBUILD from scratch)

arch=('i686' 'x86_64')

Is it confirmed to run on x86_64?


Dammit, haven't been here in a while. Still rocking Arch. smile

Offline

#18 2008-04-19 02:50:50

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: A script proclaiming Arch's superiority

Where's the manpage? Why do arch packagers always strip away the doc?

Offline

#19 2008-04-19 10:19:21

Eradest
Member
From: Germany
Registered: 2007-07-18
Posts: 56

Re: A script proclaiming Arch's superiority

Can't someone write a GUI-frontend? Arch needs to become more newbie-ubuntu-friendly. You can't expect users to run this in CLI all on their own.

And does it actually come preconfigured?

Offline

#20 2008-04-19 10:44:56

bavardage
Member
Registered: 2008-02-17
Posts: 160

Re: A script proclaiming Arch's superiority

Eradest: here is the GUI frontend. It's important to care for those ubuntu-newbies.

#!/bin/sh
/usr/bin/zenity --info --text "Arch is the best"

Oh and it now has gnome dependencies

Offline

#21 2008-04-19 11:07:41

faelar
Member
From: Amiens (FR)
Registered: 2007-12-18
Posts: 232
Website

Re: A script proclaiming Arch's superiority

Is it possible to ask for a tray icon ? It would be much easier to use.

Offline

#22 2008-04-19 11:11:21

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: A script proclaiming Arch's superiority

Just a small bugfix...
v 1.1

#!/bin/sh
/usr/bin/zenity --info --text "Arch is the best!"

The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#23 2008-04-19 11:49:34

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: A script proclaiming Arch's superiority

Please provide unified diff for bugfixes and improvements, it is much easier to review them than the whole program again.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#24 2008-04-19 14:16:13

Flying Saxman
Member
From: Northern Hesse
Registered: 2007-02-26
Posts: 252

Re: A script proclaiming Arch's superiority

@moljac024: Made an german translation. Sorry, if i made any mistake, but I'm new to programming!

#!/bin/sh
/usr/bin/zenity --info --text "Bogen ist das am Besten!"

Offline

#25 2008-04-19 14:17:11

Mikko777
Member
From: Suomi, Finland
Registered: 2006-10-30
Posts: 837

Re: A script proclaiming Arch's superiority

I tried to install this with cerebrals PKGBUILD (using ./configure make make install) and it fails to run :'(
And shouldn't the text be in uppercase?

(cerebral no hurries with the catalyst 8.4 it's been out for AGES! big_smile (atleast a day and provides nothing new)

Offline

Board footer

Powered by FluxBB