Fred Hebert
01252ecce4
Use raw bytestream when writing files
This patch forces write_file_if_contents_differ/2 to use raw bytes as
when writing files. This fixes an issue where UTF-8 characters are
processed and written back as ISO-8859-1 into the file, which makes it
impossible to use UTF-8 characters in .app.src files.
9 年前
Tristan Sloughter
00a4a44547
remove replacement of home dir with ~ in update output
9 年前
Tristan Sloughter
391959dae8
use 'default' for default hex repo path in cache and include in info messages
9 年前
Richard Jones
9263b95f82
Tidy up "Linking.." messages during compile
Linking message will only be printed the first time the link or copy
actually happens.
Note:
rebar_file_utils:symlink_or_copy will now return 'exists'
instead of ok, if it did nothing because the link exists.
Nothing was checking the return value yet, so seemed reasonable.
10 年前
Fred Hebert
87a57f0432
Escape paths and args in shell commands
Basic escaping is done only. Fancy hex sequences are not covered, but
this should otherwise take care of the most common issues.
Fixes #497
10 年前
Daniel Widgren
80bfb0dd29
Changed cases on robocopy so it uses variables in a better way
10 年前
CarlosEDP
6d3fa8dd66
Fix for different robocopy behaviour when moving files or folders.
10 年前
CarlosEDP
299fe33e39
Fix for robocopy command
10 年前
Daniel Widgren
ebfdbc695e
Fixed review comments
10 年前
Daniel Widgren
a029e957fd
Fixed two tests for windows 8.1 and added touch functionality
10 年前
Viacheslav V. Kovalev
8138bb92b2
Fix windows-related issues
10 年前
Daniel Widgren
4eaa21cd27
Fixed so that release tests now pass. Got all green tests.
10 年前
Daniel Widgren
e3d32b10cc
Fixed two tests for windows 8.1 and added touch functionality
10 年前
Viacheslav V. Kovalev
9ad39c979a
Fix windows-related issues
10 年前
Tristan Sloughter
8528204431
print and format error message for bad .app files and all bad configs
10 年前
Tristan Sloughter
675044bc83
use relative path on non-windows and copy if link fails
10 年前
alisdair sullivan
0b21243eae
add functions `system_tmpdir/0,1` and `reset_dir/1`
(in `rebar_file_utils`)
10 年前
Tristan Sloughter
154b70b466
properly escape paths
10 年前
Tuncer Ayaz
e1eec02c80
file_utils: properly report errors ( fix #95 )
While at it, improve the error message printed by rebar_utils:sh/2.
11 年前
Lev Walkin
f2f294d812
Do not rewrite .app file if it didn't change
13 年前
Tuncer Ayaz
aec71f93cb
Clean up specs
13 年前
Tuncer Ayaz
636c02f0be
Fix R13B03 build (Reported-by: Sergey Nartimov)
13 年前
Eric B Merritt
ec3927f9b0
Fix eunit testing of apps that have no erl files
'Erlang' projects that do not contain any erlang files (Joxa, LFE,
Elixir, etc) break the eunit task. It attempts to copy an empty list
of source files to the .eunit directory. This change makes copying an
empty list a simple no-op.
13 年前
Dave Smith
c86c99940d
Remove ?FAIL in favor of ?ABORT
13 年前
Jesse Gumm
33546cc402
Fix copying dir to non-existing dir in Win32
13 年前
Jan Klötzke
0ce5cbab06
rebar_file_utils: simplify commands on Windows
13 年前
Tuncer Ayaz
fa1bbc6702
Fix regressions in rebar_file_utils
13 年前
Tuncer Ayaz
1cb1ae238a
Fix regression in rebar_file_utils:cp_r/2
13 年前
Tuncer Ayaz
6a2fb52277
Fix spec for rebar_file_utils:rm_rf/1
13 年前
Jan Klötzke
3fa6f6ab7c
Quote paths before passing them to the shell
14 年前
Tuncer Ayaz
6d75bfbeb0
Clean up specs
14 年前
Tuncer Ayaz
63de05d914
Clean up code
14 年前
Tuncer Ayaz
c466076ffb
Clean up emacs file local variables
14 年前
Tuncer Ayaz
e4036cbe56
Apply Tidier suggestions
14 年前
Juhani Rankimies
52ca7795fe
Unify executable invocation
Add flags to rebar_utils:sh to control output and error handling.
Replace calls to os:cmd with calls to rebar_utils:sh.
14 年前
Juhani Rankimies
fd5ebe69a4
Port rebar_file_utils to Windows
Modify rm_rf and cp_r to work when {win32,_} = os:type().
Simplify rm_rf to only accept one filename, directoryname or wildcard.
Add unit tests to ensure a similar behaviour on windows and unix.
Thanks to tuncer for guidance and feedback.
14 年前
Juhani Rankimies
75fc2378bf
Remove unused functions from rebar_file_utils
mkdir_p/1 and ln_sf/2.
14 年前
Tuncer Ayaz
9a8015f2d7
Added vi modeline/emacs local variables to file headers
15 年前
Tuncer Ayaz
8c85021c1e
Deleted trailing whitespace
15 年前
Dave Smith
d6600ab506
Fixing number of warnings and buglets
15 年前
Dave Smith
b3909cc9dc
Adding delete_each/1
15 年前
Jon Meredith
8e91e1014e
Connected up symlinking the list of progs in rebar.config/app_bin
to the OTP bin dir.
15 年前
Dave Smith
be2a9096f6
More work
15 年前
Dave Smith
28fe3bfd54
More gross structural work; now has log levels and broken out log level control
15 年前
Dave Smith
b7e2088c27
Initial commit
15 年前