Mercurial > forge
comparison main/netcdf/src/PKG_ADD.sh @ 12636:1856200c84b1 octave-forge
add PKG_DEL
author | abarth93 |
---|---|
date | Tue, 16 Jun 2015 07:16:51 +0000 |
parents | 2dcf60b06fb2 |
children |
comparison
equal
deleted
inserted
replaced
12635:f2cf7070ccb5 | 12636:1856200c84b1 |
---|---|
16 | 16 |
17 | 17 |
18 netcdf_functions=$(awk -F'[(,]' '/DEFUN_DLD/ { print $2 } ' __netcdf__.cc) | 18 netcdf_functions=$(awk -F'[(,]' '/DEFUN_DLD/ { print $2 } ' __netcdf__.cc) |
19 | 19 |
20 outfile=../PKG_ADD | 20 outfile=../PKG_ADD |
21 outfile_del=../PKG_DEL | |
21 importfile=../inst/import_netcdf.m | 22 importfile=../inst/import_netcdf.m |
22 | 23 |
23 rm -f $outfile $importfile | 24 rm -f $outfile $outfile_del $importfile |
24 | 25 |
25 echo '% File automatically generated by PKG_ADD.sh' > $importfile | 26 echo '% File automatically generated by PKG_ADD.sh' > $importfile |
26 echo '% File automatically generated by PKG_ADD.sh' > $outfile | 27 echo '% File automatically generated by PKG_ADD.sh' > $outfile |
27 | 28 |
28 for i in $netcdf_functions; do | 29 for i in $netcdf_functions; do |
33 cat >> $importfile <<EOF | 34 cat >> $importfile <<EOF |
34 netcdf.${i#netcdf_} = @$i; | 35 netcdf.${i#netcdf_} = @$i; |
35 EOF | 36 EOF |
36 | 37 |
37 done | 38 done |
39 | |
40 | |
41 echo '% File automatically generated by PKG_ADD.sh' > $outfile_del | |
42 | |
43 for i in $netcdf_functions; do | |
44 echo ${i#netcdf_} | |
45 cat >> $outfile_del <<EOF | |
46 autoload ("$i", fullfile (fileparts (mfilename ("fullpath")), "__netcdf__.oct"),"remove"); | |
47 EOF | |
48 done |