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 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348
|
#! /usr/bin/make -f
# Generated automatically from debian/packages
# by yada v0.7, of Sat, 10 Jul 1999
.PHONY: default
default:
@echo "Specify a target:"; \
echo " build compile the package"; \
echo " binary make all binary packages"; \
echo " binary-arch make all architecture-dependent binary packages"; \
echo " binary-indep make all architecture-independent binary packages"; \
echo " clean clean up the source package"; \
echo; \
echo " depends check build-time dependencies"; \
echo " patch apply patches from debian/*.dpatch"; \
echo " unpatch unapply patches from debian/*.dpatch{,disabled}"; \
echo " install-tree compile the package and create the install trees"; \
echo " clean-install-tree clean up only under debian/"; \
echo
# Check build dependencies and conflicts
.PHONY: depends
depends: debian/depends-stamp
debian/depends-stamp:
@echo 'Checking build conflicts and dependencies; just a minute...'
@echo -n 'ispell...'; v=$$(dpkg -s 'ispell' | sed -n '/^[sS][tT][aA][tT][uU][sS]:.* config-files$$/q;s/^[vV][eE][rR][sS][iI][oO][nN]: *//p'); \
if test "$$v"; then \
exit 0; \
fi; \
echo 'Build depends on `ispell'\'' (any version), which is not satisfied' | fmt; exit 1
@echo -n 'debhelper...'; v=$$(dpkg -s 'debhelper' | sed -n '/^[sS][tT][aA][tT][uU][sS]:.* config-files$$/q;s/^[vV][eE][rR][sS][iI][oO][nN]: *//p'); \
if test "$$v"; then \
if dpkg --compare-versions "$$v" '>=' '2.0'; then \
exit 0; \
fi; \
fi; \
echo 'Build depends on `debhelper'\'' (version >= 2.0), which is not satisfied' | fmt; exit 1
@echo
@echo 'Conflicts and dependencies all satisfied!'
touch debian/depends-stamp
.PHONY: patch unpatch
# Apply patches matching `debian/*.dpatch' to the source tree,
# and unapply any applied patches `debian/*.dpatch.disabled'
patch: debian/patch-stamp
debian/patch-stamp:
@set -e; backupdirs=$$(ls -d debian/backup-* 2>/dev/null | wc -l); \
if test $$backupdirs -gt 1; then \
echo "*** Yada error: There are multiple debian/backup-* directories."; \
echo "*** I can't cope. Please clean up for me."; \
exit 1; \
fi; \
if test $$backupdirs = 1; then \
patchname="$$(echo debian/backup-* | sed 's=^debian/backup-==')"; \
echo "*** Cleaning up after interrupted patching run for $$patchname"; \
if test -f "debian/patch-$$patchname-applied"; then \
rm -rf "debian/backup-$$patchname"; \
else \
(cd "debian/backup-$$patchname"; find . -type f -print0) | xargs -0ri mv -f -- debian/backup-$$patchname/{} {}; \
find "debian/backup-$$patchname" -depth -type d -exec rmdir '{}' \;; \
if test -e "debian/backup-$$patchname"; then \
echo "*** Yada error: I could not recover cleanly from an interrupted patch."; \
echo "*** I can't cope. Please clean up for me."; \
exit 1; \
fi; \
fi; \
fi
@set -e; backdowndirs=$$(ls -d debian/backdown-* 2>/dev/null | wc -l); \
if test $$backdowndirs -gt 1; then \
echo "*** Yada error: There are multiple debian/backdown-* directories."; \
echo "*** I can't cope. Please clean up for me."; \
exit 1; \
fi; \
if test $$backdowndirs = 1; then \
patchname="$$(echo debian/backdown-* | sed 's=^debian/backdown-==')"; \
echo "*** Cleaning up after interrupted unpatching run for $$patchname"; \
if test ! -f "debian/patch-$$patchname-applied"; then \
rm -rf "debian/backdown-$$patchname"; \
else \
(cd "debian/backdown-$$patchname"; find . -type f -print0) | xargs -0ri mv -f -- debian/backdown-$$patchname/{} {}; \
find "debian/backdown-$$patchname" -depth -type d -exec rmdir '{}' \;; \
if test -e "debian/backdown-$$patchname"; then \
echo "*** Yada error: I could not recover cleanly from an interrupted patch."; \
echo "*** I can't cope. Please clean up for me."; \
exit 1; \
fi; \
fi; \
fi
@set -e; for stampfile in debian/patch-*-applied; do \
if test -f "$$stampfile"; then \
patchname="$$(echo "$$stampfile" | sed 's=^debian/patch-\(.*\)-applied$$=\1=')"; \
patchfile="debian/$$patchname.disabled"; \
if test -f "$$patchfile"; then \
echo "*** $$patchfile is now disabled; patching it out"; \
patchoptions="$$(sed -n '/^#PATCHOPTIONS:/{;s/^[^:]*://;p;q;}' <"$$patchfile")"; \
patch -R -f -i "$$patchfile" -b -V simple -B "debian/backdown-$$patchname/" $$patchoptions; \
rm -f "$$stampfile"; \
rm -rf "debian/backdown-$$patchname"; \
fi; \
fi; \
done
@set -e; for patchfile in debian/*.dpatch; do \
if test -f "$$patchfile"; then \
patchname="$$(echo "$$patchfile" | sed 's=^debian/==')"; \
stampfile="debian/patch-$$patchname-applied"; \
if test ! -f "$$stampfile"; then \
echo "*** Applying patch from $$patchname"; \
patchoptions="$$(sed -n '/^#PATCHOPTIONS:/{;s/^[^:]*://;p;q;}' <"$$patchfile")"; \
patch -N -f -i "$$patchfile" -b -V simple -B "debian/backup-$$patchname/" $$patchoptions; \
touch "$$stampfile"; \
rm -rf "debian/backup-$$patchname"; \
fi; \
fi; \
done
touch debian/patch-stamp
# Remove all managed patches from the source tree
unpatch:
@set -e; backupdirs=$$(ls -d debian/backup-* 2>/dev/null | wc -l); \
if test $$backupdirs -gt 1; then \
echo "*** Yada error: There are multiple debian/backup-* directories."; \
echo "*** I can't cope. Please clean up for me."; \
exit 1; \
fi; \
if test $$backupdirs = 1; then \
patchname="$$(echo debian/backup-* | sed 's=^debian/backup-==')"; \
echo "*** Cleaning up after interrupted patching run for $$patchname"; \
if test -f "debian/patch-$$patchname-applied"; then \
rm -rf "debian/backup-$$patchname"; \
else \
(cd "debian/backup-$$patchname"; find . -type f -print0) | xargs -0ri mv -f -- debian/backup-$$patchname/{} {}; \
find "debian/backup-$$patchname" -depth -type d -exec rmdir '{}' \;; \
if test -e "debian/backup-$$patchname"; then \
echo "*** Yada error: I could not recover cleanly from an interrupted patch."; \
echo "*** I can't cope. Please clean up for me."; \
exit 1; \
fi; \
fi; \
fi
@set -e; backdowndirs=$$(ls -d debian/backdown-* 2>/dev/null | wc -l); \
if test $$backdowndirs -gt 1; then \
echo "*** Yada error: There are multiple debian/backdown-* directories."; \
echo "*** I can't cope. Please clean up for me."; \
exit 1; \
fi; \
if test $$backdowndirs = 1; then \
patchname="$$(echo debian/backdown-* | sed 's=^debian/backdown-==')"; \
echo "*** Cleaning up after interrupted unpatching run for $$patchname"; \
if test ! -f "debian/patch-$$patchname-applied"; then \
rm -rf "debian/backdown-$$patchname"; \
else \
(cd "debian/backdown-$$patchname"; find . -type f -print0) | xargs -0ri mv -f -- debian/backdown-$$patchname/{} {}; \
find "debian/backdown-$$patchname" -depth -type d -exec rmdir '{}' \;; \
if test -e "debian/backdown-$$patchname"; then \
echo "*** Yada error: I could not recover cleanly from an interrupted patch."; \
echo "*** I can't cope. Please clean up for me."; \
exit 1; \
fi; \
fi; \
fi
@set -e; for stampfile in debian/patch-*-applied; do \
if test -f "$$stampfile"; then \
patchname="$$(echo "$$stampfile" | sed 's=^debian/patch-\(.*\)-applied$$=\1=')"; \
patchfile="debian/$$patchname"; \
if test ! -f "$$patchfile"; then \
patchfile="$$patchfile.disabled"; \
fi; \
if test -f "$$patchfile"; then \
echo "*** Removing patch from $$patchname"; \
patchoptions="$$(sed -n '/^#PATCHOPTIONS:/{;s/^[^:]*://;p;q;}' <"$$patchfile")"; \
patch -R -f -i "$$patchfile" -b -V simple -B "debian/backdown-$$patchname/" $$patchoptions; \
rm -f "$$stampfile"; \
rm -rf "debian/backdown-$$patchname"; \
else \
echo "*** Yada warning: Cannot find a patchfile named \`$$patchname' to unapply"; \
fi; \
fi; \
done
rm -f debian/patch-stamp
# Build the package and prepare the install tree
.PHONY: build-only build
build-only: debian/build-stamp
build: build-only
# Make sure these rules and the control file are up-to-date
.PHONY: rules control
rules: debian/rules
debian/rules: debian/yada debian/packages
chmod +x debian/yada
debian/yada rebuild rules
control: debian/control
debian/control: debian/yada debian/packages
chmod +x debian/yada
debian/yada rebuild control
debian/build-stamp: debian/depends-stamp debian/patch-stamp
@[ -f debian/yada -a -f debian/rules ]
@umask 022 && (\
echo -E 'eval "yada () { perl $$(pwd)/debian/yada \"\$$@\"; }"; set -e; set -v';\
echo -E 'mkdir tmp';\
echo -E 'cat $$(cat polish.desc | grep "Dictionary:" | cut -d'\'' '\'' -f2) | \';\
echo -E ' grep -v "^/" | sort | icombine polish.aff > tmp/polish.dict';\
echo -E 'buildhash tmp/polish.dict polish.aff tmp/polish.hash';\
echo -E 'cat tmp/polish.dict | ispell -d tmp/polish -e | tr '\''\040'\'' '\''\012'\'' | \';\
echo -E ' sort -u > tmp/polish.words') | /bin/sh
touch debian/build-stamp
.PHONY: install-tree
install-tree: install-tree-any
install-tree-any: \
debian/tmp-ipolish/DEBIAN/control \
debian/tmp-wpolish/DEBIAN/control
debian/tmp-ipolish/DEBIAN/control: debian/build-stamp debian/control
rm -rf debian/tmp-ipolish
umask 022 && install -d debian/tmp-ipolish/DEBIAN
chmod +x debian/yada
install -d debian/tmp-ipolish/usr/share/doc/ipolish
umask 022; debian/yada generate copyright \
>debian/tmp-ipolish/usr/share/doc/ipolish/copyright
install -m 644 -p debian/changelog \
debian/tmp-ipolish/usr/share/doc/ipolish/changelog.Debian
@umask 022 && export PACKAGE="ipolish" \
&& export ROOT="$$(pwd)/debian/tmp-ipolish" \
&& export CONTROL="$$(pwd)/debian/tmp-ipolish/DEBIAN" && (\
echo -E 'eval "yada () { perl $$(pwd)/debian/yada \"\$$@\"; }"; set -e; set -v';\
echo -E 'yada install -script -into /usr/sbin -as update-ipolish-hash update-ispell-hash';\
echo -E 'yada install -data -into /usr/lib/ispell polish.aff';\
echo -E 'yada install -dir /var/lib/ispell';\
echo -E 'dh_link -p$$PACKAGE -P$$ROOT /var/lib/ispell/polish.hash /usr/lib/ispell/polish.hash';\
echo -E 'yada install -data -into /usr/share/ispell polish.desc';\
echo -E 'for i in $$(cat polish.desc | grep "Dictionary:" | cut -d'\'' '\'' -f2); do';\
echo -E ' test -d $$ROOT/usr/share/ispell/polish/$$(dirname $$i) || \';\
echo -E ' yada install -dir /usr/share/ispell/polish/$$(dirname $$i)';\
echo -E ' cat $$i | gzip -9 > $$ROOT/usr/share/ispell/polish/$$i.gz';\
echo -E 'done';\
echo -E 'yada install -man -as update-ipolish-hash.1 update-ispell-hash.1';\
echo -E 'yada install -doc -subdir pl -as readme CZYTAJ.TO';\
echo -E 'yada install -doc -subdir pl -as readme.devel README.devel';\
echo -E 'dh_link -p$$PACKAGE -P$$ROOT /usr/share/doc/$$PACKAGE/pl/readme /usr/share/doc/$$PACKAGE/readme';\
echo -E 'dh_link -p$$PACKAGE -P$$ROOT /usr/share/doc/$$PACKAGE/pl/readme.devel /usr/share/doc/$$PACKAGE/readme.devel';\
echo -E 'dh_perl -p$$PACKAGE -P$$ROOT';\
echo -E 'dh_shlibdeps -p$$PACKAGE -P$$ROOT') | /bin/sh
debian/yada compress ipolish
find debian/tmp-ipolish -type f -print \
| sed -n 's/^debian\/tmp-ipolish\(\/etc\/.*\)$$/\1/p' \
> debian/tmp-ipolish/DEBIAN/conffiles
if test ! -s debian/tmp-ipolish/DEBIAN/conffiles; then rm -f debian/tmp-ipolish/DEBIAN/conffiles; fi
debian/yada generate maintscripts ipolish
umask 022 && dpkg-gencontrol -isp -pipolish -Pdebian/tmp-ipolish
debian/tmp-wpolish/DEBIAN/control: debian/build-stamp debian/control
rm -rf debian/tmp-wpolish
umask 022 && install -d debian/tmp-wpolish/DEBIAN
chmod +x debian/yada
install -d debian/tmp-wpolish/usr/share/doc/wpolish
umask 022; debian/yada generate copyright \
>debian/tmp-wpolish/usr/share/doc/wpolish/copyright
install -m 644 -p debian/changelog \
debian/tmp-wpolish/usr/share/doc/wpolish/changelog.Debian
@umask 022 && export PACKAGE="wpolish" \
&& export ROOT="$$(pwd)/debian/tmp-wpolish" \
&& export CONTROL="$$(pwd)/debian/tmp-wpolish/DEBIAN" && (\
echo -E 'eval "yada () { perl $$(pwd)/debian/yada \"\$$@\"; }"; set -e; set -v';\
echo -E 'yada install -data tmp/polish.words -into /usr/share/dict -as polish';\
echo -E 'yada install -man polish.5') | /bin/sh
debian/yada compress wpolish
find debian/tmp-wpolish -type f -print \
| sed -n 's/^debian\/tmp-wpolish\(\/etc\/.*\)$$/\1/p' \
> debian/tmp-wpolish/DEBIAN/conffiles
if test ! -s debian/tmp-wpolish/DEBIAN/conffiles; then rm -f debian/tmp-wpolish/DEBIAN/conffiles; fi
debian/yada generate maintscripts wpolish
umask 022 && dpkg-gencontrol -isp -pwpolish -Pdebian/tmp-wpolish
# Build package files
.PHONY: binary binary-arch binary-indep
binary: binary-arch binary-indep
binary-arch: binary-arch-any
.PHONY: binary-arch-any
binary-arch-any:
binary-indep: \
binary-package-ipolish \
binary-package-wpolish
.PHONY: binary-package-ipolish
binary-package-ipolish: check-root debian/tmp-ipolish/DEBIAN/control
@[ -f debian/yada -a -f debian/rules ]
chown -R 0.0 debian/tmp-ipolish
chmod -R u=rwX,go=rX debian/tmp-ipolish
@umask 022 && export PACKAGE="ipolish" \
&& export ROOT="$$(pwd)/debian/tmp-ipolish" \
&& export CONTROL="$$(pwd)/debian/tmp-ipolish/DEBIAN" && (\
echo -E 'eval "yada () { perl $$(pwd)/debian/yada \"\$$@\"; }"; set -e; set -v';\
echo -E 'dh_md5sums -p$$PACKAGE -P$$ROOT') | /bin/sh
@if [ -d debian/tmp-ipolish/usr/doc/ipolish ]; then \
echo "*** Yada warning: /usr/doc/ipolish should be /usr/share/doc/ipolish";\
fi
dpkg-deb --build debian/tmp-ipolish ..
.PHONY: binary-package-wpolish
binary-package-wpolish: check-root debian/tmp-wpolish/DEBIAN/control
@[ -f debian/yada -a -f debian/rules ]
chown -R 0.0 debian/tmp-wpolish
chmod -R u=rwX,go=rX debian/tmp-wpolish
@umask 022 && export PACKAGE="wpolish" \
&& export ROOT="$$(pwd)/debian/tmp-wpolish" \
&& export CONTROL="$$(pwd)/debian/tmp-wpolish/DEBIAN" && (\
echo -E 'eval "yada () { perl $$(pwd)/debian/yada \"\$$@\"; }"; set -e; set -v';\
echo -E 'dh_md5sums -p$$PACKAGE -P$$ROOT') | /bin/sh
@if [ -d debian/tmp-wpolish/usr/doc/wpolish ]; then \
echo "*** Yada warning: /usr/doc/wpolish should be /usr/share/doc/wpolish";\
fi
dpkg-deb --build debian/tmp-wpolish ..
.PHONY: check-root
check-root:
@[ `id -u` = 0 ] || (echo "You must be root to do this!"; false)
# Clean up afterwards
.PHONY: clean clean-install-tree clean-build
clean: clean-install-tree clean-build unpatch debian/control debian/rules
clean-build:
@[ -f debian/yada -a -f debian/rules ]
rm -f debian/build-stamp debian/depends-stamp
@umask 022 && (\
echo -E 'eval "yada () { perl $$(pwd)/debian/yada \"\$$@\"; }"; set -e; set -v';\
echo -E 'rm -rf tmp || true') | /bin/sh
clean-install-tree: debian/rules
@[ -f debian/yada -a -f debian/rules ]
rm -f debian/install-tree-stamp
rm -rf debian/tmp* debian/files* debian/substvars
|