Added release tag and revision number info for SICS and the nexus data files.

r1731 | ffr | 2007-03-28 11:55:39 +1000 (Wed, 28 Mar 2007) | 2 lines
This commit is contained in:
Ferdi Franceschini
2007-03-28 11:55:39 +10:00
committed by Douglas Clowes
parent 1035b72981
commit 3df6a5a8da
3 changed files with 18 additions and 6 deletions

View File

@@ -16,7 +16,11 @@ scan_variable=scanvar
#---------- NXentry level
etitle=/$(entryName),NXentry/SDS title -type NX_CHAR
sics_release=/$(entryName),NXentry/SDS release_tag -type NX_CHAR
sics_release=/version,NXentry/SDS sics_release_tag -type NX_CHAR
sics_revision=/version,NXentry/SDS sics_revision_num -type NX_CHAR
nx_content_release=/version,NXentry/SDS nx_content_release_tag -type NX_CHAR -attr {schema_release "$Name: not supported by cvs2svn $"}
nx_content_revision=/version,NXentry/SDS nx_content_revision_num -type NX_CHAR -attr {schema_revision "$Revision: 1.2 $"}
estart=/$(entryName),NXentry/SDS start_time -type NX_CHAR
eend=/$(entryName),NXentry/SDS end_time -type NX_CHAR

View File

@@ -1,5 +1,7 @@
# TODO Return filename from nxcreatefile and call nxreopen nxclose etc
# with filename
set nx_content_release_tag [lindex [string map {"$" ""} {$Name: not supported by cvs2svn $}] 1]
set nx_content_revision_num [lindex [string map {"$" ""} {$Revision: 1.7 $}] 1]
MakeNXScript
sicsdatafactory new nxscript_data
@@ -21,15 +23,17 @@ proc newFileName {} {
}
proc nxcreatefile {nxdic {type nx.hdf}} {
global nxFileOpen cfPath nexusdic;
global nxFileOpen cfPath nexusdic nx_content_release_tag nx_content_revision_num;
SicsDataPostFix .$type;
set nexusdic $nxdic
array set nxmode [list nx.hdf create5 h5 create5 nx5 create5 xml createxml];
dataFileName [newFileName]
nxscript $nxmode($type) [SplitReply [dataFileName]] $cfPath(nexus)/$nexusdic;
nxscript updatedictvar entryName sics_release
nxscript puttext sics_release [SplitReply [sics_release]]
nxscript puttext sics_revision [SplitReply [sics_revision_num]]
nxscript puttext nx_content_release $nx_content_release_tag
nxscript puttext nx_content_revision $nx_content_revision_num
set nxFileOpen true
}