-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathgsl-gen-tmps.sh
executable file
·31 lines (29 loc) · 1.31 KB
/
gsl-gen-tmps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
set -e
gsldir="extracted/$1"
for i in "$gsldir"/gsl/*.h; do
hname=`basename "$i"`
tmp=${i%.h}.tmp
case $i in
*/gsl_block.h) ./getcomment ${i%$hname}gsl_block_int.h | tail -n+2 > $tmp;;
*/gsl_matrix.h) ./getcomment ${i%$hname}gsl_matrix_int.h | tail -n+2 > $tmp;;
*/gsl_permute.h) ./getcomment ${i%$hname}gsl_permute_int.h | tail -n+2 > $tmp;;
*/gsl_permute_vector.h) ./getcomment ${i%$hname}gsl_permute_vector_int.h | tail -n+2 > $tmp;;
*/gsl_sf.h) ./getcomment ${i%$hname}gsl_sf_log.h | tail -n+2 > $tmp;;
*/gsl_sort.h) ./getcomment ${i%$hname}gsl_sort_int.h | tail -n+2 > $tmp;;
*/gsl_sort_vector.h) ./getcomment ${i%$hname}gsl_sort_int.h | tail -n+2 > $tmp;;
*/gsl_statistics.h) ./getcomment ${i%$hname}gsl_statistics_int.h | tail -n+2 > $tmp;;
*/gsl_vector.h) ./getcomment ${i%$hname}gsl_vector_int.h | tail -n+2 > $tmp;;
*/gsl_vector_complex.h) ./getcomment ${i%$hname}gsl_vector_int.h | tail -n+2 > $tmp;;
*/gsl_version.h)
./getcomment ${i%$hname}gsl_block_int.h | tail -n+4 > $tmp
;;
*/gsl_machine.h|*/gsl_qrng.h|*/gsl_specfunc.h)
./getcomment $i > $tmp
./getcomment ${i%$hname}gsl_block_int.h | tail -n+4 >> $tmp
;;
*)
./getcomment $i > $tmp
;;
esac
done