1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201
|
########################################################################
#
# Platform for distribution
SYSTEM= @M_SYSTEM@
MACHINE= @M_MACHINE@
PLATFORM= $(SYSTEM)_$(MACHINE)
#
# Location for distribution
I_PREFIX= @PREFIX@
#
# Name of the binary arrchive
BINDIST= Ted_2.16_$(PLATFORM)
#
#
PKG_OWNER= @M_PKG_OWNER@
PKG_GROUP= @M_PKG_GROUP@
CHOWN_ARG= @M_CHOWN_ARG@
CHOWN_CMD= @CHOWN_CMD@
CHECK_ID_CMD= @CHECK_ID_CMD@
#
#
########################################################################
package: ../Ted/Ted.static \
TedBindist.tar \
$(BINDIST).lsm \
installTed.sh \
README
:
@CHECK_ID_CMD@
:
rm -rf scratch
:
mkdir scratch
mkdir scratch/bin
:
$(CHOWN_CMD) scratch
$(CHOWN_CMD) scratch/bin
:
chmod 755 scratch
chmod 755 scratch/bin
:
( cd scratch && umask 0 && tar xvf ../TedBindist.tar )
cp scratch/Ted/TedDocument-en_US.rtf TedDocument-en_US.rtf
:
cp ../Ted/Ted.static scratch/bin/Ted
strip scratch/bin/Ted
$(CHOWN_CMD) scratch/bin/Ted
chmod 755 scratch/bin/Ted
:
( cd scratch && tar cvf - @TAR_CHOWN_ARGS@ * | gzip -9 > ../$(BINDIST).tar.gz )
:
$(CHOWN_CMD) README
$(CHOWN_CMD) TedDocument-en_US.rtf
$(CHOWN_CMD) $(BINDIST).tar.gz
$(CHOWN_CMD) $(BINDIST).lsm
$(CHOWN_CMD) installTed.sh
:
test x_$$RPM_BUILD_ROOT != x_ || chmod 644 README
test x_$$RPM_BUILD_ROOT != x_ || chmod 644 TedDocument-en_US.rtf
test x_$$RPM_BUILD_ROOT != x_ || chmod 644 $(BINDIST).tar.gz
test x_$$RPM_BUILD_ROOT != x_ || chmod 644 $(BINDIST).lsm
test x_$$RPM_BUILD_ROOT != x_ || chmod 755 installTed.sh
:
@echo Checking existence of distribution files
test -s README
test -s TedDocument-en_US.rtf
test -s $(BINDIST).tar.gz
test -s $(BINDIST).lsm
test -x installTed.sh
:
rm -rf scratch
@date >> package
@echo Distribution is complete
########################################################################
#
# Package containing a dynamically linked executable
#
########################################################################
package.shared: ../Ted/Ted \
TedBindist.tar \
$(BINDIST).lsm \
installTed.sh \
README
:
@CHECK_ID_CMD@
:
rm -rf scratch
:
mkdir scratch
mkdir scratch/bin
:
$(CHOWN_CMD) scratch
$(CHOWN_CMD) scratch/bin
:
chmod 755 scratch
chmod 755 scratch/bin
:
( cd scratch && umask 0 && tar xvf ../TedBindist.tar )
cp scratch/Ted/TedDocument-en_US.rtf TedDocument-en_US.rtf
:
cp ../Ted/Ted scratch/bin/Ted
$(CHOWN_CMD) scratch/bin/Ted
chmod 755 scratch/bin/Ted
:
( cd scratch && tar cvf - @TAR_CHOWN_ARGS@ * | gzip -9 > ../$(BINDIST).tar.gz )
:
$(CHOWN_CMD) README
$(CHOWN_CMD) TedDocument-en_US.rtf
$(CHOWN_CMD) $(BINDIST).tar.gz
$(CHOWN_CMD) $(BINDIST).lsm
$(CHOWN_CMD) installTed.sh
:
test x_$$RPM_BUILD_ROOT != x_ || chmod 644 README
test x_$$RPM_BUILD_ROOT != x_ || chmod 644 TedDocument-en_US.rtf
test x_$$RPM_BUILD_ROOT != x_ || chmod 644 $(BINDIST).tar.gz
test x_$$RPM_BUILD_ROOT != x_ || chmod 644 $(BINDIST).lsm
test x_$$RPM_BUILD_ROOT != x_ || chmod 755 installTed.sh
:
@echo Checking existence of distribution files
test -s README
test -s TedDocument-en_US.rtf
test -s $(BINDIST).tar.gz
test -s $(BINDIST).lsm
test -x installTed.sh
:
rm -rf scratch
@date > package.shared
@echo Distribution is complete
########################################################################
#
# Systen V (Solaris) type pkgadd package.
#
########################################################################
sysvpkg: ../Ted/Ted.static \
TedBindist.tar \
Ted.pkginfo \
Ted.prototype \
pkg.sh \
README
./pkg.sh
########################################################################
#
# Various files used in the package
#
########################################################################
$(BINDIST).lsm: TedBindist.lsm.in
sed -e "s:@SYSTEM@:$(SYSTEM):g" \
-e "s:@MACHINE@:$(MACHINE):g" \
-e "s:@PLATFORM@:$(PLATFORM):g" \
-e "s:@BINDIST@:$(BINDIST):g" \
TedBindist.lsm.in > $@
installTed.sh: installTed.sh.in
sed -e "s:@SYSTEM@:$(SYSTEM):g" \
-e "s:@MACHINE@:$(MACHINE):g" \
-e "s:@PLATFORM@:$(PLATFORM):g" \
-e "s:@BINDIST@:$(BINDIST):g" \
-e "s:@I_PREFIX@:$(I_PREFIX):g" \
-e "s!@CHOWN_ARG@!$(CHOWN_ARG)!g" \
installTed.sh.in > $@
chmod 755 $@ || ( rm $@ && false )
README: README.in
sed -e "s:@SYSTEM@:$(SYSTEM):g" \
-e "s:@MACHINE@:$(MACHINE):g" \
-e "s:@PLATFORM@:$(PLATFORM):g" \
-e "s:@BINDIST@:$(BINDIST):g" \
README.in > $@
Ted.pkginfo: Ted.pkginfo.in
sed -e "s:@SYSTEM@:$(SYSTEM):g" \
-e "s:@MACHINE@:$(MACHINE):g" \
-e "s:@PLATFORM@:$(PLATFORM):g" \
-e "s:@I_PREFIX@:$(I_PREFIX):g" \
Ted.pkginfo.in > $@
pkg.sh: pkg.sh.in
sed -e "s:@SYSTEM@:$(SYSTEM):g" \
-e "s:@MACHINE@:$(MACHINE):g" \
-e "s:@PLATFORM@:$(PLATFORM):g" \
-e "s:@I_PREFIX@:$(I_PREFIX):g" \
pkg.sh.in > $@
chmod 755 $@ || ( rm $@ && false )
Ted.prototype: Ted.prototype.in
sed -e "s:@SYSTEM@:$(SYSTEM):g" \
-e "s:@MACHINE@:$(MACHINE):g" \
-e "s:@PLATFORM@:$(PLATFORM):g" \
-e "s:@I_PREFIX@:$(I_PREFIX):g" \
-e "s:@PKG_OWNER@:$(PKG_OWNER):g" \
-e "s:@PKG_GROUP@:$(PKG_GROUP):g" \
Ted.prototype.in > $@
|