URL
https://opencores.org/ocsvn/pci/pci/trunk
Subversion Repositories pci
[/] [pci/] [tags/] [rel_9/] [sim/] [rtl_sim/] [run/] [clean] - Rev 154
Compare with Previous | Blame | View Log
#!/bin/csh -f
if ($#argv < 1) then
echo "Missing required argument: all | log | wave | nc_out"
exit
endif
set cur_arg = 1
set arg_chk = 0
set log = 0
set wave = 0
set nc_out = 0
while ($cur_arg <= $#argv)
if ($argv[$cur_arg] == "all") then
set log = 1
set wave = 1
set nc_out = 1
@ arg_chk = $arg_chk + 1
endif
if ($argv[$cur_arg] == "log") then
set log = 1
@ arg_chk = $arg_chk + 1
endif
if ($argv[$cur_arg] == "wave") then
set wave = 1
@ arg_chk = $arg_chk + 1
endif
if ($argv[$cur_arg] == "nc_out") then
set nc_out = 1
@ arg_chk = $arg_chk + 1
endif
if ($arg_chk != $cur_arg) then
echo "Invalid argument $argv[$cur_arg]"
exit
endif
@ cur_arg = $cur_arg + 1
end
if ($nc_out) then
rm ../bin/INCA_libs/worklib/*
rm ../bin/INCA_libs/worklib/.*
endif
if ($log) then
rm ../log/*.log
endif
if ($wave) then
rm -rf ../out/*.shm
endif