Page 1 of 1
tree.pup
Posted: Fri 29 Jul 2005, 10:06
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
Posted: Fri 29 Jul 2005, 15:59
by flamesage
What "is" tree?
is it like dir? (example: branches)
Posted: Fri 29 Jul 2005, 16:34
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.
Posted: Fri 29 Jul 2005, 17:15
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.
Posted: Fri 29 Jul 2005, 18:49
by Lobster
OK this is the amended file - hope it works and I have added suggestions correctly . . .
Posted: Fri 29 Jul 2005, 22:44
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
Posted: Fri 29 Jul 2005, 22:47
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
Posted: Fri 29 Jul 2005, 22:49
by GuestToo
Bruce B seemed to say the same thing in a lot fewer words
Posted: Sat 30 Jul 2005, 02:24
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?
Posted: Sat 30 Jul 2005, 05:32
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.
Tree and its branches
Posted: Sat 30 Jul 2005, 07:00
by Lobster
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 . . .
Posted: Sat 30 Jul 2005, 07:23
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?