- tms-old
- tms
- tmsDevTest
- kstSetup
This file ( 2kB ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
#!/bin/sh
################################################################################
# KstSetup Sets up KST for data files
################################################################################
#
kstAddFile(){
if ! grep "\[$1\]" ${HOME}/.kde/share/config/kstdatarc > /dev/null 2>&1; then
cat <<EOD >> ${HOME}/.kde/share/config/kstdatarc
[$1]
Column Delimiter=
Column Type=0
Column Width=16
Comment Delimiters=#/c!;
Data Start=0
Default INDEX Interpretation=1
Fields Line=0
Read Fields=true
EOD
fi
}
kstAddFile diag_start_0.txt
kstAddFile diag_start_1.txt
kstAddFile diag_injection_0.txt
kstAddFile diag_injection_1.txt
kstAddFile diag_injection_2.txt
kstAddFile diag_injection_3.txt
kstAddFile data1.txt
kstAddFile data2.txt
kstAddFile diag_start_0.txt
sed -e "s/data.txt/diag_start_0.txt/" -e "s'/src/cern/tms/tmsDevTest/''" diagSource0.kst > diag_start_0.kst
kstAddFile diag_start_1.txt
sed -e "s/data.txt/diag_start_1.txt/" -e "s'/src/cern/tms/tmsDevTest/''" diagSource1.kst > diag_start_1.kst
kstAddFile diag_injection_0.txt
sed -e "s/data.txt/diag_injection_0.txt/" -e "s'/src/cern/tms/tmsDevTest/''" diagSource0.kst > diag_injection_0.kst
kstAddFile diag_injection_1.txt
sed -e "s/data.txt/diag_injection_1.txt/" -e "s'/src/cern/tms/tmsDevTest/''" diagSource1.kst > diag_injection_1.kst
kstAddFile diag_injection_2.txt
sed -e "s/data.txt/diag_injection_2.txt/" -e "s'/src/cern/tms/tmsDevTest/''" diagSource2.kst > diag_injection_2.kst
kstAddFile diag_injection_3.txt
sed -e "s/data.txt/diag_injection_3.txt/" -e "s'/src/cern/tms/tmsDevTest/''" diagSource3.kst > diag_injection_3.kst
kstAddFile data1.txt
sed -e "s/data.txt/data1.txt/" -e "s'/src/cern/tms/tmsDevTest/''" data.kst > data1.kst
kstAddFile data2.txt
sed -e "s/data.txt/data2.txt/" -e "s'/src/cern/tms/tmsDevTest/''" data.kst > data2.kst