tree.pup

Stuff that has yet to be sorted into a category.
Post Reply
Message
Author
User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

tree.pup

#1 Post by Lobster »

Bruce B wrote:
Lobster, I've been anxiously awaiting your first dotpup. If you are up to the challenge, I'd like to give you an easier dotpup to make for your first.
OK - I am up for it . . .

Many thanks - am gonna print Nathans info first . . .
now I had a printer somewhere . . . gathering dust . . .

:)

OK have done it and uploaded before I could get confused (was very easy)
using this tutorial:
http://www.goosee.com/puppy/wikka/DotPupHowToMake

The tree command is checked and placed along with a readme in the directory ~/DotPuptmpDir

not sure what to do once it is there?
Water it?

Download the second file - see later post
Attachments
tree.pup
(14.37 KiB) Downloaded 937 times
Last edited by Lobster on Fri 29 Jul 2005, 18:50, edited 1 time in total.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
flamesage
Posts: 214
Joined: Sat 02 Jul 2005, 00:39

#2 Post by flamesage »

What "is" tree?
is it like dir? (example: branches)

User avatar
Ian
Official Dog Handler
Posts: 1234
Joined: Wed 04 May 2005, 12:00
Location: Queensland

#3 Post by Ian »

Congratulations Lobster on your first DotPup, just a couple of things I thought I might mention.

What you need is a dotpup.sh file in your DotPup to place the executable 'tree' somewhere like /root/my-applications/bin so it is available for use on the commandline.

Something like:

cp tree /root/my-applications/bin

and somewhere to put the readme

cp readme /root/my-applications

but I would rename the readme to something like tree_readme.

Yes flamesage its a commandline tool to list files and directories and such.
If you have downloaded Lobsters DotPup you will need to move the executable and readme file to another location as the next DotPup you download and install will delete the DotPupTmpDir in /root.

If you put the tree file in /root/my-applications/bin you can use it from any directory in Puppy as that bin directory is in the path that Puppy searches when a command is entered into a console.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#4 Post by Lobster »

Thanks Ian :)
Do I have Linux geek potential?
Your suggestions seem spot on - I will attend to them and upload an ammended dotpup

thanks for the encouragement :)

It really was very easy (much as I suspected - I just overcomplicate)
:)
If I can do it - a sardine could do it.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#5 Post by Lobster »

OK this is the amended file - hope it works and I have added suggestions correctly . . .

:)
Attachments
tree.pup
(14.6 KiB) Downloaded 919 times
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Bruce B

#6 Post by Bruce B »

The first time is the hardest.

I downloaded the second one and it didn't seem to run.

I think it is imperative that the .sh file be named dotpup.sh

I'd recommend changing the .sh

Current

Code: Select all

#!/bin/sh
cp tree /root/my-applications/bin
cp tree_readme.txt /root/my-applications

My recommendation

Code: Select all

#!/bin/sh
cp -f tree /root/my-applications/bin
cp -f tree_readme.txt /root/my-documents/
leafpad /root/my-documents/tree_readme.txt

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#7 Post by GuestToo »

a dotpup is an ordinary zip file
with a .pup extension
that has an executable file in it called dotpup.sh
and a file called md5sum.txt

when you click a dotpup file
1) it's automatically unzipped
2) the md5sums in md5sum.txt are checked
3) dotpup.sh is run

the file that is executed automatically is named dotpup.sh ... you can't rename it to tree_install.sh or any other name (you can have tree_install.sh and any other files you like in the dotpup-zip file ... but they won't be executed automatically)

if you rename your tree_install.sh file to dotpup.sh, your dotpup should work

it won't seem to do anything, though ... it might be good to popup a message of some kind saying that it's installed ... something like
xmessage "tree is installed"
or
beaver /root/my-applications/tree_readme.txt
or because that Puppy may not have beaver,
rox /root/my-applications/tree_readme.txt

you only have an md5sum for tree
it might be good to have an md5sum for dotpup.sh too, just in case it got mangled somehow ... in fact, it would probably be good to to have md5sums in md5sum.txt for all the files in your dotpup

if you rename tree_readme.txt to tree.txt, and copied it or symlinked it to /usr/share/doc/, it will popup in leafpad if someone types man tree ... though stuff you put in /usr will get removed the next time you upgrade Puppy ... one way around this is to register with PupGet ... another way, is to put back the symlink every time you run tree

you should be able to upload new versions of your dotpup to the forum ... just click the edit button (top right corner) of your post

anyway, all you need to do to make your dotpup work is rename tree_install.sh to dotpup.sh

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#8 Post by GuestToo »

Bruce B seemed to say the same thing in a lot fewer words

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#9 Post by Flash »

flamesage wrote:What "is" tree?
is it like dir? (example: branches)
Yeah, Lobster, what the heck is it good for? :? Do we have to download it just to find out? :)

Bruce B

#10 Post by Bruce B »

Flash, I recommend tree as Lobster's first dotpup because (1) it is useful and (2) it is a standalone executable file. Because it is just a single file it is an easier type of dotpup to make compared to what he was working on earlier.

Tree has many options. It is a file and directory display utility that displays in a tree type of format, showing where files and directories are relative to the actual file structure.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

Tree and its branches

#11 Post by Lobster »

8)

tree is a simple command kindly provided by Bruce as a "Lobster Challange"
similar to "ls"

It is proof even those of limited capacity can create a dot pup with support and a following wind. :)

The first dotpup I created only contained a checksum for the executable tree

Pretty basic but it meant the user had to move tree . . .
I added a tree_readme.txt and a dotpup.sh

the dotpup.sh contains the series of commands the dotpup follows on installing:

Code: Select all

#!/bin/sh
cp tree /root/my-applications/bin
cp tree_readme.txt /root/my-applications
xmessage "Tree is installed - Puppys will be relieved"
rox /root/my-applications/tree_readme.txt
cp tree and cp tree_readme.txt
are moving files to their destination

xmessage "Tree is installed - Puppys will be relieved"
runs the little Puppy program xmessage to display a message

and
rox /root/my-applications/tree_readme.txt


uses rox to apply its default text display program (in most cases leafpad)
to display the tree_readme.txt

I used the info here to create a makepup.sh (for future pups or updates)
this allows me to type ./makepup.sh from rxvt
http://www.goosee.com/puppy/wikka/DotPupHowToMake

Enclosed is my latest tree dotpup (hope it is now working . ..)

Thanks to everyone - Bruce for setting the challange, to G2 for creating dotpups and further info and to future pups for having a go too . . .

:)
Attachments
tree.pup
(14.69 KiB) Downloaded 1236 times
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Bruce B

#12 Post by Bruce B »

It works! A successful dotpup which can be added to the list. Well done.

I think you can go back and delete the previous tree.pup attachments?

Post Reply