view scripts/mkpkgadd @ 4308:b738d1a02adb

[project @ 2003-01-24 19:37:12 by jwe]
author jwe
date Fri, 24 Jan 2003 19:37:12 +0000
parents eafca8134ab6
children d53c33d93440
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

files=`ls *.m`

if [ -n "$files" ]; then
  sed -n 's/^[#%][#%]* *PKG_ADD: *//p' $files
fi