Changeset 4481 for palm/trunk/SCRIPTS
- Timestamp:
- Mar 31, 2020 6:55:54 PM (5 years ago)
- Location:
- palm/trunk/SCRIPTS
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/.csd.config.default
r3668 r4481 15 15 # PALM. If not, see <http://www.gnu.org/licenses/>. 16 16 # 17 # Copyright 1997-20 18Leibniz Universitaet Hannover17 # Copyright 1997-2020 Leibniz Universitaet Hannover 18 18 #--------------------------------------------------------------------------------# 19 19 # -
palm/trunk/SCRIPTS/batch_scp
r4443 r4481 17 17 # PALM. If not, see <http://www.gnu.org/licenses/>. 18 18 # 19 # Copyright 1997-20 18Leibniz Universitaet Hannover19 # Copyright 1997-2020 Leibniz Universitaet Hannover 20 20 #--------------------------------------------------------------------------------# 21 21 # -
palm/trunk/SCRIPTS/compile_tutorial
r2718 r4481 15 15 # PALM. If not, see <http://www.gnu.org/licenses/>. 16 16 # 17 # Copyright 1997-20 18Leibniz Universitaet Hannover17 # Copyright 1997-2020 Leibniz Universitaet Hannover 18 18 #--------------------------------------------------------------------------------# 19 19 # -
palm/trunk/SCRIPTS/document_changes
r4370 r4481 25 25 # ----------------- 26 26 # $Id$ 27 # Bugfix for copyright updates 28 # 29 # 4370 2020-01-10 14:00:44Z raasch 27 30 # script made bash compatible 28 31 # … … 204 207 done <"$fn" 205 208 206 207 209 208 210 # 209 211 #-- check for updates of the copyright statement 210 found_update_year=false211 212 212 while read line 213 213 do … … 216 216 line_tmp2="" 217 217 line_tmp=${line:22:29} 218 line_tmp2=${line:2:1 5}219 220 # echo "$line_tmp $line_tmp2" 221 222 if [[ "$line_tmp" == "Leibniz Universitaet Hannover" && "$line_tmp2" == "Copyright 1997-" ]]223 then224 225 year_in_file=${line:17:4} 226 if [[ "$year_in_file " != "$current_year" ]]218 line_tmp2=${line:2:10} 219 220 if [[ "$line_tmp2" == "Copyright " ]] 221 then 222 year_in_file1=${line:12:4} 223 year_in_file2=${line:17:4} 224 institution=${line:22} 225 226 if [[ "$year_in_file2" != "$current_year" ]] 227 227 then 228 229 228 printf "\r%$(tput cols)s" " " 230 229 printf "\r \e[1;33m*** Copyright update required in $fn\e[0m\n" 231 230 232 231 comment_char=${line:0:1} 233 found_update_year=true234 232 cp $fn $fn~ 235 233 234 (( count_updates = count_updates + 1 )) 235 sed -i "s/$comment_char Copyright .*$institution/$comment_char Copyright $year_in_file1-$current_year $institution/" $fn 236 236 237 fi 237 238 fi 238 239 239 240 done <"$fn" 240 241 241 242 printf "\r%$(tput cols)s" " " 242 243 printf "\r\e[1m *** Searched files: $count_files. Comments found: $count_changes. Copyright updates found: $count_updates\e[0m" 243 244 244 245 # 245 246 #-- move comments from current revisions to former revisions … … 252 253 #-- remove leading \n characters in string 253 254 comments=${comments:2} 254 255 256 255 257 256 # 258 257 #-- fix old time stamp … … 267 266 (( line_stop = line_stop + 2 )) 268 267 sed -i "${line_stop}i$comments" $fn 269 268 270 269 271 270 … … 279 278 fi 280 279 281 #282 #-- move comments from current revisions to former revisions283 if [[ "$found_update_year" == true ]]284 then285 286 (( count_updates = count_updates + 1 ))287 288 sed -i "s/$comment_char Copyright 1997-.*Leibniz Universitaet Hannover/$comment_char Copyright 1997-$current_year Leibniz Universitaet Hannover/" $fn289 290 fi291 292 280 done 293 281 -
palm/trunk/SCRIPTS/generate_documentation
r3197 r4481 14 14 # PALM. If not, see <http://www.gnu.org/licenses/>. 15 15 # 16 # Copyright 1997-20 18Leibniz Universitaet Hannover16 # Copyright 1997-2020 Leibniz Universitaet Hannover 17 17 #--------------------------------------------------------------------------------# 18 18 # -
palm/trunk/SCRIPTS/inifor_script
r3792 r4481 17 17 # PALM. If not, see <http://www.gnu.org/licenses/>. 18 18 # 19 # Copyright 2017-20 18Leibniz Universitaet Hannover19 # Copyright 2017-2020 Leibniz Universitaet Hannover 20 20 #--------------------------------------------------------------------------------# 21 21 # -
palm/trunk/SCRIPTS/palm_csd
r4311 r4481 15 15 # PALM. If not, see <http://www.gnu.org/licenses/>. 16 16 # 17 # Copyright 1997-20 18Leibniz Universitaet Hannover17 # Copyright 1997-2020 Leibniz Universitaet Hannover 18 18 #--------------------------------------------------------------------------------# 19 19 # -
palm/trunk/SCRIPTS/palm_csd_files/palm_csd_canopy_generator.py
r4023 r4481 15 15 # PALM. If not, see <http://www.gnu.org/licenses/>. 16 16 # 17 # Copyright 1997-20 18Leibniz Universitaet Hannover17 # Copyright 1997-2020 Leibniz Universitaet Hannover 18 18 #--------------------------------------------------------------------------------# 19 19 # -
palm/trunk/SCRIPTS/palm_csd_files/palm_csd_netcdf_interface.py
r3944 r4481 15 15 # PALM. If not, see <http://www.gnu.org/licenses/>. 16 16 # 17 # Copyright 1997-20 18Leibniz Universitaet Hannover17 # Copyright 1997-2020 Leibniz Universitaet Hannover 18 18 #--------------------------------------------------------------------------------# 19 19 # -
palm/trunk/SCRIPTS/palm_csd_files/palm_csd_tools.py
r4250 r4481 15 15 # PALM. If not, see <http://www.gnu.org/licenses/>. 16 16 # 17 # Copyright 1997-20 18Leibniz Universitaet Hannover17 # Copyright 1997-2020 Leibniz Universitaet Hannover 18 18 #--------------------------------------------------------------------------------# 19 19 # -
palm/trunk/SCRIPTS/palm_find_lowest_available_error_number
r3118 r4481 14 14 # PALM. If not, see <http://www.gnu.org/licenses/>. 15 15 # 16 # Copyright 2018-20 18Leibniz Universitaet Hannover16 # Copyright 2018-2020 Leibniz Universitaet Hannover 17 17 #------------------------------------------------------------------------------# 18 18 # -
palm/trunk/SCRIPTS/palm_find_lowest_available_log_point_index
r3027 r4481 14 14 # PALM. If not, see <http://www.gnu.org/licenses/>. 15 15 # 16 # Copyright 2018-20 18Leibniz Universitaet Hannover16 # Copyright 2018-2020 Leibniz Universitaet Hannover 17 17 #------------------------------------------------------------------------------# 18 18 # -
palm/trunk/SCRIPTS/palm_gf
r4393 r4481 15 15 # PALM. If not, see <http://www.gnu.org/licenses/>. 16 16 # 17 # Copyright 1997-20 18Leibniz Universitaet Hannover17 # Copyright 1997-2020 Leibniz Universitaet Hannover 18 18 #--------------------------------------------------------------------------------# 19 19 # -
palm/trunk/SCRIPTS/palm_gf_files/palm_gf_tools.py
r4393 r4481 15 15 # PALM. If not, see <http://www.gnu.org/licenses/>. 16 16 # 17 # Copyright 1997-20 18Leibniz Universitaet Hannover17 # Copyright 1997-2020 Leibniz Universitaet Hannover 18 18 #--------------------------------------------------------------------------------# 19 19 # -
palm/trunk/SCRIPTS/palm_simple_build
r2875 r4481 14 14 # PALM. If not, see <http://www.gnu.org/licenses/>. 15 15 # 16 # Copyright 1997-20 18Leibniz Universitaet Hannover16 # Copyright 1997-2020 Leibniz Universitaet Hannover 17 17 #--------------------------------------------------------------------------------# 18 18 # -
palm/trunk/SCRIPTS/palm_simple_run
r3414 r4481 14 14 # PALM. If not, see <http://www.gnu.org/licenses/>. 15 15 # 16 # Copyright 1997-20 18Leibniz Universitaet Hannover16 # Copyright 1997-2020 Leibniz Universitaet Hannover 17 17 #--------------------------------------------------------------------------------# 18 18 # -
palm/trunk/SCRIPTS/palm_wd
r4393 r4481 15 15 # PALM. If not, see <http://www.gnu.org/licenses/>. 16 16 # 17 # Copyright 1997-20 18Leibniz Universitaet Hannover17 # Copyright 1997-2020 Leibniz Universitaet Hannover 18 18 #--------------------------------------------------------------------------------# 19 19 # -
palm/trunk/SCRIPTS/palm_wdd
r2825 r4481 15 15 # PALM. If not, see <http://www.gnu.org/licenses/>. 16 16 # 17 # Copyright 1997-20 18Leibniz Universitaet Hannover17 # Copyright 1997-2020 Leibniz Universitaet Hannover 18 18 #--------------------------------------------------------------------------------# 19 19 # -
palm/trunk/SCRIPTS/palmbuild
r4303 r4481 17 17 # PALM. If not, see <http://www.gnu.org/licenses/>. 18 18 # 19 # Copyright 2017-20 18Leibniz Universitaet Hannover19 # Copyright 2017-2020 Leibniz Universitaet Hannover 20 20 #------------------------------------------------------------------------------# 21 21 # -
palm/trunk/SCRIPTS/palmplot
r3202 r4481 14 14 # PALM. If not, see <http://www.gnu.org/licenses/>. 15 15 # 16 # Copyright 1997-20 18Leibniz Universitaet Hannover16 # Copyright 1997-2020 Leibniz Universitaet Hannover 17 17 #--------------------------------------------------------------------------------# 18 18 # -
palm/trunk/SCRIPTS/palmrun
r4443 r4481 17 17 # PALM. If not, see <http://www.gnu.org/licenses/>. 18 18 # 19 # Copyright 2017-20 18Leibniz Universitaet Hannover19 # Copyright 2017-2020 Leibniz Universitaet Hannover 20 20 #--------------------------------------------------------------------------------# 21 21 # -
palm/trunk/SCRIPTS/palmrungui
r4470 r4481 15 15 # PALM. If not, see <http://www.gnu.org/licenses/>. 16 16 # 17 # Copyright 1997-20 18Leibniz Universitaet Hannover17 # Copyright 1997-2020 Leibniz Universitaet Hannover 18 18 #--------------------------------------------------------------------------------# 19 19 # … … 25 25 # ----------------- 26 26 # $Id$ 27 # Bugfixes: - reading history lines discard button caused error message 28 # - deleting of USER_CODE files did not work 29 # 30 # 4470 2020-03-24 06:52:19Z maronga 27 31 # Added file size output, more I/O functionalities, new/removed buttons 28 32 # … … 1112 1116 opt.exec_() 1113 1117 1114 palmrunline = str(history_entry) 1115 palmrunline = palmrunline[17:] 1116 palmrunline = palmrunline[:len(palmrunline)-1] 1117 palmrunline = filter(None,palmrunline.split("("))[0] 1118 self.groupBox.findChild(QtGui.QLineEdit,"commandline").setText(palmrunline) 1119 1120 # Set selected item to jobname in "available jobs" list 1121 jobname = str(history_entry[17:]) 1122 jobname = filter(None,jobname.split(" -r"))[1] 1123 jobname = jobname.strip() 1124 jobname = filter(None,jobname.split(" "))[0] 1125 jobname = jobname.replace("\"","") 1126 item2int = self.list_jobs.findItems(jobname,QtCore.Qt.MatchCaseSensitive) 1127 1128 if ( item2int != [] ): 1129 self.list_jobs.setCurrentItem(item2int[0]) 1130 self.update_input() 1131 1132 # Add tooltip tag 1133 tag = str(history_entry).split('\n')[0] 1134 tag = filter(None,tag.split("("))[1] 1135 tag = tag.replace(")","") 1136 self.groupBox.findChild(QtGui.QLineEdit,"line_tag").setText(tag) 1118 if ( history_entry != "" ): 1119 palmrunline = str(history_entry) 1120 palmrunline = palmrunline[17:] 1121 palmrunline = palmrunline[:len(palmrunline)-1] 1122 palmrunline = filter(None,palmrunline.split("("))[0] 1123 self.groupBox.findChild(QtGui.QLineEdit,"commandline").setText(palmrunline) 1124 1125 # Set selected item to jobname in "available jobs" list 1126 jobname = str(history_entry[17:]) 1127 jobname = filter(None,jobname.split(" -r"))[1] 1128 jobname = jobname.strip() 1129 jobname = filter(None,jobname.split(" "))[0] 1130 jobname = jobname.replace("\"","") 1131 item2int = self.list_jobs.findItems(jobname,QtCore.Qt.MatchCaseSensitive) 1132 1133 if ( item2int != [] ): 1134 self.list_jobs.setCurrentItem(item2int[0]) 1135 self.update_input() 1136 1137 # Add tooltip tag 1138 tag = str(history_entry).split('\n')[0] 1139 tag = filter(None,tag.split("("))[1] 1140 tag = tag.replace(")","") 1141 self.groupBox.findChild(QtGui.QLineEdit,"line_tag").setText(tag) 1137 1142 1138 # Process palmrungui to set up gui controls1139 self.setup_gui(palmrunline)1143 # Process palmrungui to set up gui controls 1144 self.setup_gui(palmrunline) 1140 1145 1141 1146 … … 1606 1611 sel_files = self.list_user.selectedItems() 1607 1612 1608 input_dir = job_dir + "/" + sel_job + "/USER /"1613 input_dir = job_dir + "/" + sel_job + "/USER_CODE/" 1609 1614 1610 1615 for i in range(0,len(sel_files)): … … 1745 1750 def DiscardHistory(self): 1746 1751 1747 1752 global history_entry 1753 history_entry = "" 1748 1754 self.close() 1749 1755 -
palm/trunk/SCRIPTS/process_dvr_output
r2718 r4481 14 14 # PALM. If not, see <http://www.gnu.org/licenses/>. 15 15 # 16 # Copyright 1997-20 18Leibniz Universitaet Hannover16 # Copyright 1997-2020 Leibniz Universitaet Hannover 17 17 #--------------------------------------------------------------------------------# 18 18 # -
palm/trunk/SCRIPTS/release_tutorial
r2718 r4481 14 14 # PALM. If not, see <http://www.gnu.org/licenses/>. 15 15 # 16 # Copyright 1997-20 18Leibniz Universitaet Hannover16 # Copyright 1997-2020 Leibniz Universitaet Hannover 17 17 #--------------------------------------------------------------------------------# 18 18 #
Note: See TracChangeset
for help on using the changeset viewer.