/[polypkg]/trunk/pp.back.inst
ViewVC logotype

Contents of /trunk/pp.back.inst

Parent Directory Parent Directory | Revision Log Revision Log


Revision 220 - (show annotations)
Wed Jun 17 22:58:27 2009 UTC (5 months ago) by tperciva
File size: 2237 byte(s)
Use replacement readlink on IRIX

From QAS r852
Author: Michael Thompson <michael.thompson@quest.com>
1 # IRIX inst backend
2 #
3 # executables are either going to be mips3 or mips4 and N32 or elf64.
4 # so the package format is going to be mips3n32
5 # inst(1M) is the tool for installing packages
6 # gendist(1M) is the tool for making packages.
7 # It takes a tree of files, a spec file and an idb file
8 # The spec file is a text description like this:
9 # include file
10 # define variable value
11 # product xx
12 # attribute ...
13 # image yy
14 # attribute ...
15 # subsystem zzz
16 # attribute ...
17 # endsubsys
18 # endimage
19 # endproduct
20 #
21 # Attributes include
22 # id "<title-string>"
23 # version <number>
24 # mach "<machtag>"
25 #
26 # The idb file contains one line for each file or directory with
27 # optioanl extra attributes
28 # config([update|suggest|noupdate])
29 # symval(<symlink-target>)
30 # postop(cmd)
31 #
32
33 pp_platforms="$pp_platforms inst"
34
35 #@ pp_backend_inst_detect(uname_s): return true if matches uname on inst
36 pp_backend_inst_detect () {
37 case "$1" in
38 IRIX*) return 0;;
39 *) return 1;;
40 esac
41 }
42
43 #@ pp_backend_inst_init(): initialises platform variables for inst
44 pp_backend_inst_init () {
45 pp_readlink_fn=pp_ls_readlink
46 }
47
48
49 #@ pp_backend_inst(): processes output files to generate a package files
50 pp_backend_inst () {
51 :
52 }
53
54 #@ pp_backend_inst_cleanup(): removes any files created outside $pp_wrkdir
55 pp_backend_inst_cleanup () {
56 :
57 }
58
59 #@ pp_backend_inst_names(): prints the paths to package files
60 # each path should start with $name-$version
61 # the package must be relative to the $pp_wrkdir directory
62 pp_backend_inst_names () {
63 :
64 }
65
66 #@ pp_backend_inst_install_script(component): generate helper install script
67 pp_backend_inst_install_script () {
68 :
69 }
70
71 #@ pp_backend_inst_function(func): output one platform-dependent function
72 pp_backend_inst_function () {
73 echo false
74 }
75
76 #@ pp_backend_inst_init_svc_vars(): initialise service vars
77 pp_backend_inst_init_svc_vars () {
78 :
79 }
80
81 #@ pp_backend_inst_probe(): output local platform's short name
82 pp_backend_inst_probe () {
83 cpu=`hinv|sed -n '/^CPU/{s/000 /k /;s/^CPU: //;s/ Process.*//;s/^MIPS //;p;q;}'|tr A-Z a-z`
84 echo irix`uname -r`-$cpu
85 }
86
87 pp_backend_inst_vas_platforms () {
88 :
89 }

Ted.Percival@quest.com
ViewVC Help
Powered by ViewVC 1.1.2