Skip to content

Commit

Permalink
• Added simple gnuplot template
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfoster committed Jun 10, 2008
1 parent a9378ba commit a3523a6
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Templates/Gnuplot Script.tmTemplate/info.plist
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>command</key>
<string>if [[ ! -f "$TM_NEW_FILE" ]]; then
TM_YEAR=`date +%Y` \
TM_DATE=`date +%Y-%m-%d` \
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' \
&lt; untitled.gp &gt; "$TM_NEW_FILE"
fi</string>
<key>extension</key>
<string>gp</string>
<key>name</key>
<string>Gnuplot Script</string>
<key>uuid</key>
<string>B3A7D3D6-6B30-4C27-A8BB-197213E18A6A</string>
</dict>
</plist>
13 changes: 13 additions & 0 deletions Templates/Gnuplot Script.tmTemplate/untitled.gp
@@ -0,0 +1,13 @@
#
# ${TM_NEW_FILE_BASENAME}
#
# Created by ${TM_FULLNAME} on ${TM_DATE}.
# Copyright (c) ${TM_YEAR} ${TM_ORGANIZATION_NAME}. All rights reserved.
#

set terminal pdf
set output "output.pdf"

set title
set xlabel
set ylabel

0 comments on commit a3523a6

Please sign in to comment.