ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ozone/mgar/gar/bin/update-commondirs
Revision: 1
Committed: Sat Jun 20 14:58:51 2026 UTC (4 weeks, 3 days ago) by operz
File size: 1003 byte(s)
Log Message:
Initial import of OZSW mgar build tree

File Contents

# Content
1 #!/bin/sh
2
3 # This script updates etc/commondirs, the list of directories in CSWcommon
4 # from the package. It is a superugly hack for time-to-time updates.
5
6 # The current workflow is
7 # - update the package CSWcommon
8 # - call this script
9 # - commit etc/commondirs, so cswproto removes the right directories
10 # The workflow in the future may look like this:
11 # - Update etc/commondirs
12 # - Build CSWcommon package with GAR
13
14
15 update() {
16 ARCH=$1
17
18 TMPDIR=/tmp/update-commondir.$$
19 mkdir $TMPDIR
20 (
21 cd $TMPDIR
22 wget http://mirror.opencsw.org/opencsw/unstable/$1/5.10/common-1.5,REV=2010.12.11-SunOS5.8-$1-CSW.pkg
23 cat common-* | pkgtrans /dev/fd/0 $TMPDIR all
24 )
25
26 ( perl -ne '
27 my @l = split;
28 if( $l[1] =~ /^[ds]$/ ) {
29 print ($l[3] =~ /([^=]*)/);
30 print "\n";
31 }
32 ' $TMPDIR/CSWcommon/pkgmap
33 echo "/var"; echo "/var/run"
34 echo "/usr"; echo "/usr/sadm"; echo "/usr/sadm/install"; echo "/usr/sadm/install/scripts"
35 ) > ../etc/commondirs-$1
36
37 rm -rf $TMPDIR
38 }
39
40 update sparc
41 update i386
42

Properties

Name Value
svn:executable *