tools/generate-history
author Lijo George<lijo.x.george@oracle.com>
Thu, 26 Nov 2015 02:23:48 -0800
changeset 5129 5431772f7235
parent 4813 5e86eaf216ff
child 5571 bd6c9b9b753f
child 7036 9bdfcd8747ba
permissions -rw-r--r--
PSARC/2014/162 ksh93 update to 2012-08-01 17533968 ksh93 uprev to latest community version 17817727 ksh93: Right shift arithmetic substitution error for shifts of 64 bits or more 17699248 ksh93 double associative array handling bugs 17777549 "kill %%" with no background jobs , coredumps 18119738 ksh93 crashes in sfio area 18229654 ksh93 read not reentrant in alarm context dumps core 16169978 ksh93 memory corruption with redirection 18302723 ksh93 segv in sh_setmatch 16507675 external command in double-nested here-document hangs ksh93 18920300 remove pkglint Warnings in ksh93 build 18355790 /usr/bin/sh and /usr/sbin/sh should point to /usr/bin/ksh93 19907453 Session drop can cause ksh93 to become a fork bomb 18426052 SPARC /usr/bin/ksh is not an XPG6 executable 20808157 attpackagemake.mk test target needs the same environment as the build 20948390 ksh93 should have some master test results to compare against 20948350 attpackagemake.mk tested-and-compared target has mis-matched parentheses
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4813
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     1
# If invoked with -v FUNCTION=name, then just print $1 (s|/|---|).
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     2
# Otherwise we expect to be invoked with TARGET=<whatever>, then if
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     3
# s|/|---| on $1 matches TARGET, we generate a manifest.
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     4
{
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     5
  if (substr($1, 1, 1) == "#") { # Skip comments.
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     6
    continue
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     7
  }
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     8
  fmri=$1
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     9
  split(fmri, a, "@")
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    10
  gsub("/", "---", a[1])
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    11
  target = sprintf("%s.p5m", a[1])
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    12
  if (FUNCTION == "name") {
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    13
    printf "%s\n", target
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    14
    continue
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    15
  }
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    16
  if (target != TARGET) {
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    17
    continue
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    18
  }
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    19
  printf "set name=pkg.fmri value=pkg:/%s\n", fmri
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    20
  if (NF == 2) {
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    21
    print "set name=pkg.renamed value=true"
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    22
    printf "depend type=require fmri=%s\n", $2
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    23
  } else {
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    24
    print "set name=pkg.obsolete value=true"
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    25
  }
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    26
  print "set name=org.opensolaris.consolidation value=$(CONSOLIDATION)"
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    27
  exit 0 # We're done; no point continuing.
5e86eaf216ff 21699326 Userland package history simplification
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    28
}