~ubuntu-branches/ubuntu/karmic/grass/karmic

« back to all changes in this revision

Viewing changes to gui/scripts/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2009-07-13 13:34:03 UTC
  • mfrom: (3.1.15 karmic)
  • Revision ID: james.westby@ubuntu.com-20090713133403-0x81m7hb1q06zu13
Tags: 6.4.0~rc5-2
* Added a grass menu item (Hamish).
* Added a grass.menu.in template with related icon.
* Added a simple x-grass wrapper to allow running grass without a pre-running
  controlling terminal. At least it works within ordinary WMs launchers.
  (closes: #503371)
* Added newlocation.dpatch patch to manage correctly new locations.
  (closes: #533738)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
include $(MODULE_TOPDIR)/include/Make/Dir.make
4
4
 
5
 
default:
6
 
        if [ ! -d $(GISBASE)/etc/gui ] ; then $(MKDIR) $(GISBASE)/etc/gui ; fi
7
 
        if [ ! -d $(GISBASE)/etc/gui/scripts ] ; then $(MKDIR) $(GISBASE)/etc/gui/scripts ; fi
8
 
        for file in *.* ; do $(INSTALL) $$file $(GISBASE)/etc/gui/scripts/ ; done
 
5
ifdef MINGW
 
6
SCRIPT_ACTIONS += create.bat
 
7
endif
 
8
 
 
9
default: $(SCRIPT_ACTIONS)
 
10
        if [ ! -d $(ETC)/gui ] ; then $(MKDIR) $(ETC)/gui ; fi
 
11
        if [ ! -d $(ETC)/gui/scripts ] ; then $(MKDIR) $(ETC)/gui/scripts ; fi
 
12
        for file in d.* g.* r.* v.* ; do $(INSTALL) $$file $(ETC)/gui/scripts/ ; done
 
13
 
 
14
create.bat:
 
15
        if [ ! -d $(ETC)/gui ] ; then $(MKDIR) $(ETC)/gui ; fi
 
16
        if [ ! -d $(ETC)/gui/scripts ] ; then $(MKDIR) $(ETC)/gui/scripts ; fi
 
17
        for file in d.* g.*sh r.* v.*sh ; do \
 
18
        sed -e "s#SCRIPT_NAME#$$file#" $(MODULE_TOPDIR)/gui/scripts/windows_launch.bat \
 
19
                > $(ETC)/gui/scripts/$$file.bat ; done