[Pkg-erlang-commits] r1168 - erlang/trunk/debian
sgolovan at alioth.debian.org
sgolovan at alioth.debian.org
Wed Jan 13 12:11:44 UTC 2010
Author: sgolovan
Date: 2010-01-13 12:11:40 +0000 (Wed, 13 Jan 2010)
New Revision: 1168
Modified:
erlang/trunk/debian/rules
Log:
[erlang]
* Code cleanup.
Modified: erlang/trunk/debian/rules
===================================================================
--- erlang/trunk/debian/rules 2010-01-12 22:11:16 UTC (rev 1167)
+++ erlang/trunk/debian/rules 2010-01-13 12:11:40 UTC (rev 1168)
@@ -101,15 +101,15 @@
clean-patched: patch-stamp
dh_testdir
dh_testroot
-
+ #
[ ! -f Makefile ] || ${MAKE} clean
rm -f lib/dialyzer/SKIP
-
+ #
# Remove installed erlang from debian/
rm -rf debian/tmp
rm -rf debian/erlang-stnd
rm -rf debian/erlang-hipe
-
+ #
# Restore replaced configure, config.guess, and config.sub files
for i in `find ${ROOT_DIR} -name 'configure.backup'` ; do \
mv $$i $${i%%.backup} ; \
@@ -120,24 +120,24 @@
for i in `find ${ROOT_DIR} -name 'config.sub~'` ; do \
mv $$i $${i%%\~} ; \
done
-
+ #
# Remove files, which were generated from templates
for i in debian/*.in debian/scripts/*.in ; do \
rm -f $${i%%.in} ; \
done
-
+ #
# *.install were also generated on-the-fly
rm -f debian/*.install
-
+ #
rm -f debian/AUTHORS
-
+ #
# Don't remove patch-stamp
rm -f [^p]*-stamp
automake: automake-stamp
automake-stamp: patch-stamp
dh_testdir
-
+ #
# Return error if there are known nonfree docs in upstream tarball
# Return error if there are prebuilt binaries in upstream tarball
err=0 ; \
@@ -155,13 +155,13 @@
echo ; \
false ; \
fi
-
+ #
# Preserve configure scripts
for i in `find ${ROOT_DIR} -not \( -wholename '*/.pc' -prune \) \
-a -name 'configure'` ; do \
cp -f $$i $$i.backup ; \
done
-
+ #
# Replace config.guess and config.sub by installed in /usr/share/misc.
# Also add suffix -gnu to ibm-linux in config.guess to fix FTBFS
# on s390 architecture
@@ -174,7 +174,7 @@
-a -name 'config.sub'` ; do \
cp -fb /usr/share/misc/config.sub $$i ; \
done
-
+ #
# Regenerate configure scripts using autoconf
for i in `find ${ROOT_DIR} -not \( -wholename '*/.pc' -prune \) \
-a -name 'configure.in' -printf "%h\n"`; do \
@@ -186,12 +186,12 @@
configure-hipe: configure-hipe-stamp
configure-hipe-stamp: automake-stamp
dh_testdir
-
+ #
echo "BUILDING HIPE VERSION (BUILD_HIPE: $(BUILD_HIPE))"
-
+ #
[ ! -f Makefile ] || ${MAKE} clean
rm -f lib/dialyzer/SKIP
-
+ #
CFLAGS="$(CFLAGS)" \
./configure --host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
@@ -207,18 +207,18 @@
$(CLOCK_GETTIME_OPT) \
--enable-dynamic-ssl-lib \
--without-ssl-zlib
-
+ #
touch configure-hipe-stamp
configure-stnd: configure-stnd-stamp
configure-stnd-stamp: automake-stamp
dh_testdir
-
+ #
echo "BUILDING STANDARD VERSION (BUILD_HIPE: $(BUILD_HIPE))"
-
+ #
[ ! -f Makefile ] || ${MAKE} clean
rm -f lib/dialyzer/SKIP
-
+ #
CFLAGS="$(CFLAGS)" \
./configure --host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
@@ -234,17 +234,17 @@
$(CLOCK_GETTIME_OPT) \
--enable-dynamic-ssl-lib \
--without-ssl-zlib
-
+ #
touch configure-stnd-stamp
define do-install
echo "*** do-install called for $(INSTALL_DIR)."
-# Calls make install.
- ${MAKE} INSTALL_PREFIX=$(INSTALL_DIR) TYPE=$(TYPE) install
+ # Calls make install.
+ ${MAKE} INSTALL_PREFIX=$(INSTALL_DIR) TYPE=$(TYPE) install
-# Replace ROOTDIR in "erl" and "start" scripts for real rootdir
-# If there's no erl or start then it's better to fail than silently continue
+ # Replace ROOTDIR in "erl" and "start" scripts for real rootdir
+ # If there's no erl or start then it's better to fail than silently continue
for dir in $(INSTALL_DIR)/usr/lib/erlang/erts-$(VSN)/bin \
$(INSTALL_DIR)/usr/lib/erlang/bin; do \
for val in erl start; do \
@@ -252,15 +252,15 @@
done; \
done
-# Correct ERL_ROOT in RELEASES file
+ # Correct ERL_ROOT in RELEASES file
sed 's!%ERL_ROOT%!/usr/lib/erlang!' \
$(INSTALL_DIR)/usr/lib/erlang/releases/RELEASES.src \
>$(INSTALL_DIR)/usr/lib/erlang/releases/RELEASES
-# Get rid of windows cruft
+ # Get rid of windows cruft
-find $(INSTALL_DIR) -name *.bat -exec rm {} \;
-# Fix permissions
+ # Fix permissions
-cp $(INSTALL_DIR)/usr/lib/erlang/erts-$(VSN)/bin/start_erl.src \
$(INSTALL_DIR)/usr/lib/erlang/erts-$(VSN)/bin/start_erl
-chmod 755 $(INSTALL_DIR)/usr/lib/erlang/erts-$(VSN)/bin/start_erl
@@ -269,22 +269,22 @@
-chmod 644 $(INSTALL_DIR)/usr/lib/erlang/lib/wx-*/examples/*/*.beam
-chmod 644 $(INSTALL_DIR)/usr/lib/erlang/lib/wx-*/examples/*/*.xpm
-# Remove useless ssl and crypto object files
+ # Remove useless ssl and crypto object files
-rm -rf $(INSTALL_DIR)/usr/lib/erlang/lib/crypto-*/priv/obj
-rm -rf $(INSTALL_DIR)/usr/lib/erlang/lib/ssl-*/priv/obj
-# Remove some files which should be rather in erlang-doc-html package
+ # Remove some files which should be rather in erlang-doc-html package
-find $(INSTALL_DIR)/usr/lib/erlang/lib -name info -exec rm {} \;
-rm -rf $(INSTALL_DIR)/usr/lib/erlang/erts-$(VSN)/doc
-# Remove useless Install and manpage formatting scripts
+ # Remove useless Install and manpage formatting scripts
-rm -f $(INSTALL_DIR)/usr/lib/erlang/Install
-rm -rf $(INSTALL_DIR)/usr/lib/erlang/misc
-# Remove dialyzer_init_plt from sources directory
+ # Remove dialyzer_init_plt from sources directory
-rm -f $(INSTALL_DIR)/usr/lib/erlang/lib/dialyzer-*/src/dialyzer_init_plt
-# Fix run_test script in common_test application
+ # Fix run_test script in common_test application
(cd $(INSTALL_DIR)/usr/lib/erlang/lib/common_test-* && \
./install.sh $(INSTALL_DIR)/usr/lib/erlang/lib && \
sed -i -e 's:$(INSTALL_DIR)::g' priv/bin/run_test && \
@@ -539,6 +539,6 @@
.PHONY: patch unpatch clean-patched clean automake install build build-arch build-indep
.PHONY: binary binary-arch binary-indep get-orig-source
-.PHONY: configure-stnd build-stnd install-stnd
+.PHONY: configure-stnd build-stnd install-stnd manpages
.PHONY: configure-hipe build-hipe install-hipe
.PHONY: binary-erlang-base binary-erlang-base-hipe
More information about the Pkg-erlang-commits
mailing list