King_DuckZ
1956594c01
Move mediatypes.hpp/cpp to machinery.
...
This was needed so that machinery wouldn't depend on common.
Also moved compatibility.h to helpers include dir.
Ideally mediatypes.hpp will be merged into mediatype.hpp, or there
will be some kind of renaming because the two names are
getting really confusing.
2016-03-04 09:01:11 +01:00
King_DuckZ
6ddf79fad9
Implement MediaType scan task.
2016-03-03 21:31:33 +01:00
King_DuckZ
5b3e15c45f
Create DirTree class and start moving code around.
2016-03-03 20:46:30 +01:00
King_DuckZ
c69d17395a
Improve cscope script so it's easier to customize.
...
It still does the same thing as before.
2016-02-28 01:56:38 +00:00
King_DuckZ
b19720548a
Fix program hanging in release.
...
That great idea of spawning a thread for printing to stdout is
firing back. Temporary fix to get past, but the output looks
really broken now.
2016-02-23 23:28:49 +01:00
King_DuckZ
b55f42e905
Remove debug output.
2016-02-23 21:05:04 +01:00
King_DuckZ
be9fc3eb0b
Fix various problems introduced in scan with the last commit.
...
Fixes a crash due to an assertion trying to access a
past-the-end iterator.
Gets content type detection to work, although only after
hashing is done (see comment in main.cpp for details).
Fixes a problem with the array passed to guess_content_type
being not sorted as the function expects.
Adds more assertions.
2016-02-23 18:56:07 +01:00
King_DuckZ
22614432a9
Detect content type after scanning and save to DB.
2016-02-22 19:44:48 +01:00
King_DuckZ
2e77e4dc0b
Add Glob class and use that one to help guessing content types.
2016-02-20 01:36:31 +01:00
King_DuckZ
8b1b9c48f4
Flattening is useful, so move it out of the unit test.
2016-02-20 01:34:46 +01:00
King_DuckZ
f31463480f
Add stub code to detect VCDs, plus unit test.
2016-02-19 21:57:43 +01:00
King_DuckZ
7da13f6677
Add assignment operators.
2016-02-19 21:56:10 +01:00
King_DuckZ
64b5affa4f
Add guess_content_type() function.
...
WiP.
2016-02-19 10:01:11 +01:00
King_DuckZ
8a97afd6bf
Use Kakoune::SafePtr to hold the PathName in DirIterator.
2016-02-18 21:00:17 +01:00
King_DuckZ
5a2fd1e25e
Adapt safe_ptr to build in this project
2016-02-18 19:16:50 +01:00
King_DuckZ
bc35e185e7
Import safe_ptr from Kakoune project
2016-02-18 19:07:37 +01:00
King_DuckZ
bb1148863d
Add typedefs to SetListingView<B>
2016-02-17 08:54:38 +01:00
King_DuckZ
e718a21e49
Bash script to generate cscope files
2016-02-17 08:53:41 +01:00
King_DuckZ
af80771c2e
Fix the new hash_dir().
...
This fixes a bug that I never noticed in the old code.
This also breaks the progress indicator in Release.
2016-02-16 23:01:42 +00:00
King_DuckZ
5fbad40fda
Add level offset.
...
The level in the FileRecordData is 0 at the base of the
directory being scanned. However PathName::atom_count() can be
more than that. For example scanning /mnt/cdrom will have
level 0 at the mount point, but atom_count() is 2. So it's
necessary to pass in this offset. This way the code can take
that into account and compute stuff correctly.
2016-02-16 20:18:10 +00:00
King_DuckZ
5908828390
Implement hash_dir() using DirIterator. WiP
...
Keep the old implementation as well, so they can be easily tested.
Uncomment the USE_LEGACY_HASH_DIR define at the top to build with the
old function.
2016-02-16 20:29:50 +01:00
King_DuckZ
0a3e469951
Support const/non-const DirIterators and SetListingViews
2016-02-16 18:51:17 +01:00
King_DuckZ
84a2617c24
Enable interoperability between iterators
2016-02-16 18:12:26 +01:00
King_DuckZ
b34070f23c
Fix drone.io setup (missing rpm package)
2016-02-12 21:29:11 +01:00
King_DuckZ
566951a638
Enable creation of deb, rpm and tgz
2016-02-12 21:10:40 +01:00
King_DuckZ
b94bf308f5
Prepare to allow for non-const iterators.
...
WiP.
2016-02-12 21:02:26 +01:00
King_DuckZ
bed191c4fc
Better way to construct SetListingView
2016-02-12 20:14:12 +01:00
King_DuckZ
2a7b8437ed
Make DirIterator forward only
2016-02-12 19:55:32 +01:00
King_DuckZ
32d32f63cb
Fix SetListing, but some implementation is still missing
2016-02-12 14:44:32 +01:00
King_DuckZ
5549e7c97d
Show --builtin even when no actions are found.
2016-02-11 09:18:36 +01:00
King_DuckZ
c89d4b69d5
Add install target.
2016-02-11 09:07:36 +01:00
King_DuckZ
7176472526
Update drone.io build script
2016-02-10 21:04:32 +01:00
King_DuckZ
f094f31477
Allow user to set c++11 abi if using gcc 5
2016-02-10 20:55:52 +01:00
King_DuckZ
4cbc1c0df6
Fix build on gcc 5+
2016-02-10 20:14:46 +01:00
King_DuckZ
6362f0f002
Fix unit test
2016-02-10 09:19:54 +01:00
King_DuckZ
c4a68356f6
Fix a warning in clang
2016-02-10 09:03:31 +01:00
King_DuckZ
ada0f1df50
Add SetListingView.
...
I'm having linker errors in gtest, pushing to see
if this also happens on the build server.
2016-02-09 23:23:50 +01:00
King_DuckZ
346946340d
First implementation of set_listing.
...
Trying to move the depth-first iteration logic into
an iterator-like interface. Work in progress WiP
2016-02-09 21:35:13 +01:00
King_DuckZ
e223b15abf
Import gtest.
2016-02-09 21:31:01 +01:00
King_DuckZ
29d605a579
...fix build on x86_64
...
Hopefully this doesn't break the build on ARM 32 again -_-
2016-02-05 21:06:21 +01:00
King_DuckZ
f20d73bdab
Update year on copyright notice.
2016-02-05 21:02:40 +01:00
King_DuckZ
58c7e917c5
Buildfix on ARM raspberry pi
2016-02-02 20:56:27 +01:00
King_DuckZ
c5824c36bd
List directories first in the output of ls.
2016-01-29 23:30:59 +00:00
King_DuckZ
b422d5efbd
Forgot to commit the new db schema
2016-01-29 20:20:31 +01:00
King_DuckZ
f40600d6e2
Implement ls into subdirectories
2016-01-29 20:15:16 +01:00
King_DuckZ
362a5d3128
Modernize AutomemBase and add some assertions
2016-01-28 19:02:15 +01:00
King_DuckZ
394ae7672a
Optimization - replace inner vector with static mem container in dbsource.
2016-01-28 18:13:13 +01:00
King_DuckZ
8cbd9560ec
Implement listing sets from the db (ls)
2016-01-27 19:18:10 +01:00
King_DuckZ
9071b25dec
Rename DirManager to GenericPath.
2016-01-26 23:06:36 +01:00
King_DuckZ
138f112254
Implement cd and pwd commands
2016-01-26 22:53:30 +01:00