Gentoo Archives: gentoo-commits

From: "Michael Haubenwallner (haubi)" <haubi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-alt r1616 - trunk/aix-miscutils
Date: Mon, 14 Apr 2008 11:44:59
Message-Id: E1JlN7I-0007CP-CM@stork.gentoo.org
1 Author: haubi
2 Date: 2008-04-14 11:44:55 +0000 (Mon, 14 Apr 2008)
3 New Revision: 1616
4
5 Added:
6 trunk/aix-miscutils/Makefile.am
7 trunk/aix-miscutils/bootstrap
8 trunk/aix-miscutils/configure.ac
9 trunk/aix-miscutils/ldd/
10 Removed:
11 trunk/aix-miscutils/trunk/
12 Log:
13 ohw, dropped duplicate /trunk/ subdir.
14
15
16 Copied: trunk/aix-miscutils/Makefile.am (from rev 1615, trunk/aix-miscutils/trunk/Makefile.am)
17 ===================================================================
18 --- trunk/aix-miscutils/Makefile.am (rev 0)
19 +++ trunk/aix-miscutils/Makefile.am 2008-04-14 11:44:55 UTC (rev 1616)
20 @@ -0,0 +1 @@
21 +SUBDIRS = ldd
22
23 Copied: trunk/aix-miscutils/bootstrap (from rev 1615, trunk/aix-miscutils/trunk/bootstrap)
24 ===================================================================
25 --- trunk/aix-miscutils/bootstrap (rev 0)
26 +++ trunk/aix-miscutils/bootstrap 2008-04-14 11:44:55 UTC (rev 1616)
27 @@ -0,0 +1,100 @@
28 +#! /bin/sh
29 +# Copyright 2007 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +# Author: Michael Haubenwallner <haubi@g.o>
32 +
33 +set -e
34 +
35 +versioning_done=no
36 +
37 +while [ "x$1" != x ]; do
38 + arg=$1
39 + shift
40 + case "x${arg}" in
41 + x--version=*)
42 + echo "x${arg}" | sed -e 's,^x--version=,,' > version
43 + versioning_done=yes
44 + ;;
45 + esac
46 +done
47 +svnurl='$HeadURL: svn+ssh://haubi@××××××××××.org/var/svnroot/gentoo-alt/trunk/aix-miscutils/bootstrap $'
48 +
49 +mainversion=`grep 'AC_INIT(aix-miscutils,[0-9\.]*svnversion)' configure.ac | sed -e 's/.*([^,]*,\([^),]*\)\.svnversion\>.*)/\1/'`
50 +if [ "x${mainversion}" != x ]; then
51 + # configure.ac indicates to define the package-version automagically
52 + if [ "x${versioning_done}" != xyes ] && [ -d .svn ] ; then
53 + # we are in an svn sandbox:
54 + # then we need to determine the version out of svn keyword 'HeadURL'.
55 + case "${svnurl}" in
56 + *'/trunk/'*)
57 + # is snapshot from trunk:
58 + # version is mainversion + '.' + [last-committed] svn revision
59 + svn status -v | cut -c19-26 | sort -rn | { read v ; echo "${mainversion}.${v}" ;} > version
60 + versioning_done=yes
61 + ;;
62 + *'/branches/'*)
63 + # is snapshot from branch:
64 + # version is branch-number + '.' + [last-committed] svn revision
65 + ( echo -n "${svnurl}" \
66 + | sed -e "s,-branch/bootstrap \\\$,,; s,.*/,," -e "s,^.*-,,"
67 + svn status -v | cut -c19-26 | sort -rn | { read v ; echo ".${v}" ;}
68 + ) > version
69 + versioning_done=yes
70 + ;;
71 + esac
72 + fi
73 + if [ "x${versioning_done}" != xyes ]; then
74 + case "${svnurl}" in
75 + *'/tags/'*)
76 + # is tag: version is tag number
77 + ( echo "${svnurl}" \
78 + | sed -e "s,/bootstrap \\\$,,; s,.*-,,"
79 + ) > version
80 + versioning_done=yes
81 + ;;
82 + *)
83 + if [ -r version ]; then
84 + # we reuse the 'version' determined during packaging from svn.
85 + versioning_done=yes
86 + fi
87 + ;;
88 + esac
89 + fi
90 + if [ "x${versioning_done}" != xyes ]; then
91 + echo "error: no 'version' file and unknown svnurl '${svnurl}'" >&2
92 + echo "error: cannot determine package version" >&2
93 + exit 1
94 + fi
95 +else
96 + # configure.ac defines the version, keep 'version' empty.
97 + : > version
98 +fi
99 +set +x
100 +
101 +echo "mkdir -p m4 build-aux"
102 + mkdir -p m4 build-aux
103 +#echo "aclocal -I m4 --install"
104 +# aclocal -I m4 --install
105 +echo "aclocal"
106 + aclocal
107 +#echo "autoheader"
108 +# autoheader
109 +echo "automake --add-missing --copy --foreign"
110 + automake --add-missing --copy --foreign
111 +echo "autoconf"
112 + autoconf
113 +
114 +if [ -s version ]; then
115 + version=`cat version`
116 + eval `grep '^PACKAGE_VERSION=' configure | head -n 1`
117 + if [ "${version}" != "${PACKAGE_VERSION}" ]; then
118 + (
119 + echo '--- configure'
120 + echo '+++ configure'
121 + grep "\<${PACKAGE_VERSION}\>" configure \
122 + | awk '{print "@@ -1,1 +1,1 @@"; print "-" $0; print "+" $0}' \
123 + | sed -e "s|\(^+.*\)\<${PACKAGE_VERSION}\>|\1${version}|"
124 + ) | patch --no-backup-if-mismatch configure -
125 + fi
126 +fi
127 +
128
129 Copied: trunk/aix-miscutils/configure.ac (from rev 1615, trunk/aix-miscutils/trunk/configure.ac)
130 ===================================================================
131 --- trunk/aix-miscutils/configure.ac (rev 0)
132 +++ trunk/aix-miscutils/configure.ac 2008-04-14 11:44:55 UTC (rev 1616)
133 @@ -0,0 +1,9 @@
134 +AC_INIT(aix-miscutils,0.1.svnversion)
135 +AC_CONFIG_AUX_DIR([build-aux])
136 +AC_PROG_INSTALL
137 +AC_CONFIG_SRCDIR(ldd/ldd)
138 +AC_PREREQ(2.52)
139 +AC_CANONICAL_HOST
140 +AM_INIT_AUTOMAKE
141 +AC_CONFIG_FILES(./Makefile ldd/Makefile)
142 +AC_OUTPUT
143
144 Copied: trunk/aix-miscutils/ldd (from rev 1615, trunk/aix-miscutils/trunk/ldd)
145
146 --
147 gentoo-commits@l.g.o mailing list