Find out more about the “Show Off Your Avatar Campaign
RocketTheme  |  General  |  Apple/Mac  |  Topic: How to pack / compress / compile a template on Mac? « previous next »
Pages: [1] Go Down Print
Author Topic: How to pack / compress / compile a template on Mac?  (Read 2818 times)
Thomas
Professional
Hero Rocketteer
*
Offline Offline

Posts: 977


Homage Photo Booth

WWW
How to pack / compress / compile a template on Mac?
« on: July 14, 2008, 04:19:13 AM »

Well I got a template installed locally that I need to re-pack... In Windows I had a small script that could do this, but apparently this won't work on my Mac.

So how can I do this?

I know RT a Mac boys - so let me know how please Smiley
Logged

MintCreation - Affordable and creative Joomla Sites
http://www.mintcreation.com

Joomla! - tips, tricks and tutorials - (new site coming soon)
http://www.beta-code.com
James S!
Muffin Man
RocketTheme
Hero Rocketteer
*
Offline Offline

Posts: 36130


Firebug...Firebug...Firebug!

WWW
Re: How to pack / compress / compile a template on Mac?
« Reply #1 on: July 14, 2008, 05:28:46 AM »

I use betterzip http://macitbetter.com/

If you want to compile a templateDetails.xml file for 1.0 (don't really need it for 1.5 due to the <folder></folder> facility) then you can use this script in TextMate

Code:
#!/usr/bin/env ruby -wKU
Dir.chdir(ENV['TM_DIRECTORY']) do
Dir.glob("**/*").each do |file|
next if File.directory?(file)
puts "<filename>#{file}</filename>"
end
end
Logged

Firebug Video Tuts: - Editing HTML - Javascript Errors - Logo Changes

Video tutorials on how to use Firebug, its what we use Smiley
Thomas
Professional
Hero Rocketteer
*
Offline Offline

Posts: 977


Homage Photo Booth

WWW
Re: How to pack / compress / compile a template on Mac?
« Reply #2 on: July 14, 2008, 05:48:36 AM »

I use betterzip http://macitbetter.com/

If you want to compile a templateDetails.xml file for 1.0 (don't really need it for 1.5 due to the <folder></folder> facility) then you can use this script in TextMate

Code:
#!/usr/bin/env ruby -wKU
Dir.chdir(ENV['TM_DIRECTORY']) do
Dir.glob("**/*").each do |file|
next if File.directory?(file)
puts "<filename>#{file}</filename>"
end
end

Cheers James I will try that script.
Could you explain the folder folder thing you mentioned? The XML files looks like usually to me?
Logged

MintCreation - Affordable and creative Joomla Sites
http://www.mintcreation.com

Joomla! - tips, tricks and tutorials - (new site coming soon)
http://www.beta-code.com
James S!
Muffin Man
RocketTheme
Hero Rocketteer
*
Offline Offline

Posts: 36130


Firebug...Firebug...Firebug!

WWW
Re: How to pack / compress / compile a template on Mac?
« Reply #3 on: July 14, 2008, 06:28:16 AM »

For 1.0, you had to name each file that has to be installed, in 1.5, you don't have to do that. You can use the folder command and it will load all the contents of that folder i.e.

<folder>images/</folder>

So you can do the .xml manually in a few seconds Smiley
Logged

Firebug Video Tuts: - Editing HTML - Javascript Errors - Logo Changes

Video tutorials on how to use Firebug, its what we use Smiley
Pages: [1] Go Up Print 
RocketTheme  |  General  |  Apple/Mac  |  Topic: How to pack / compress / compile a template on Mac? « previous next »
Jump to: