Paste number 5811: Textmate Templates

Paste number 5811: Textmate Templates
Pasted by: ketan
When:16 years, 11 months ago
Share:Tweet this! | http://paste.lisp.org/+4HF
Channel:None
Paste contents:
Raw Source | XML | Display As
Command Code

TM_YEAR=`date +%Y` \
TM_PACKAGE=`sed <<<$TM_NEW_FILE_DIRECTORY -n 's#.*include/\(.*\)#\1#p'|tr / .` \
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' <class.as >"$TM_NEW_FILE"


Template
/*
	@Class				${TM_NEW_FILE_BASENAME}
						${TM_PACKAGE}
						${TM_NEW_FILE_DIRECTORY}
						${TM_YEAR}
	@SuperClass			MovieClip
	@Package			${TM_PACKAGE}

	@Symbol				"${TM_PACKAGE}.${TM_NEW_FILE_BASENAME}"
	@Link				"${TM_PACKAGE}.${TM_NEW_FILE_BASENAME}Symbol"

	@Fla				${TM_NEW_FILE_BASENAME}.fla
	
	@Author				yourName
	@Version			1.0.0
	
*/

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.