File: update-example-data.sh

package info (click to toggle)
xnec2c 1%3A4.4.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,840 kB
  • sloc: ansic: 27,869; sh: 1,080; makefile: 323; javascript: 117; xml: 18
file content (13 lines) | stat: -rwxr-xr-x 285 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

for i in examples/*.nec; do
	echo
	echo ===== $i =====
	output="examples/data/`basename $i .nec`.csv"
	if [ -s "$output" ]; then
		echo "$output already exists, skipping"
	else
		./src/xnec2c -j $(grep -c ^processor /proc/cpuinfo) --write-csv "$output" --batch $i
	fi
done