IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 22, 2026, 11:56:11 AM (3 months ago)
Author:
eugene
Message:

install dsdbh.pm for working build, add example user-level commands

Location:
branches/eam_branches/ipp-pstamp-20260421/DataStoreServer/web/cgi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pstamp-20260421/DataStoreServer/web/cgi

    • Property svn:ignore set to
      Makefile
      Makefile.in
  • branches/eam_branches/ipp-pstamp-20260421/DataStoreServer/web/cgi/Makefile.am

    r42992 r42993  
     1
     2installdir = $(libdir)
     3
     4install_files = dsdbh.pm
     5
     6install_SCRIPTS = $(install_files)
     7
     8ACLOCAL_AMFLAGS = -I m4
     9
     10cgi_config = dsshellconfig
     11
    112cgi_scripts = \
    213  dsindex.cgi \
     
    516  dsfsindex \
    617  dsprodindex \
    7   dsrootindex \
    8   dsshellconfig
     18  dsrootindex
    919
    1020dsroot_files = index.txt.template index.txt
    1121
    12 EXTRA_DIST = $(cgi_scripts) $(dsroot_files)
     22EXTRA_DIST = $(cgi_scripts) $(cgi_config) $(dsroot_files)
    1323
    1424install-cgi:
     
    2939          $(INSTALL_DATA) $$f $(DESTDIR)$(dsroot)/$$f; \
    3040        done
    31         @echo ""
    32         @echo "datastore apache CGI code installation complete."
    33         @echo "Now please edit $(DESTDIR)$(cgidir)/dsshellconfig"
    34         @echo "and add the required settings."
    35         @echo ""
     41
     42        @if test ! -f "$(DESTDIR)$(cgidir)/dsshellconfig"; then \
     43          $(INSTALL_DATA) dsshellconfig "$(DESTDIR)$(cgidir)/dsshellconfig"; \
     44          echo ""; \
     45          echo "Installed new dsshellconfig file:"; \
     46          echo "  $(DESTDIR)$(cgidir)/dsshellconfig"; \
     47          echo "Please edit it and add the required settings."; \
     48          echo ""; \
     49        else \
     50          echo ""; \
     51          echo "Preserving existing file:"; \
     52          echo "  $(DESTDIR)$(DESTDIR)$(cgidir)/dsshellconfig"; \
     53          echo "Template not reinstalled, so local edits were kept."; \
     54          echo ""; \
     55        fi
    3656
    3757uninstall-cgi:
Note: See TracChangeset for help on using the changeset viewer.