DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
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
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Tinderbox build tool.
#
# The Initial Developer of the Original Code is Netscape Communications
# Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#

# complete rewrite by Ken Estes for contact info see the
#     mozilla/webtools/tinderbox2/Contact file.
# Contributor(s): Stephen Lamm (slamm@yahoo-inc.com)

# Files are processed by the perl script ./config.out as they are copied
# from the source tree to the build tree.

# Files are installed without change from the build directory into the
# tree rooted at prefix.


# Makefile Variables
#------------------------------------------------------------

# the prefix where most of the binaries will be install
prefix=@prefix@

# the directory where the cgibin files must go
cgibin_prefix=@cgibin_prefix@

# the root of the html directory
html_prefix=@html_prefix@

# where files will be built before they are installed
builddir=@builddir@

config_script=@config_script@
confdir=localconf

# how to run xargs to print only one argument on a line
xargs_single=@xargs_single@

#------------------------------------------------------------

@CONFIGURE_ARGS@

# Makefile Targets
#------------------------------------------------------------

all: build
ALL: all

build: make_build_dirs build_files set_build_permissions 

install: build make_install_dirs install_files

clean:
	@echo
	@echo "----- Cleaning Build Directory-----"
	@echo
	rm -rf $(builddir)


# We do not accidently wish to edit to the 'binary' version of these
# files so ensure the build dir copies are not writable.

set_build_permissions: 
	@echo
	@echo "----- Setting Build directory permissions -----"
	find $(builddir) -type f | xargs chmod 444
	find $(builddir)/bin -type f | xargs chmod 555
	find $(builddir)/test/vcsim -type f | xargs chmod 555
	find $(builddir)/test -type f -name '*tst' | xargs chmod 555
	find $(builddir)/clientbin -type f | xargs chmod 555

compile_all_code: build
	@echo
	@echo "----- Testing if perl can compile all cgi and pm files -----"
	find $(builddir) -type f | \
	  egrep -i "\.cgi|\.pm" | \
	  xargs $(xargs_single) perl -T -w -c

compile_bin_code: build
	@echo
	@echo "----- Testing if perl can compile all cgi and pm files in the bin directory -----"
	find $(builddir)/bin -type f | \
	  egrep -i "\.cgi|\.pm" | \
	  xargs $(xargs_single) perl -T -w -c


cvskeyword_test: 
	find $(builddir) -type f | egrep -v "gif" | xargs egrep -L '\$$Date\: .*\$$' 
	find $(builddir) -type f | egrep -v "gif" | xargs egrep -L '\$$Revision\: .* \$$'
	find $(builddir) -type f | egrep -v "gif" | xargs egrep -L '\$$Author\: .* \$$' 


popup_test: compile_bin_code
	rm -rf $(html_prefix)/popup
	mkdir -p $(html_prefix)/popup
	perl $(builddir)/test/popup.tst

vcdisplay_test: compile_bin_code
	perl $(builddir)/test/vcdisplay.tst

gen_test: compile_bin_code
	rm -rf $(html_prefix)
	perl $(builddir)/test/genbuilds.tst
	perl $(builddir)/test/gennotices.tst
	perl $(builddir)/test/genbugs.tst
	perl -T -w $(builddir)/bin/tinder.cgi --daemon-mode

link_test:
	find $(builddir) -type f -print | \
	egrep -v -i "test|mage|clientbin" | \
	xargs egrep -i "<a +href"

check_all_use_statements:
	rm file
	echo '#!perl' >> file
	echo >> file
	find $(builddir) \
		| xargs egrep -h '^use ' | egrep ';$' \
		| sort -r -u \
	>> $(builddir)/bin/check_all_use_statements	
	echo >> file
	echo '1;' >> file

STAGE_FILE := \
    tb2StageFile() { \
	source=$$1; \
	target=$$2; \
	if [ -f $$target ]; then chmod +w $$target; fi; \
	perl $(config_script) < $$source > $$target; \
	chmod -w $$target; \
	echo "Staging $$source" 2>&1; \
    }; tb2StageFile 

INSTALL_FILE := \
    tb2InstallFile() { \
	source=$$1; \
	target=$$2; \
	if [ -f $$target ]; then chmod +w $$target; fi; \
	echo "Install $$source -> $$target" 2>&1; \
	cp -p $$source $$target; \
    }; tb2InstallFile

# Automated file list is generated after this line
#------------------------------------------------------------