aboutsummaryrefslogtreecommitdiff
path: root/src/cal
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-03-08 18:42:07 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-03-08 18:42:07 -0400
commit37ba3a5f18112d2453f427388b66b1da6fdcb5e7 (patch)
treecee3809e8442ff5728e0df9bf97ca9f17fd2a4b2 /src/cal
parent2405f4c39d8b86eb6a08f056ab64e90917318e5c (diff)
downloadcalfuse-37ba3a5f18112d2453f427388b66b1da6fdcb5e7.tar.gz
General cleanup. Purge fixed paths.
Diffstat (limited to 'src/cal')
-rw-r--r--src/cal/get_tle/GetTLE.class.inbin2897 -> 0 bytes
-rw-r--r--src/cal/get_tle/GetTLE.java.in5
-rw-r--r--src/cal/get_tle/Makefile.am21
-rw-r--r--src/cal/get_tle/Makefile.in92
4 files changed, 70 insertions, 48 deletions
diff --git a/src/cal/get_tle/GetTLE.class.in b/src/cal/get_tle/GetTLE.class.in
deleted file mode 100644
index 6d32037..0000000
--- a/src/cal/get_tle/GetTLE.class.in
+++ /dev/null
Binary files differ
diff --git a/src/cal/get_tle/GetTLE.java.in b/src/cal/get_tle/GetTLE.java.in
index 68e88d3..1f814f0 100644
--- a/src/cal/get_tle/GetTLE.java.in
+++ b/src/cal/get_tle/GetTLE.java.in
@@ -28,8 +28,9 @@ public class GetTLE {
static final String username="mromelfanger";
static final String password="FuseJHU1";
- static final String outputFile = "/data1/fuse/calfuse/caltemp/five.tle";
- static final String logFile = "/data1/fuse/calfuse/caltemp/get_tle.logfile";
+ static final String curdir = System.getProperty("user.dir");
+ static final String outputFile = curdir + "/five.tle";
+ static final String logFile = curdir + "/get_tle.logfile";
/*
static final String outputFile = "/caltemp/five.tle";
static final String logFile = "/caltemp/get_tle.logfile";
diff --git a/src/cal/get_tle/Makefile.am b/src/cal/get_tle/Makefile.am
index a2a12ee..fb50fae 100644
--- a/src/cal/get_tle/Makefile.am
+++ b/src/cal/get_tle/Makefile.am
@@ -1,3 +1,7 @@
+DATADIR = $(pkgdatadir)-$(VERSION)
+javadir = $(DATADIR)/java
+JAVAROOT = $(builddir)
+
bin_SCRIPTS = \
add_tle.pl \
check_tle.pl \
@@ -8,12 +12,9 @@ bin_SCRIPTS = \
test_get_tle.pl \
update_tle.csh
-noinst_SCRIPTS = \
- GetTLE.class \
- GetTLE.java
+java_JAVA = GetTLE.java
EXTRA_DIST = \
- GetTLE.class.in \
GetTLE.java.in \
add_tle.pl.in \
check_tle.pl.in \
@@ -36,14 +37,10 @@ CLEANFILES = \
test_get_tle.pl \
update_tle.csh
-do_subst = sed -e 's,[@]DATADIR[@],$(pkgdatadir)-$(VERSION),g' \
+do_subst = sed -e 's,[@]DATADIR[@],$(DATADIR),g' \
-e 's,[@]PREFIX[@],$(prefix),g' \
-e 's,[@]VERSION[@],$(VERSION),g'
-GetTLE.class: GetTLE.class.in Makefile
- $(do_subst) < GetTLE.class.in > GetTLE.class
- chmod 644 GetTLE.class
-
GetTLE.java: GetTLE.java.in Makefile
$(do_subst) < GetTLE.java.in > GetTLE.java
chmod 644 GetTLE.java
@@ -80,7 +77,5 @@ update_tle.csh: update_tle.csh.in Makefile
$(do_subst) < update_tle.csh.in > update_tle.csh
chmod +x update_tle.csh
-install-data-local: GetTLE.class GetTLE.java
- mkdir -p $(DESTDIR)$(pkgdatadir)-$(VERSION)/java
- install -D -m 644 GetTLE.class $(DESTDIR)$(pkgdatadir)-$(VERSION)/java
- install -D -m 644 GetTLE.java $(DESTDIR)$(pkgdatadir)-$(VERSION)/java
+install-data-local:
+ $(INSTALL) -D -m 644 GetTLE.class $(DESTDIR)$(pkgdatadir)-$(VERSION)/java
diff --git a/src/cal/get_tle/Makefile.in b/src/cal/get_tle/Makefile.in
index 4b2a155..9e2aee8 100644
--- a/src/cal/get_tle/Makefile.in
+++ b/src/cal/get_tle/Makefile.in
@@ -128,8 +128,8 @@ am__uninstall_files_from_dir = { \
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
$(am__cd) "$$dir" && rm -f $$files; }; \
}
-am__installdirs = "$(DESTDIR)$(bindir)"
-SCRIPTS = $(bin_SCRIPTS) $(noinst_SCRIPTS)
+am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(javadir)"
+SCRIPTS = $(bin_SCRIPTS)
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
@@ -149,6 +149,9 @@ am__can_run_installinfo = \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
+JAVAC = javac
+CLASSPATH_ENV = CLASSPATH=$(JAVAROOT):$(srcdir)/$(JAVAROOT)$${CLASSPATH:+":$$CLASSPATH"}
+am__java_sources = $(java_JAVA)
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
am__DIST_COMMON = $(srcdir)/Makefile.in
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
@@ -276,6 +279,9 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
+DATADIR = $(pkgdatadir)-$(VERSION)
+javadir = $(DATADIR)/java
+JAVAROOT = $(builddir)
bin_SCRIPTS = \
add_tle.pl \
check_tle.pl \
@@ -286,12 +292,8 @@ bin_SCRIPTS = \
test_get_tle.pl \
update_tle.csh
-noinst_SCRIPTS = \
- GetTLE.class \
- GetTLE.java
-
+java_JAVA = GetTLE.java
EXTRA_DIST = \
- GetTLE.class.in \
GetTLE.java.in \
add_tle.pl.in \
check_tle.pl.in \
@@ -314,7 +316,7 @@ CLEANFILES = \
test_get_tle.pl \
update_tle.csh
-do_subst = sed -e 's,[@]DATADIR[@],$(pkgdatadir)-$(VERSION),g' \
+do_subst = sed -e 's,[@]DATADIR[@],$(DATADIR),g' \
-e 's,[@]PREFIX[@],$(prefix),g' \
-e 's,[@]VERSION[@],$(VERSION),g'
@@ -391,6 +393,35 @@ mostlyclean-libtool:
clean-libtool:
-rm -rf .libs _libs
+
+classjava.stamp: $(am__java_sources)
+ @list1='$?'; list2=; if test -n "$$list1"; then \
+ for p in $$list1; do \
+ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
+ list2="$$list2 $$d$$p"; \
+ done; \
+ echo '$(CLASSPATH_ENV) $(JAVAC) -d $(JAVAROOT) $(AM_JAVACFLAGS) $(JAVACFLAGS) '"$$list2"; \
+ $(CLASSPATH_ENV) $(JAVAC) -d $(JAVAROOT) $(AM_JAVACFLAGS) $(JAVACFLAGS) $$list2; \
+ else :; fi
+ echo timestamp > $@
+install-javaJAVA: classjava.stamp
+ @$(NORMAL_INSTALL)
+ @test -n "$(java_JAVA)" && test -n "$(javadir)" || exit 0; \
+ echo " $(MKDIR_P) '$(DESTDIR)$(javadir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(javadir)"; \
+ set x *.class; shift; test "$$1" != "*.class" || exit 0; \
+ echo " $(INSTALL_DATA)" "$$@" "'$(DESTDIR)$(javadir)/$$p'"; \
+ $(INSTALL_DATA) "$$@" "$(DESTDIR)$(javadir)"
+
+uninstall-javaJAVA:
+ @$(NORMAL_UNINSTALL)
+ @test -n "$(java_JAVA)" && test -n "$(javadir)" || exit 0; \
+ set x *.class; shift; test "$$1" != "*.class" || exit 0; \
+ echo " ( cd '$(DESTDIR)$(javadir)' && rm -f" "$$@" ")"; \
+ cd "$(DESTDIR)$(javadir)" && rm -f "$$@"
+
+clean-javaJAVA:
+ -rm -f *.class classjava.stamp
tags TAGS:
ctags CTAGS:
@@ -430,9 +461,9 @@ distdir: $(DISTFILES)
done
check-am: all-am
check: check-am
-all-am: Makefile $(SCRIPTS)
+all-am: Makefile $(SCRIPTS) classjava.stamp
installdirs:
- for dir in "$(DESTDIR)$(bindir)"; do \
+ for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(javadir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-am
@@ -468,7 +499,7 @@ maintainer-clean-generic:
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
-clean-am: clean-generic clean-libtool mostlyclean-am
+clean-am: clean-generic clean-javaJAVA clean-libtool mostlyclean-am
distclean: distclean-am
-rm -f Makefile
@@ -486,7 +517,7 @@ info: info-am
info-am:
-install-data-am: install-data-local
+install-data-am: install-data-local install-javaJAVA
install-dvi: install-dvi-am
@@ -530,30 +561,27 @@ ps: ps-am
ps-am:
-uninstall-am: uninstall-binSCRIPTS
+uninstall-am: uninstall-binSCRIPTS uninstall-javaJAVA
.MAKE: install-am install-strip
-.PHONY: all all-am check check-am clean clean-generic clean-libtool \
- cscopelist-am ctags-am distclean distclean-generic \
- distclean-libtool distdir dvi dvi-am html html-am info info-am \
- install install-am install-binSCRIPTS install-data \
- install-data-am install-data-local install-dvi install-dvi-am \
- install-exec install-exec-am install-html install-html-am \
- install-info install-info-am install-man install-pdf \
- install-pdf-am install-ps install-ps-am install-strip \
- installcheck installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-generic \
- mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \
- uninstall-am uninstall-binSCRIPTS
+.PHONY: all all-am check check-am clean clean-generic clean-javaJAVA \
+ clean-libtool cscopelist-am ctags-am distclean \
+ distclean-generic distclean-libtool distdir dvi dvi-am html \
+ html-am info info-am install install-am install-binSCRIPTS \
+ install-data install-data-am install-data-local install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-javaJAVA \
+ install-man install-pdf install-pdf-am install-ps \
+ install-ps-am install-strip installcheck installcheck-am \
+ installdirs maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
+ ps ps-am tags-am uninstall uninstall-am uninstall-binSCRIPTS \
+ uninstall-javaJAVA
.PRECIOUS: Makefile
-GetTLE.class: GetTLE.class.in Makefile
- $(do_subst) < GetTLE.class.in > GetTLE.class
- chmod 644 GetTLE.class
-
GetTLE.java: GetTLE.java.in Makefile
$(do_subst) < GetTLE.java.in > GetTLE.java
chmod 644 GetTLE.java
@@ -590,10 +618,8 @@ update_tle.csh: update_tle.csh.in Makefile
$(do_subst) < update_tle.csh.in > update_tle.csh
chmod +x update_tle.csh
-install-data-local: GetTLE.class GetTLE.java
- mkdir -p $(DESTDIR)$(pkgdatadir)-$(VERSION)/java
- install -D -m 644 GetTLE.class $(DESTDIR)$(pkgdatadir)-$(VERSION)/java
- install -D -m 644 GetTLE.java $(DESTDIR)$(pkgdatadir)-$(VERSION)/java
+install-data-local:
+ $(INSTALL) -D -m 644 GetTLE.class $(DESTDIR)$(pkgdatadir)-$(VERSION)/java
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.