Mercurial > hg > octave-nkf
view scripts/mkpkgadd @ 5249:5c2f58301790 ss-2-9-1
[project @ 2005-03-27 12:06:59 by jwe]
author | jwe |
---|---|
date | Sun, 27 Mar 2005 12:06:59 +0000 |
parents | d53c33d93440 |
children | 4270ded9ddc6 |
line wrap: on
line source
#! /bin/sh if [ $# -eq 1 ]; then dir="$1" else echo "usage: mkpkgadd directory" 1>&2 exit 1 fi cd $dir m_files=`ls *.m` cxx_files=`ls *.cc` if [ -n "$m_files" ]; then sed -n 's/^[#%][#%]* *PKG_ADD: *//p' $m_files fi if [ -n "$cxx_files" ]; then sed -n -e 's,^//* *PKG_ADD: *,,p' \ -e 's,^/\** *PKG_ADD: *\(.*\) \*/$,\1,p' $cxx_files fi