summaryrefslogtreecommitdiff
path: root/math/scilab/files/update_plist
blob: 6ad6218ff8ad753146ce50b7eb3833526301d41f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
#
# $NetBSD: update_plist,v 1.1 2007/03/23 22:08:56 dmcmahill Exp $
#

# The scilab install uses tar which preserves times and makes
# 'make print-PLIST' not work.  Be sure to watch out for the 
# ocaml stuff in PLIST.opt if you are on i386
#

grep "@comment" PLIST > plist.new
grep "^bin" PLIST >> plist.new

find /usr/pkg/lib/scilab-4.1 -type f -print | sort | sed 's;/usr/pkg/lib/scilab-4.1;lib/${PKGNAME};g' >> plist.new
find /usr/pkg/share/doc/scilab-4.1 -type f -print | sort | sed 's;/usr/pkg/share/doc/scilab-4.1;share/doc/${PKGNAME};g' >> plist.new

find /usr/pkg/lib/scilab-4.1 -type d -print | sort -r | sed 's;/usr/pkg/lib/scilab-4.1;@dirrm lib/${PKGNAME};g' >> plist.new
echo '@dirrm lib/${PKGNAME}' >> plist.new

find /usr/pkg/share/doc/scilab-4.1 -type d -print | sort -r | sed 's;/usr/pkg/share/doc/scilab-4.1;@dirrm share/doc/${PKGNAME};g' >> plist.new
echo '@dirrm share/doc/${PKGNAME}' >> plist.new