Annotation of OpenXM/src/kxx/sm12ox100bin.sh, Revision 1.1
1.1 ! takayama 1: #!/bin/sh
! 2: case $# in
! 3: 0) echo 'Usage: sm12ox100bin.sh output-file-name-for-ox100-bin' 1>&2 ; \
! 4: echo 'Example of the intput:' 1>&2 ; \
! 5: echo ' oxsm1.ccc (hello) oxpushcmo ; ' 1>&2 ; \
! 6: echo ' oxsm1.ccc oxpopcmo ; ' 1>&2 ; \
! 7: echo ' ((x-1)^2). [(class) (recursivePolynomial)] dc /ff set ' 1>&2 ; \
! 8: echo ' oxsm1.ccc ff oxpushcmo ; ' 1>&2 ; exit 1
! 9: esac
! 10: tmp_prog=.prog.ox100bin.$$
! 11: tmp_in=.in.ox100bin.$$
! 12: tmp_out=$1
! 13: rm -f ${tmp_prog}
! 14: echo " [(parse) (ox.sm1) pushfile] extension sm1connectr " >${tmp_prog}
! 15: echo " (${tmp_in}) (w) file /ii.tmp set " >>${tmp_prog}
! 16: echo " (${tmp_out}) (w) file /oo.tmp set " >>${tmp_prog}
! 17: echo " [(oxLog) oxsm1.ccc ii.tmp oo.tmp] extension [(oxWatch) oxsm1.ccc ] extension " >>${tmp_prog}
! 18: cat >>${tmp_prog}
! 19: echo "[(oxLogStop) oxsm1.ccc ] extension " >>${tmp_prog}
! 20: echo "quit" >>${tmp_prog}
! 21: sm1 <${tmp_prog}
! 22: rm -f ${tmp_prog} ${tmp_in}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>