Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 22 May 2018, 12:14
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
createpet - Another script to create pet packages
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
mohan34u


Joined: 14 Nov 2007
Posts: 67

PostPosted: Mon 02 Feb 2009, 18:24    Post subject:  createpet - Another script to create pet packages
Subject description: This script will create pet packages from DESTDIR directory
 

Hi,

I have been building pet packages for the past few month. While building, I felt that I can customize dir2pet script to create pet package from my DESTDIR directory. But I don't know whom to contact and how to proceed.

So I derived another script from dir2pet script. This script may help developers to build pet packages easily.

To build pet package using this script, follow the below steps,

1. Gunzip createpet.gz
2. Download source tarfile and extract
3. ./configure
4. make
5. While make install, use

Code:
$ make install DESTDIR="../package"


6. Then go to the parent directory and call this script as

Code:
$ cd ..
$ createpet package


If you want to add menu entry, give

Code:
$ createpet -m package


7. Script will ask some input and build package.pet file

Thats all.
createpet.gz
Description  Updated to suggest .xpm files from the given directory to easily create xdg menu entry.
gz

 Download 
Filename  createpet.gz 
Filesize  1.96 KB 
Downloaded  459 Time(s) 
createpet.gz
Description  Updated to fix unwanted .files file creation on / directory.
gz

 Download 
Filename  createpet.gz 
Filesize  1.92 KB 
Downloaded  402 Time(s) 
createpet.gz
Description  Updated to fix puppy package manager description issue.
gz

 Download 
Filename  createpet.gz 
Filesize  1.86 KB 
Downloaded  406 Time(s) 
createpet.gz
Description  Another script to create pet package from DESTDIR directory
gz

 Download 
Filename  createpet.gz 
Filesize  1.83 KB 
Downloaded  436 Time(s) 

Last edited by mohan34u on Mon 09 Feb 2009, 14:58; edited 4 times in total
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4804
Location: Kingwood, TX

PostPosted: Wed 04 Feb 2009, 18:50    Post subject:  

I haven't tried it yet ... but from your description you should be able to drag a folder to the script to make a pet (with no menu entry unless you manually add the dot_desktop file first) - very nice and handy for package maintainers

btw try new2dir make install to automagically split off the developer, documentation and locales into separate folders

_________________
Check out my github repositories. I may eventually get around to updating my blogspot.
Back to top
View user's profile Send private message Visit poster's website 
mohan34u


Joined: 14 Nov 2007
Posts: 67

PostPosted: Thu 05 Feb 2009, 17:06    Post subject:  

technosaurous,

Sorry to ask this question, but my english knowledge is not able to understand what you said. could you please repeat?

Actually this script is not doing anything with drag (I really don't understand what you mean by drag).

In simple words, it is converting a directory which must be created using "make install DESTDIR' command into a .pet package. normally it will create .files file, .pet.specs file by getting input from you, if you give -m option, then it will also create .desktop file by getting more input from you. Thats all.

I'm really sorry for not getting you.

Also if anyone tested this script, kindly give some suggession.
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4804
Location: Kingwood, TX

PostPosted: Thu 05 Feb 2009, 18:53    Post subject:  

when you drag a folder or file to a script it is passed as $1 (or $@..?)

for instance if you were to drag the /root/my-documents/package folder on top of createpet.sh it would be the same as:

Code:
createpet /root/my-documents/package


it works for documents as well for instance if you normally double click on a .doc file and it opens it in abiword, you could open it in openoffice writer by draging the document to its run script (or even a symlink to it)




new2dir make install calls a separate script that will do
Code:
$ make install DESTDIR="../package"

except that it also lets you split off unnecessary files and will prompt you to automatically generate .pets (package-#.#-486.pet package-#.#-DOC.pet, package-#.#-NLS.pet, AND package-#.#-DEV.pet)

more compiling instructions are in my signature "Pet Packaging 100..."

_________________
Check out my github repositories. I may eventually get around to updating my blogspot.
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15238
Location: Paradox Realm

PostPosted: Thu 05 Feb 2009, 21:31    Post subject:  

Quote:
may help developers to build pet packages easily


If somebody who creates pets regularly tests this and finds it easier, then we can suggest adding to DeepThought (Puppy 4.2) Smile

_________________
YinYana AI Buddhism
Back to top
View user's profile Send private message Visit poster's website 
mohan34u


Joined: 14 Nov 2007
Posts: 67

PostPosted: Fri 06 Feb 2009, 01:19    Post subject:  

technosaurus,

Thanks for the explanation, I don't know rox can do that stuff.

Ya, new2dir and dir2pet are really well written scripts. But I felt that I need a script which will convert a directory into a .pet package, so that I can create a folder in whatever way I want. Thats why I wrote this script.

Lobster,

Thanks for your interest, I updated this script to solve Description appearence issue in Puppy Package Manager, When Installing a package created with previous createpet version, Puppy Package Manager didn't show Description correctly.
Back to top
View user's profile Send private message Visit poster's website 
mohan34u


Joined: 14 Nov 2007
Posts: 67

PostPosted: Mon 09 Feb 2009, 01:16    Post subject:  

I updated the script to prevent creating another .files file on / directory. Kindly update.
Back to top
View user's profile Send private message Visit poster's website 
mohan34u


Joined: 14 Nov 2007
Posts: 67

PostPosted: Mon 09 Feb 2009, 15:01    Post subject:  

Updated the script to suggest .xpm files from the given directory to easily create xdg menu entry.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0457s ][ Queries: 13 (0.0120s) ][ GZIP on ]