Bug #2842

Bug #1278: Filenames with spaces

Filenames with ( or '

Added by foobar about 8 years ago. Updated almost 8 years ago.

Status:NewStart date:2011-07-07
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

The makefile (I suspect the dep check) fails on files with a ( or a ' in the name. However filenames with two ' in it work without problems.

Filenames to try:
  • sourcefiles/Andre's fotoalbum deel 6 @ Fotopic.Net.url
  • sourcefiles/_changes(obsolete).txt

Below is the output in terminal of both cases. Ignore the warnings about the modification time in the future; I have that all the time and that doesn't give problems.

Errors given on files with '

[foobar@grf-dev dutchtramset]$ make remake
/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
make[1]: Entering directory `/media/sf_grf-dev/dutchtramset'
[CLEANING]
make[1]: Leaving directory `/media/sf_grf-dev/dutchtramset'
/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
make[1]: Entering directory `/media/sf_grf-dev/dutchtramset'
[DEP] dutchtramset.src.dep
[DEP] Makefile.dep
[DEP] dutchtramset.gfx.dep
make[1]: Leaving directory `/media/sf_grf-dev/dutchtramset'
/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
make[1]: Entering directory `/media/sf_grf-dev/dutchtramset'
make[1]: Warning: File `dutchtramset.src.dep' has modification time 0.22 s in the future
[DEP] dutchtramset.gfx.dep
make[1]: Leaving directory `/media/sf_grf-dev/dutchtramset'
/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
make[1]: Entering directory `/media/sf_grf-dev/dutchtramset'
[DEP] dutchtramset.gfx.dep
make[1]: Leaving directory `/media/sf_grf-dev/dutchtramset'
/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
make[1]: Entering directory `/media/sf_grf-dev/dutchtramset'
[MD5] dutchtramset.md5
md5sum: dutchtramset.grf: No such file or directory
[TXT] docs/readme.txt
[TXT] docs/license.txt
[TXT] docs/changelog.txt
make[1]: Leaving directory `/media/sf_grf-dev/dutchtramset'

Errors on file with (

[foobar@grf-dev dutchtramset]$ make remake
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `for i in sourcefiles/_changes(obsolete).txt .hgignore Makefile Makefile.config Makefile.local.sample docs/changelog.ptxt docs/changelog.txt docs/license.ptxt docs/license.txt docs/readme.ptxt gfx/vehicletemplates.png lang/dutch.lng lang/english.lng scripts/Makefile.bundles scripts/Makefile.common scripts/Makefile.def scripts/Makefile.in scripts/Makefile_nml scripts/gimpscript scripts/mdep.py scripts/mksrcdirs.py src/dutchtramset.pnml src/header.pnml src/trams/articulated src/trams/templates.pnml; do dirname $i; done | sort | uniq'
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `for i in sourcefiles/_changes(obsolete).txt .hgignore Makefile Makefile.config Makefile.local.sample docs/changelog.ptxt docs/changelog.txt docs/license.ptxt docs/license.txt docs/readme.ptxt gfx/vehicletemplates.png lang/dutch.lng lang/english.lng scripts/Makefile.bundles scripts/Makefile.common scripts/Makefile.def scripts/Makefile.in scripts/Makefile_nml scripts/gimpscript scripts/mdep.py scripts/mksrcdirs.py src/dutchtramset.pnml src/header.pnml src/trams/articulated src/trams/templates.pnml; do dirname $i; done | sort | uniq'
make[1]: Entering directory `/media/sf_grf-dev/dutchtramset'
[CLEANING]
make[1]: Leaving directory `/media/sf_grf-dev/dutchtramset'
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `for i in sourcefiles/_changes(obsolete).txt .hgignore Makefile Makefile.config Makefile.local.sample docs/changelog.ptxt docs/changelog.txt docs/license.ptxt docs/license.txt docs/readme.ptxt gfx/vehicletemplates.png lang/dutch.lng lang/english.lng scripts/Makefile.bundles scripts/Makefile.common scripts/Makefile.def scripts/Makefile.in scripts/Makefile_nml scripts/gimpscript scripts/mdep.py scripts/mksrcdirs.py src/dutchtramset.pnml src/header.pnml src/trams/articulated src/trams/templates.pnml; do dirname $i; done | sort | uniq'
make[1]: Entering directory `/media/sf_grf-dev/dutchtramset'
[DEP] dutchtramset.src.dep
[DEP] Makefile.dep
[DEP] dutchtramset.gfx.dep
make[1]: Leaving directory `/media/sf_grf-dev/dutchtramset'
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `for i in sourcefiles/_changes(obsolete).txt .hgignore Makefile Makefile.config Makefile.local.sample docs/changelog.ptxt docs/changelog.txt docs/license.ptxt docs/license.txt docs/readme.ptxt gfx/vehicletemplates.png lang/dutch.lng lang/english.lng scripts/Makefile.bundles scripts/Makefile.common scripts/Makefile.def scripts/Makefile.in scripts/Makefile_nml scripts/gimpscript scripts/mdep.py scripts/mksrcdirs.py src/dutchtramset.pnml src/header.pnml src/trams/articulated src/trams/templates.pnml; do dirname $i; done | sort | uniq'
make[1]: Entering directory `/media/sf_grf-dev/dutchtramset'
make[1]: Warning: File `dutchtramset.src.dep' has modification time 0.058 s in the future
[DEP] dutchtramset.gfx.dep
make[1]: Leaving directory `/media/sf_grf-dev/dutchtramset'
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `for i in sourcefiles/_changes(obsolete).txt .hgignore Makefile Makefile.config Makefile.local.sample docs/changelog.ptxt docs/changelog.txt docs/license.ptxt docs/license.txt docs/readme.ptxt gfx/vehicletemplates.png lang/dutch.lng lang/english.lng scripts/Makefile.bundles scripts/Makefile.common scripts/Makefile.def scripts/Makefile.in scripts/Makefile_nml scripts/gimpscript scripts/mdep.py scripts/mksrcdirs.py src/dutchtramset.pnml src/header.pnml src/trams/articulated src/trams/templates.pnml; do dirname $i; done | sort | uniq'
make[1]: Entering directory `/media/sf_grf-dev/dutchtramset'
[MD5] dutchtramset.md5
md5sum: dutchtramset.grf: No such file or directory
[TXT] docs/readme.txt
[TXT] docs/license.txt
[TXT] docs/changelog.txt
make[1]: Leaving directory `/media/sf_grf-dev/dutchtramset'

History

#2 Updated by planetmaker almost 8 years ago

  • Parent task set to #1278

Also available in: Atom PDF