Jelajahi Sumber

fix for color rules files with underscores in their names (https://trac.osgeo.org/grass/ticket/1566)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50682 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 13 tahun lalu
induk
melakukan
56ed35505d
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      raster/r.colors/Makefile

+ 2 - 2
raster/r.colors/Makefile

@@ -15,13 +15,13 @@ default: multi
 # Insert thumbnail previews
 # Insert thumbnail previews
 r.colors.tmp.html: $(BIN)/r.colors$(EXE) thumbnails.py
 r.colors.tmp.html: $(BIN)/r.colors$(EXE) thumbnails.py
 	$(call htmldesc,$<,$@)
 	$(call htmldesc,$<,$@)
-	sed 's!^<DD><b>\([a-z0-9.]*\)</b>:!<DD><img width="80" height="12" src="Colortable_\1.png"> <b>\1</b>:!' "$@" > "$@.tmp"
+	sed 's!^<DD><b>\([a-z0-9._]*\)</b>:!<DD><img width="80" height="12" src="Colortable_\1.png"> <b>\1</b>:!' "$@" > "$@.tmp"
 	mv -f "$@.tmp" "$@"
 	mv -f "$@.tmp" "$@"
 	$(MAKE) thumbnails
 	$(MAKE) thumbnails
 
 
 r3.colors.tmp.html: $(BIN)/r3.colors$(EXE) thumbnails.py
 r3.colors.tmp.html: $(BIN)/r3.colors$(EXE) thumbnails.py
 	$(call htmldesc,$<,$@)
 	$(call htmldesc,$<,$@)
-	sed 's!^<DD><b>\([a-z0-9.]*\)</b>:!<DD><img width="80" height="12" src="Colortable_\1.png"> <b>\1</b>:!' "$@" > "$@.tmp"
+	sed 's!^<DD><b>\([a-z0-9._]*\)</b>:!<DD><img width="80" height="12" src="Colortable_\1.png"> <b>\1</b>:!' "$@" > "$@.tmp"
 	mv -f "$@.tmp" "$@"
 	mv -f "$@.tmp" "$@"
 	$(MAKE) thumbnails
 	$(MAKE) thumbnails