[Btrwiz-commits] CVS: btrwiz/src BTRStrings.properties,NONE,1.1 INSTALL,NONE,1.1 Makefile,NONE,1.1 R
Brought to you by:
howama
From: Mark H. <ho...@us...> - 2002-09-03 15:36:16
|
Update of /cvsroot/btrwiz/btrwiz/src In directory usw-pr-cvs1:/tmp/cvs-serv27289/btrwiz/src Added Files: BTRStrings.properties INSTALL Makefile ReplacerProgress.java topleft.png Log Message: more work --- NEW FILE: BTRStrings.properties --- # # Strings for the BTR Replacement program # Started = BTR Replacer Thread Initialised RootDir = Base Directory for Scanning: # # Error Messages # RootDirNotExist = The root directory does not exist - NoIncFilt = You have selected to use include filters, yet have not defined any\ include filters NoFindText = You have not defined any text to search for FindInReplace = The find text is part of the replace text. This is currently \ unsupported. --- NEW FILE: INSTALL --- $Id: INSTALL,v 1.1 2002/09/03 15:36:11 howama Exp $ BTRWiz A very early developmental version. Gui mostly works apart from the treeview, a few issues with multi threading and all the list boxes (waiting for more work on java-gnome). To Install: * install java :) * install java-gnome - LATEST CODE FORM CVS ONLY. * javac *.java (hopefully it will all work) * java BtrWiz Pleas send me all bug reports, and if possible patches. The latest code is available from CVS at sourceforge. This package will be obsolete in a few days (or hours :)), so please do try to get code from CVS if possible. If you are interested in helping out, please do! All help is welcome - java programming, gui work, critiques, help documentation, anything! We particularly welcome students and other people with no experiance - working on open source projects is a great way to learn. Contact me via the btrwiz-devel mailing list btr...@li... http://www.sf.net/projects/btrwiz --- NEW FILE: Makefile --- # # Makefile created at Mon Sep 2 19:27:09 2002, by mmake # # Programs (with common options): SHELL = /bin/sh RM = rm -f MV = mv -f SED = sed ETAGS = etags XARGS = xargs CAT = cat FIND = find CPP = cpp -C -P INSTALL = install INSTALL_PROG = $(INSTALL) -m $(MODE_PROGS) INSTALL_FILE = $(INSTALL) -m $(MODE_FILES) INSTALL_DIR = $(INSTALL) -m $(MODE_DIRS) -d # Install modes MODE_PROGS = 555 MODE_FILES = 444 MODE_DIRS = 2755 # Build programs JAVA = java JAVAC = javac JAVADOC = javadoc JAR = jar # Build flags/home/mark/jgwiz/jgwizard/src/jgwizard.jar JAVAC_FLAGS = -classpath .:/home/mark/indexgen/indexgen/src/gnu-regexp-1.1.4.jar:/home/mark/java-gnome/lib/gtk-0.8.0.jar:/home/mark/jgwiz/jgwizard/src/jgwizard.jar JAVADOC_FLAGS = -version -author JAR_FLAGS = cvf0 JIKES_DEP_FLAG = +M # ------------------------------------------------------------------- # # Prefix for every install directory PREFIX = /usr/share/ # Where to start installing the class files. Set this to an empty value # if you dont want to install classes CLASS_DIR = $(PREFIX)../classes # The directory to install the jar file in. Set this to an empty value # if you dont want to install a jar file JAR_DIR = $(PREFIX)/usr/share/btrwiz # The directory to install html files generated by javadoc DOC_DIR = $(PREFIX)/usr/share/doc/btrwiz/apt # The directory to install script files in SCRIPT_DIR = $(PREFIX)bin # ------------------------------------------------------------------- # # The name of the jar file to install JAR_FILE = btrwiz.jar # # The VERSION variable below should be set to a value # that will be tested in the .xjava code. # VERSION = CHANGE_ME # ------------------------------------------------------------------- # # Packages we should compile PACKAGES = # Resource packages RESOURCES = # Directories with shell scripts SCRIPTS = # ------------------------------------------------------------------- # # A marker variable for the top level directory TOPLEVEL := . # Subdirectories with java files: JAVA_DIRS := $(subst .,/,$(PACKAGES)) $(TOPLEVEL) # Subdirectories with only resource files: RESOURCE_DIRS := $(subst .,/,$(RESOURCES)) # All the .xjava source files: XJAVA_SRC := $(foreach dir, $(JAVA_DIRS), $(wildcard $(dir)/*.xjava)) # All the xjava files to build XJAVA_OBJS := $(XJAVA_SRC:.xjava=.java) # All the .java source files: JAVA_SRC := $(foreach dir, $(JAVA_DIRS), $(wildcard $(dir)/*.java)) JAVA_SRC := $(XJAVA_OBJS) $(JAVA_SRC) # Dependency files: DEPEND_OBJS := $(JAVA_SRC:.java=.u) # Objects that should go into the jar file. (find syntax) JAR_OBJS := \( -name '*.class' -o -name '*.gif' -o -name "*.au" \ -o -name '*.properties' \) # The intermediate java files and main classes we should build: JAVA_OBJS := $(XJAVA_OBJS) $(JAVA_SRC:.java=.class) # Resource files: # Extend the list to install other files of your choice RESOURCE_SRC := *.properties *.gif *.au # Search for resource files in both JAVA_DIRS and RESOURCE_DIRS RESOURCE_OBJS := $(foreach dir, $(JAVA_DIRS) $(RESOURCE_DIRS), \ $(wildcard $(foreach file, $(RESOURCE_SRC), \ $(dir)/$(file)))) # All the shell scripts source SCRIPT_SRCS := $(foreach dir, $(SCRIPTS), $(wildcard $(dir)/*.sh)) # All shell scripts we should install SCRIPT_OBJS := $(SCRIPT_SRCS:.sh=) # All the files to install into CLASS_DIR INSTALL_OBJS := $(foreach dir, $(JAVA_DIRS), $(wildcard $(dir)/*.class)) # Escape inner class delimiter $ INSTALL_OBJS := $(subst $$,\$$,$(INSTALL_OBJS)) # Add the resource files to be installed as well INSTALL_OBJS := $(INSTALL_OBJS) $(RESOURCE_OBJS) # ------------------------------------------------------------------- # define check-exit || exit 1 endef # ----------- # Build Rules # ----------- test: all $(shell export LD_LIBRARY_PATH=/home/mark/java-gnome/lib/) \ $(JAVA) $(JAVAC_FLAGS) BtrWiz %.java: %.xjava $(CPP) -D$(VERSION) $< $@ %.class: %.java $(JAVAC) $(JAVAC_FLAGS) $< %.jar: $(JAVA_OBJS) $(RESOURCE_OBJS) $(FIND) $(TOPLEVEL) $(JAR_OBJS) -print | $(XARGS) \ $(JAR) $(JAR_FLAGS) $(JAR_FILE) %.u: %.java $(JAVAC) $(JIKES_DEP_FLAG) $< # ------- # Targets # ------- .PHONY: all jar install uninstall doc clean depend tags all:: $(JAVA_OBJS) help: @echo "Usage: make {all|jar|install|uninstall|doc|clean|depend|tags}" # Jar target ifneq ($(strip $(JAR_FILE)),) jar: $(JAR_FILE) ifneq ($(strip $(JAR_DIR)),) install:: $(JAR_FILE) @echo "===> [Installing jar file, $(JAR_FILE) in $(JAR_DIR)] " $(INSTALL_DIR) $(JAR_DIR) $(check-exit) $(INSTALL_FILE) $(JAR_FILE) $(JAR_DIR) $(check-exit) uninstall:: @echo "===> [Removing jar file, $(JAR_FILE) from $(JAR_DIR)] " $(RM) $(JAR_DIR)/$(JAR_FILE) $(check-exit) else install:: @echo "No jar install dir defined" endif clean:: $(RM) $(JAR_FILE) else jar: @echo "No jar file defined" endif # Install target for Classes and Resources ifneq ($(strip $(CLASS_DIR)),) install:: $(JAVA_OBJS) @echo "===> [Installing classes in $(CLASS_DIR)] " $(INSTALL_DIR) $(CLASS_DIR) $(check-exit) $(foreach dir, $(JAVA_DIRS) $(RESOURCE_DIRS), \ $(INSTALL_DIR) $(CLASS_DIR)/$(dir) $(check-exit)) $(foreach file, $(INSTALL_OBJS), \ $(INSTALL_FILE) $(file) $(CLASS_DIR)/$(file) \ $(check-exit)) uninstall:: @echo "===> [Removing class-files from $(CLASS_DIR)] " $(foreach file, $(INSTALL_OBJS), \ $(RM) $(CLASS_DIR)/$(file) \ $(check-exit)) else # Print a warning here if you like. (No class install dir defined) endif # Depend target ifeq ($(findstring jikes,$(JAVAC)),jikes) depend: $(XJAVA_OBJS) $(DEPEND_OBJS) ( $(CAT) $(DEPEND_OBJS) | $(SED) -e '/\.class$$/d' \ -e '/.*$$.*/d' > $(MAKEFILE_DEPEND); $(RM) $(DEPEND_OBJS); ) else depend: @echo "mmake needs the jikes compiler to build class dependencies" endif # Doc target ifneq ($(strip $(PACKAGES)),) doc: $(JAVA_SRC) @echo "===> [Installing java documentation in $(DOC_DIR)] " $(INSTALL_DIR) $(DOC_DIR) $(check-exit) $(JAVADOC) -d $(DOC_DIR) $(JAVADOC_FLAGS) $(PACKAGES) else doc: @echo "You must put your source files in a package to run make doc" endif # Script target ifneq ($(strip $(SCRIPT_OBJS)),) all:: $(SCRIPT_OBJS) ifneq ($(strip $(SCRIPT_DIR)),) install:: $(SCRIPT_OBJS) @echo "===> [Installing shell-scripts in $(SCRIPT_DIR)] " $(INSTALL_DIR) $(SCRIPT_DIR) $(check-exit) $(foreach file, $(SCRIPT_OBJS), \ $(INSTALL_PROG) $(file) $(SCRIPT_DIR) $(check-exit)) uninstall:: @echo "===> [Removing shell-scripts from $(SCRIPT_DIR)] " $(foreach file, $(SCRIPT_OBJS), \ $(RM) $(SCRIPT_DIR)/$(file) $(check-exit)) else # Print a warning here if you like. (No script install dir defined) endif clean:: rm -f $(SCRIPT_OBJS) endif # Tag target tags: @echo "Tagging" $(ETAGS) $(filter-out $(XJAVA_OBJS), $(JAVA_SRC)) $(XJAVA_SRC) # Various cleanup routines clean:: $(FIND) . \( -name '*~' -o -name '*.class' \) -print | \ $(XARGS) $(RM) $(FIND) . -name '*.u' -print | $(XARGS) $(RM) ifneq ($(strip $(XJAVA_SRC)),) clean:: $(RM) $(XJAVA_OBJS) endif # ---------------------------------------- # Include the dependency graph if it exist # ---------------------------------------- MAKEFILE_DEPEND = makefile.dep DEPEND = $(wildcard $(MAKEFILE_DEPEND)) ifneq ($(DEPEND),) include $(MAKEFILE_DEPEND) endif --- NEW FILE: ReplacerProgress.java --- /** * Programs which use the replacer class must be able to respond to progress * reports. This is done via this interface. */ interface ReplacerProgress{ void zeroProgress(); void startStageTwo(); void stageOneProgress(int found); void stageTwoProgress(int filesCompleted, String current); void success(); void failure(String msg); } --- NEW FILE: topleft.png --- (This appears to be a binary file; contents omitted.) |