Batch create a phpBB smilies .pak by filenames in "./" (AppleScript or Perl question)

michaelsanford

Translator, Web Developer
I have around 600 gif smilies to add to a phpBB installation.

There's no way in hell I'm manually adding every smiliey to the database.

Essentially all I want to do is create a file with line items based on the file names of each file in a folder, truncating the .GIF extension. I could do it on my own otherwise, but I don't know how to take off the extension.

Example file list:
winking.gif
xrayed.gif


Example line items in smiley.pak
winking.gif=+:winking
xrayed.gif=+:xrayed


(there is an option to add another "=+:verb" after that, but I can't very well deduce a verb or adverb from a filename very well automatically...)

Any help is appreciated, thanks!
 
Back
Top