Opened 14 years ago

Closed 11 years ago

Last modified 11 years ago

#1191 closed defect (fixed)

make install gives sed error in r43810

Reported by: cgsbob Owned by: grass-dev@…
Priority: normal Milestone: 6.4.3
Component: Installation Version: svn-develbranch6
Keywords: Makefile, g.html2man, sed Cc:
CPU: All Platform: All

Description

I was able to compiling r43810, but when I did a make install, I noticed this error:

sed -i -e 's#/tools/g.html2man/g.html2man/tools/g.html2man#'  /home/bob/apps/grass-6.5.svn/include/Make/Man.make
sed: -e expression #1, char 48: unterminated `s' command
make[1]: [real-install] Error 1 (ignored)

It appears that the install process did not abort

Change History (14)

comment:1 by hamish, 14 years ago

Keywords: Makefile added

the original line is here:

https://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/Makefile#L296

-sed -i -e 's#/tools/g.html2man/g.html2man$#/tools/g.html2man#'  ${INST_DIR}/include/Make/Man.make

Hamish

ps- with r43791 are make: htmldocs-single, htmldocs, packagehtmldocs, pdfdocs, cleandocs, html2pdfdoc, html2pdfdoccomplete, changelog now dead for 6.5svn?

in reply to:  1 ; comment:2 by glynn, 14 years ago

CPU: x86-64All
Platform: LinuxAll

Replying to hamish:

-sed -i -e 's#/tools/g.html2man/g.html2man$#...

I'm fairly sure that "$#" should just be "#".

in reply to:  2 ; comment:3 by hamish, 14 years ago

Replying to glynn:

I'm fairly sure that "$#" should just be "#".

Makefile quoting/expansion rules different from Bourne shell ones?

EOL$ now removed in 6.5svn r43811

Hamish

in reply to:  3 ; comment:4 by glynn, 14 years ago

Replying to hamish:

I'm fairly sure that "$#" should just be "#".

My mistake; you meant a literal $ as the EOL marker in a regexp, right? In which case, use "$$":

-sed -i -e 's#/tools/g.html2man/g.html2man$$#...

Makefile quoting/expansion rules different from Bourne shell ones?

Yes. make doesn't have any quoting rules. Anything involving a $ will be expanded somehow, wherever it occurs. Normal variables (and function calls) use $(...) or ${...}. A "$" followed by any of @%<?^+|* is an automatic variable, set based upon a rule's target and/or prerequisites. "$$" evaluates to a literal "$". A "$" followed by anything else evaluates to the empty string.

After such substitutions, each command is passed directly to the shell, including any quotes, so the quotes should be whatever the shell itself requires. Quotes in a command have no effect upon the substitutions performed by make.

in reply to:  4 comment:5 by hamish, 14 years ago

Replying to glynn:

you meant a literal $ as the EOL marker in a regexp, right?

yes. Just a small attempt to make the search string more exact, but as that's the only occurrence of g.html2man in the include/Man.make file it wasn't strictly required.

In which case, use "$$":

thanks for the info. I've never been very strong on Makefile syntax and have never found a good resource explaining it.

AFAIU none of the wingrass/mac/debian/... packaging scripts actually run 'make install', so after verifying that these changes do in fact help to make g.extension functional on installed copies of GRASS we still need to port these sed replacements around to the other branches and packaging scripts.

Also, to make GRASS_ADDON_PATH work with the 'make install' dir structure for local users, in (experimental) 6.5svn g.extension I've symlinked the binary back into ~/.grass6/addons/ from ~/.grass6/addons/{bin|scripts}/ using 'ln -s'. I take it on wingrass this will still work, but by making a full copy of the file?

Hamish

comment:6 by hamish, 14 years ago

Resolution: fixed
Status: newclosed

in reply to:  6 ; comment:7 by hellik, 14 years ago

Resolution: fixed
Status: closedreopened

Replying to hamish:

maybe related?

tested with r43842 in the osgeo4w-build-environment.

compilation ok, but installing isn't

----------------------------------------------------------------------
GRASS GIS compilation log
-------------------------
Started compilation: Sun Oct 10 06:57:40 GMT 2010
--
Errors in:
No errors detected.
--
Finished compilation: Sun Oct 10 08:35:57 GMT 2010
Sun Oct 10 08:35:57 GMT 2010: STARTING make install
include/Make/Doxygen.make:13: warning: overriding commands for target `htmldocs -single'
include/Make/Docs.make:11: warning: ignoring old commands for target `htmldocs- single'
include/Make/Doxygen.make:19: warning: overriding commands for target `htmldocs '
include/Make/Docs.make:38: warning: ignoring old commands for target `htmldocs'
include/Make/Doxygen.make:39: warning: overriding commands for target `pdfdocs'
include/Make/Docs.make:49: warning: ignoring old commands for target `pdfdocs'
include/Make/Doxygen.make:51: warning: overriding commands for target `cleandoc s'
include/Make/Docs.make:55: warning: ignoring old commands for target `cleandocs '
echo /c/osgeo4w/usr/src/grass6_devel/bin.i686-pc-mingw32/grass65
/c/osgeo4w/usr/src/grass6_devel/bin.i686-pc-mingw32/grass65
make[1]: Entering directory `/c/osgeo4w/usr/src/grass6_devel'
include/Make/Doxygen.make:13: warning: overriding commands for target `htmldocs -single'
include/Make/Docs.make:11: warning: ignoring old commands for target `htmldocs- single'
include/Make/Doxygen.make:19: warning: overriding commands for target `htmldocs '
include/Make/Docs.make:38: warning: ignoring old commands for target `htmldocs'
include/Make/Doxygen.make:39: warning: overriding commands for target `pdfdocs'
include/Make/Docs.make:49: warning: ignoring old commands for target `pdfdocs'
include/Make/Doxygen.make:51: warning: overriding commands for target `cleandoc s'
include/Make/Docs.make:55: warning: ignoring old commands for target `cleandocs '
test -d /c/OSGeo4W/apps/grass/grass-6.5.svn || mkdir -p -m 755 /c/OSGeo4W/apps/ grass/grass-6.5.svn
test -d /c/OSGeo4W/bin/bin || mkdir -p -m 755 /c/OSGeo4W/bin/bin
sed -e "s#^GISBASE.*#GISBASE=/c/OSGeo4W/apps/grass/grass-6.5.svn#" /c/osgeo4w/u sr/src/grass6_devel/bin.i686-pc-mingw32/grass65 > /c/OSGeo4W/bin/bin/grass65
chmod a+x /c/OSGeo4W/bin/bin/grass65
sed -e "s#WINGISBASE=.*#WINGISBASE=/c/OSGeo4W/apps/grass/grass-6.5.svn#" /c/osg eo4w/usr/src/grass6_devel/bin.i686-pc-mingw32/grass65.bat > /c/OSGeo4W/bin/bin/ grass65.bat
chmod a+x /c/OSGeo4W/bin/bin/grass65.bat
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - AUTHORS COP YING CHANGES REQUIREMENTS.html GPL.TXT contributors.csv translators.csv | (cd / c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - bin | (cd / c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - bwidget | ( cd /c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - docs | (cd  /c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - driver | (c d /c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - etc | (cd / c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - fonts | (cd  /c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - man | (cd / c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
tar: man: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - scripts | ( cd /c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - tools | (cd  /c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
if [ 1 -eq 1 ] ; then cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ;  tar cBf - locale | (cd /c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/de v/null ; fi
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - include | ( cd /c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
sed -i -e "s#^\(GRASS_HOME.[^=]*\).*#\1= /c/OSGeo4W/apps/grass/grass-6.5.svn#"  -e "s#^\(RUN_GISBASE.[^=]*\).*#\1= /c/OSGeo4W/apps/grass/grass-6.5.svn#" /c/OSG eo4W/apps/grass/grass-6.5.svn/include/Make/Platform.make
sed: invalid option -- i
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

  -n, --quiet, --silent
                 suppress automatic printing of pattern space
  -e script, --expression=script
                 add the script to the commands to be executed
  -f script-file, --file=script-file
                 add the contents of script-file to the commands to be executed
  -c  --nocr     turn off \r$ translation; must be first switch on command line
      --help     display this help and exit
  -V, --version  output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret.  All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

E-mail bug reports to: bug-gnu-utils@gnu.org .
Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.
make[1]: [real-install] Error 4 (ignored)
sed -i -e 's#/tools/g.html2man/g.html2man#/tools/g.html2man#' /c/OSGeo4W/apps/g rass/grass-6.5.svn/include/Make/Man.make
sed: invalid option -- i
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

  -n, --quiet, --silent
                 suppress automatic printing of pattern space
  -e script, --expression=script
                 add the script to the commands to be executed
  -f script-file, --file=script-file
                 add the contents of script-file to the commands to be executed
  -c  --nocr     turn off \r$ translation; must be first switch on command line
      --help     display this help and exit
  -V, --version  output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret.  All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

E-mail bug reports to: bug-gnu-utils@gnu.org .
Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.
make[1]: [real-install] Error 4 (ignored)
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - lib | (cd / c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
sed 's#'/c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32'#'/c/OSGeo4W/apps/ grass/grass-6.5.svn'#g' /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/et c/monitorcap > /c/OSGeo4W/apps/grass/grass-6.5.svn/etc/monitorcap
sed 's#'/c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32'#'/c/OSGeo4W/apps/ grass/grass-6.5.svn'#g' /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/et c/fontcap > /c/OSGeo4W/apps/grass/grass-6.5.svn/etc/fontcap
chmod -R a+rX /c/OSGeo4W/apps/grass/grass-6.5.svn 2>/dev/null
tar cBf - gem/skeleton | (cd /c/OSGeo4W/apps/grass/grass-6.5.svn/etc ; tar xBf  - ) 2>/dev/null
tar: gem/skeleton/.svn/text-base: file changed as we read it
tar: gem/skeleton/.svn/tmp: file changed as we read it
tar: gem/skeleton/.svn: file changed as we read it
tar: gem/skeleton: file changed as we read it
/bin/install -c  gem/gem65 /c/OSGeo4W/bin/bin 2>/dev/null
make[1]: [real-install] Error 1 (ignored)
make[1]: Leaving directory `/c/osgeo4w/usr/src/grass6_devel'
Sun Oct 10 08:37:41 GMT 2010: STARTING cleanup
sed: can't read /c/OSGeo4W/apps/grass/bin/grass65: No such file or directory

there seems to be all files in C:\OSGeo4W\apps\grass\grass-6.5.svn, but in C:\OSGeo4W\apps\grass\bin there is only grass65.tmpl

Helmut

in reply to:  7 ; comment:8 by hamish, 14 years ago

Replying to hellik:

maybe related?

tested with r43842 in the osgeo4w-build-environment.

compilation ok, but installing isn't

yes, it's related. 'sed -i' isn't present in MSys. Pity, as it's really very handy. FWIW it isn't strictly part of the standard but MacOSX does have it. MSys is using's GNU's version of it, I guess they removed it because Windows is much more picky about what you can do with an open file. ?

hopefully fixed in r43854.

Hamish

in reply to:  8 comment:9 by hellik, 14 years ago

Replying to hamish:

Replying to hellik:

maybe related?

tested with r43842 in the osgeo4w-build-environment.

compilation ok, but installing isn't

yes, it's related. 'sed -i' isn't present in MSys. Pity, as it's really very handy. FWIW it isn't strictly part of the standard but MacOSX does have it. MSys is using's GNU's version of it, I guess they removed it because Windows is much more picky about what you can do with an open file. ?

hopefully fixed in r43854.

not really

GRASS GIS compilation log
-------------------------
Started compilation: Mon Oct 11 15:36:04 GMT 2010
--
Errors in:
No errors detected.
--
Finished compilation: Mon Oct 11 17:11:23 GMT 2010
Mon Oct 11 17:11:23 GMT 2010: STARTING make install
include/Make/Doxygen.make:13: warning: overriding commands for target `htmldocs                                         -single'
include/Make/Docs.make:11: warning: ignoring old commands for target `htmldocs-                                         single'
include/Make/Doxygen.make:19: warning: overriding commands for target `htmldocs                                         '
include/Make/Docs.make:38: warning: ignoring old commands for target `htmldocs'
include/Make/Doxygen.make:39: warning: overriding commands for target `pdfdocs'
include/Make/Docs.make:49: warning: ignoring old commands for target `pdfdocs'
include/Make/Doxygen.make:51: warning: overriding commands for target `cleandoc                                         s'
include/Make/Docs.make:55: warning: ignoring old commands for target `cleandocs                                         '
echo /c/osgeo4w/usr/src/grass6_devel/bin.i686-pc-mingw32/grass65
/c/osgeo4w/usr/src/grass6_devel/bin.i686-pc-mingw32/grass65
include/Make/Doxygen.make:13: warning: overriding commands for target `htmldocs                                         -single'
include/Make/Docs.make:11: warning: ignoring old commands for target `htmldocs-                                         single'make[1]: Entering directory `/c/osgeo4w/usr/src/grass6_devel'

include/Make/Doxygen.make:19: warning: overriding commands for target `htmldocs                                         '
include/Make/Docs.make:38: warning: ignoring old commands for target `htmldocs'
include/Make/Doxygen.make:39: warning: overriding commands for target `pdfdocs'
include/Make/Docs.make:49: warning: ignoring old commands for target `pdfdocs'
include/Make/Doxygen.make:51: warning: overriding commands for target `cleandoc                                         s'
include/Make/Docs.make:55: warning: ignoring old commands for target `cleandocs                                         '
test -d /c/OSGeo4W/apps/grass/grass-6.5.svn || mkdir -p -m 755 /c/OSGeo4W/apps/                                         grass/grass-6.5.svn
test -d /c/OSGeo4W/bin/bin || mkdir -p -m 755 /c/OSGeo4W/bin/bin
sed -e "s#^GISBASE.*#GISBASE=/c/OSGeo4W/apps/grass/grass-6.5.svn#" /c/osgeo4w/u                                         sr/src/grass6_devel/bin.i686-pc-mingw32/grass65 > /c/OSGeo4W/bin/bin/grass65
chmod a+x /c/OSGeo4W/bin/bin/grass65
sed -e "s#WINGISBASE=.*#WINGISBASE=/c/OSGeo4W/apps/grass/grass-6.5.svn#" /c/osg                                         eo4w/usr/src/grass6_devel/bin.i686-pc-mingw32/grass65.bat > /c/OSGeo4W/bin/bin/                                         grass65.bat
chmod a+x /c/OSGeo4W/bin/bin/grass65.bat
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - AUTHORS COP                                         YING CHANGES REQUIREMENTS.html GPL.TXT contributors.csv translators.csv | (cd /                                         c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - bin | (cd /                                         c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - bwidget | (                                         cd /c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - docs | (cd                                          /c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - driver | (c                                         d /c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - etc | (cd /                                         c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - fonts | (cd                                          /c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - man | (cd /                                         c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
tar: man: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - scripts | (                                         cd /c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - tools | (cd                                          /c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
if [ 1 -eq 1 ] ; then cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ;                                          tar cBf - locale | (cd /c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/de                                         v/null ; fi
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - include | (                                         cd /c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
sed -e "s#^\(GRASS_HOME.[^=]*\).*#\1= /c/OSGeo4W/apps/grass/grass-6.5.svn#" -e                                          "s#^\(RUN_GISBASE.[^=]*\).*#\1= /c/OSGeo4W/apps/grass/grass-6.5.svn#" /c/osgeo4                                         w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/Make/Platform.make > /c/OSG                                         eo4W/apps/grass/grass-6.5.svn/include/Make/Platform.make
sed -e 's#/tools/g.html2man/g.html2man#/tools/g.html2man#' /c/osgeo4w/usr/src/g                                         rass6_devel/dist.i686-pc-mingw32/include/Make/Man.make > /c/OSGeo4W/apps/grass/                                         grass-6.5.svn/include/Make/Man.make
cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - lib | (cd /                                         c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
sed 's#'/c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32'#'/c/OSGeo4W/apps/                                         grass/grass-6.5.svn'#g' /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/et                                         c/monitorcap > /c/OSGeo4W/apps/grass/grass-6.5.svn/etc/monitorcap
sed 's#'/c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32'#'/c/OSGeo4W/apps/                                         grass/grass-6.5.svn'#g' /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/et                                         c/fontcap > /c/OSGeo4W/apps/grass/grass-6.5.svn/etc/fontcap
chmod -R a+rX /c/OSGeo4W/apps/grass/grass-6.5.svn 2>/dev/null
tar cBf - gem/skeleton | (cd /c/OSGeo4W/apps/grass/grass-6.5.svn/etc ; tar xBf                                          - ) 2>/dev/null
tar: gem/skeleton/.svn/text-base: file changed as we read it
tar: gem/skeleton/.svn/tmp: file changed as we read it
tar: gem/skeleton/.svn: file changed as we read it
tar: gem/skeleton: file changed as we read it
/bin/install -c  gem/gem65 /c/OSGeo4W/bin/bin 2>/dev/null
make[1]: [real-install] Error 1 (ignored)
make[1]: Leaving directory `/c/osgeo4w/usr/src/grass6_devel'
Mon Oct 11 17:12:54 GMT 2010: STARTING cleanup
sed: can't read /c/OSGeo4W/apps/grass/bin/grass65: No such file or directory

in C:\OSGeo4W\usr\src\grass6_devel\bin.i686-pc-mingw32 there are shell-script and bat-file, but in C:\OSGeo4W\apps\grass\bin there is again only grass65.tmpl

best regards Helmut

comment:10 by hamish, 14 years ago

It did fix the 'sed -i' error, the errors you are seeing are unrelated.

this seems to be the first error seen:

cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - man | \
  (cd /c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
tar: man: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors

are no man pages on WinGrass a known feature or a bug?

...
test -d /c/OSGeo4W/apps/grass/grass-6.5.svn || \
   mkdir -p -m 755 /c/OSGeo4W/apps/grass/grass-6.5.svn

test -d /c/OSGeo4W/bin/bin || mkdir -p -m 755 /c/OSGeo4W/bin/bin

sed -e "s#^GISBASE.*#GISBASE=/c/OSGeo4W/apps/grass/grass-6.5.svn#" \
   /c/osgeo4w/usr/src/grass6_devel/bin.i686-pc-mingw32/grass65 \
   > /c/OSGeo4W/bin/bin/grass65

chmod a+x /c/OSGeo4W/bin/bin/grass65

sed -e "s#WINGISBASE=.*#WINGISBASE=/c/OSGeo4W/apps/grass/grass-6.5.svn#" \
   /c/osgeo4w/usr/src/grass6_devel/bin.i686-pc-mingw32/grass65.bat \
   > /c/OSGeo4W/bin/bin/grass65.bat

chmod a+x /c/OSGeo4W/bin/bin/grass65.bat
...

is /c/OSGeo4W/bin/bin/ correct ?

Hamish

in reply to:  10 comment:11 by hellik, 14 years ago

Replying to hamish:

It did fix the 'sed -i' error, the errors you are seeing are unrelated.

this seems to be the first error seen:

cd /c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32 ; tar cBf - man | \
  (cd /c/OSGeo4W/apps/grass/grass-6.5.svn ; tar xBf - ) 2>/dev/null
tar: man: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors

are no man pages on WinGrass a known feature or a bug?

I can remember darkly a discussion about this in the ML, it's about a year or longer ago.

is /c/OSGeo4W/bin/bin/ correct ?

it should be C:\OSGeo4W\apps\grass\bin.

Helmut

comment:12 by hamish, 12 years ago

Keywords: g.html2man sed added

are no man pages on WinGrass a known feature or a bug?

...

is /c/OSGeo4W/bin/bin/ correct ?

missing man pages are a separate issue than this bug, and should probably be moved to a new ticket.

the sed error is fixed anyway.

Hamish

in reply to:  12 ; comment:13 by neteler, 11 years ago

Milestone: 6.5.06.4.3
Resolution: fixed
Status: reopenedclosed

Replying to hamish: ...

missing man pages are a separate issue than this bug, and should probably be moved to a new ticket.

the sed error is fixed anyway.

Closing.

in reply to:  13 comment:14 by hamish, 11 years ago

Replying to hamish:

missing man pages are a separate issue than this bug, and should probably be moved to a new ticket.

before this is forgotten, did that ever happen? or are man pages not wanted/relevant on Windows?

Hamish

Note: See TracTickets for help on using tickets.