| 1 | ######################### -*- Mode: Makefile-Gmake -*- ######################## |
| 2 | ## install_cmds.mk --- |
| 3 | ## Author : Manoj Srivastava ( [email protected] ) |
| 4 | ## Created On : Fri Jun 16 14:40:20 2006 |
| 5 | ## Created On Node : glaurung.internal.golden-gryphon.com |
| 6 | ## Last Modified By : Manoj Srivastava |
| 7 | ## Last Modified On : Wed Sep 6 11:43:05 2006 |
| 8 | ## Last Machine Used: glaurung.internal.golden-gryphon.com |
| 9 | ## Update Count : 9 |
| 10 | ## Status : Unknown, Use with caution! |
| 11 | ## HISTORY : |
| 12 | ## Description : |
| 13 | ## |
| 14 | ## arch-tag: a38b6a93-2539-4034-9060-ae94d5c8a071 |
| 15 | ## |
| 16 | ## This program is free software; you can redistribute it and/or modify |
| 17 | ## it under the terms of the GNU General Public License as published by |
| 18 | ## the Free Software Foundation; either version 2 of the License, or |
| 19 | ## (at your option) any later version. |
| 20 | ## |
| 21 | ## This program is distributed in the hope that it will be useful, |
| 22 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 23 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 24 | ## GNU General Public License for more details. |
| 25 | ## |
| 26 | ## You should have received a copy of the GNU General Public License |
| 27 | ## along with this program; if not, write to the Free Software |
| 28 | ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 29 | ## |
| 30 | ############################################################################### |
| 31 | |
| 32 | # install commands |
| 33 | install_file = install -p -o root -g root -m 644 |
| 34 | install_script = install -p -o root -g root -m 755 |
| 35 | install_program= install -p -o root -g root -m 755 |
| 36 | make_directory = install -p -d -o root -g root -m 755 |
| 37 | |
| 38 | define create_md5sum |
| 39 | create_md5sums_fn () { \ |
| 40 | cd $$1 ; \ |
| 41 | find . -type f \ |
| 42 | ! -regex './DEBIAN/.*' \ |
| 43 | ! -regex './etc/.*' $(EXTRA_MD5SUM_EXCLUDE) \ |
| 44 | -printf '%P\0' | LC_ALL=C sort -z \ |
| 45 | | xargs -r0 md5sum > DEBIAN/md5sums ; \ |
| 46 | if [ -z "DEBIAN/md5sums" ] ; then \ |
| 47 | rm -f "DEBIAN/md5sums" ; \ |
| 48 | fi ; \ |
| 49 | } ; \ |
| 50 | create_md5sums_fn |
| 51 | endef |
| 52 | |
| 53 | #Local variables: |
| 54 | #mode: makefile |
| 55 | #End: |