Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
Newstar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Legacy
WSRT
Newstar
Commits
818a2d28
Commit
818a2d28
authored
16 years ago
by
wbrouw
Browse files
Options
Downloads
Patches
Plain Diff
Changed tail +number to tail -n +number
parent
403e1044
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sys/compile.csh
+2
-1
2 additions, 1 deletion
src/sys/compile.csh
src/sys/update.csh
+10
-9
10 additions, 9 deletions
src/sys/update.csh
with
12 additions
and
10 deletions
src/sys/compile.csh
+
2
−
1
View file @
818a2d28
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
# JPH 981113 Bug fix in setting of L_Obj
# JPH 981113 Bug fix in setting of L_Obj
# AXC 040127 Removes IGETARG iso GETARG exception for HP
# AXC 040127 Removes IGETARG iso GETARG exception for HP
# WNB 070831 Replace termcap ncurses
# WNB 070831 Replace termcap ncurses
# WNB 090303 Change 'tail +<num>' into 'tail -n +<num>'
#
#
# compile.csh Process all files specified in Input_file
# compile.csh Process all files specified in Input_file
#
#
...
@@ -163,7 +164,7 @@ while ( "$Input_file" != "")
...
@@ -163,7 +164,7 @@ while ( "$Input_file" != "")
set Object_file=""
set Object_file=""
while ($c_iline < $c_nline) # Lines left?
while ($c_iline < $c_nline) # Lines left?
@ c_iline = $c_iline + 1
@ c_iline = $c_iline + 1
set Object_file=($Object_file `tail +$c_iline $Flag | head -1`)
set Object_file=($Object_file `tail
-n
+$c_iline $Flag | head -1`)
if (`echo $Object_file | wc -c ` > 500) then
if (`echo $Object_file | wc -c ` > 500) then
log `$ARR $File $Object_file`
log `$ARR $File $Object_file`
'rm' -f $Object_file
'rm' -f $Object_file
...
...
This diff is collapsed.
Click to expand it.
src/sys/update.csh
+
10
−
9
View file @
818a2d28
...
@@ -62,6 +62,7 @@
...
@@ -62,6 +62,7 @@
# HjV 960423 Bitmaps have now extension .xbm in source tree
# HjV 960423 Bitmaps have now extension .xbm in source tree
# HjV 960522 Change files to exclude for PACK option (different for hlp)
# HjV 960522 Change files to exclude for PACK option (different for hlp)
# HjV 000309 Change elm -s into nsmail
# HjV 000309 Change elm -s into nsmail
# WNB 090303 Change 'tail +<num>' into 'tail -n +<num>'
#
#
#
#
# This is the update script for the Newstar programs
# This is the update script for the Newstar programs
...
@@ -912,7 +913,7 @@ _EOD_
...
@@ -912,7 +913,7 @@ _EOD_
@ iline = -9 # Means 1 after first increment by 10
@ iline = -9 # Means 1 after first increment by 10
while ($iline < $nline) # Lines left?
while ($iline < $nline) # Lines left?
@ iline = $iline + 10 # Next series of 10
@ iline = $iline + 10 # Next series of 10
foreach wfile ( `tail +$iline $Tmpfile | head -10` )
foreach wfile ( `tail
-n
+$iline $Tmpfile | head -10` )
if ("$wfile" =~ -* || "$wfile" =~ +* ) then
if ("$wfile" =~ -* || "$wfile" =~ +* ) then
set Options=( local $wfile );
set Options=( local $wfile );
...
@@ -1003,7 +1004,7 @@ _EOD_
...
@@ -1003,7 +1004,7 @@ _EOD_
@ iline = -9 # Means 1 after first increment by 10
@ iline = -9 # Means 1 after first increment by 10
while ($iline < $nline) # Lines left?
while ($iline < $nline) # Lines left?
@ iline = $iline + 10 # Next series of 10
@ iline = $iline + 10 # Next series of 10
foreach wfile ( `tail +$iline $Tmpfile | head -10` )
foreach wfile ( `tail
-n
+$iline $Tmpfile | head -10` )
if ("$wfile" !~ -* && "$wfile" !~ +* ) then
if ("$wfile" !~ -* && "$wfile" !~ +* ) then
set Flag=`grep '^'$wfile'$' $n_work/continue.idx`
set Flag=`grep '^'$wfile'$' $n_work/continue.idx`
if ("$Flag" == "") echo "Error: remaining dependency $wfile"
if ("$Flag" == "") echo "Error: remaining dependency $wfile"
...
@@ -1058,7 +1059,7 @@ _EOD_
...
@@ -1058,7 +1059,7 @@ _EOD_
@ iline = -9 # Means 1 after first increment by 10
@ iline = -9 # Means 1 after first increment by 10
while ($iline < $nline) # Lines left?
while ($iline < $nline) # Lines left?
@ iline = $iline + 10 # Next series of 10
@ iline = $iline + 10 # Next series of 10
foreach file ( `tail +$iline $Tmpfile | head -10` )
foreach file ( `tail
-n
+$iline $Tmpfile | head -10` )
#
#
# If the file does no longer exist in $n_import is has been moved in
# If the file does no longer exist in $n_import is has been moved in
# $n_src earlier, so no need to worry.
# $n_src earlier, so no need to worry.
...
@@ -1219,7 +1220,7 @@ _EOD_
...
@@ -1219,7 +1220,7 @@ _EOD_
#
#
# Append the remainder of nnews.hlp and put the new version in the system
# Append the remainder of nnews.hlp and put the new version in the system
#
#
tail +2l $n_src/doc/nnews.hlp >>$Tmpfile
tail
-n
+2l $n_src/doc/nnews.hlp >>$Tmpfile
mv $n_src/doc/nnews.hlp $n_src/doc/nnews.hlp.old
mv $n_src/doc/nnews.hlp $n_src/doc/nnews.hlp.old
mv $Tmpfile $n_src/doc/nnews.hlp
mv $Tmpfile $n_src/doc/nnews.hlp
'rm' -f $Tmpfile
'rm' -f $Tmpfile
...
@@ -1633,7 +1634,7 @@ _EOD_
...
@@ -1633,7 +1634,7 @@ _EOD_
@ iline = -9 # Means 1 after first increment by 10
@ iline = -9 # Means 1 after first increment by 10
while ($iline < $nline) # Lines left?
while ($iline < $nline) # Lines left?
@ iline = $iline + 10 # Next series of 10
@ iline = $iline + 10 # Next series of 10
foreach file ( `tail +$iline $Tmpfile | head -10` )
foreach file ( `tail
-n
+$iline $Tmpfile | head -10` )
set Lock=(` grep $file $n_src/sys/lock.idx `)
set Lock=(` grep $file $n_src/sys/lock.idx `)
if ("$file" != "+doc/nnews.hlp" && "$Lock" != "") then
if ("$file" != "+doc/nnews.hlp" && "$Lock" != "") then
echo "Warning: $Lock"
echo "Warning: $Lock"
...
@@ -1662,7 +1663,7 @@ _EOD_
...
@@ -1662,7 +1663,7 @@ _EOD_
@ iline = -9 # Means 1 after first increment by 10
@ iline = -9 # Means 1 after first increment by 10
while ($iline < $nline) # Lines left?
while ($iline < $nline) # Lines left?
@ iline = $iline + 10 # Next series of 10
@ iline = $iline + 10 # Next series of 10
foreach file ( `tail +$iline $Tmpfile | head -10` )
foreach file ( `tail
-n
+$iline $Tmpfile | head -10` )
echo \
echo \
"+$file locked User=Newstar Date=$C_Date/$C_Time" \
"+$file locked User=Newstar Date=$C_Date/$C_Time" \
| tee -a $n_src/sys/lock.idx
| tee -a $n_src/sys/lock.idx
...
@@ -1857,7 +1858,7 @@ _EOD_
...
@@ -1857,7 +1858,7 @@ _EOD_
@ iline = -9 # Means 1 after first increment by 10
@ iline = -9 # Means 1 after first increment by 10
while ($iline < $nline) # Lines left?
while ($iline < $nline) # Lines left?
@ iline = $iline + 10 # Next series of 10
@ iline = $iline + 10 # Next series of 10
foreach file ( `tail +$iline $Tmpfile | head -10` )
foreach file ( `tail
-n
+$iline $Tmpfile | head -10` )
if (! -d $file) then
if (! -d $file) then
if (-e $file ) then
if (-e $file ) then
if ("$_Confirm" == 0) then
if ("$_Confirm" == 0) then
...
@@ -2033,7 +2034,7 @@ _EOD_
...
@@ -2033,7 +2034,7 @@ _EOD_
@ iline = -9 # Means 1 after first increment by 10
@ iline = -9 # Means 1 after first increment by 10
while ($iline < $nline) # Lines left?
while ($iline < $nline) # Lines left?
@ iline = $iline + 10 # Next series of 10
@ iline = $iline + 10 # Next series of 10
foreach file ( `tail +$iline $Tmpfile | head -10` )
foreach file ( `tail
-n
+$iline $Tmpfile | head -10` )
#
#
# Store the date field for the next file
# Store the date field for the next file
#
#
...
@@ -2085,7 +2086,7 @@ _EOD_
...
@@ -2085,7 +2086,7 @@ _EOD_
@ iline = -9 # Means 1 after first increment by 10
@ iline = -9 # Means 1 after first increment by 10
while ($iline < $nline) # Lines left?
while ($iline < $nline) # Lines left?
@ iline = $iline + 10 # Next series of 10
@ iline = $iline + 10 # Next series of 10
foreach file ( `tail +$iline $Tmpfile.2 | head -10` )
foreach file ( `tail
-n
+$iline $Tmpfile.2 | head -10` )
if ("$file" =~ *.* && "$file:e" != "dsc") then
if ("$file" =~ *.* && "$file:e" != "dsc") then
set Flag=$file:t
set Flag=$file:t
set Flag=${Flag:r}.o
set Flag=${Flag:r}.o
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment