Commit graph

19 commits

Author SHA1 Message Date
8d9615f72a Add comment about running as script
Also say that it is not the recommended way.
2012-12-30 02:04:27 +01:00
455f40c794 Add possibility of running as scripts
By using the `#+' read syntax to determine if the file is being run as
a script or (presumably) compiled, we can use it as either a binary or
a script.
2012-12-30 02:00:08 +01:00
3820e65992 Rename convert to markam-convert 2012-12-29 17:10:12 +01:00
b467939385 Rename linkwave to markam 2012-12-29 16:54:16 +01:00
f379783d28 Add version and help options to convert
Place the `version' and `display-version' items in `common.scm' so
they can be easily used by both executables.
2012-12-29 02:55:03 +01:00
27bdb9bdd1 Add version and help options to linkwave 2012-12-29 02:21:21 +01:00
71e54b6a61 Ignore binaries and other generated files 2012-12-28 22:56:30 +01:00
bf63bf47c7 Add Texinfo documentation 2012-12-28 22:55:16 +01:00
e3d4594eb7 Add/improve some documentation comments
Since CHICKEN scheme doesn't do docstrings I'm just using comments.
2012-12-28 22:03:55 +01:00
e72e942eca Add GPLv3 2012-12-28 20:45:32 +01:00
5535308fff Restructure
Put all source files in `src/' and add the `conkeror/' directory from
the old project.
2012-12-28 20:24:20 +01:00
57f06ec8c9 Remove db as a global variable
There's no need for it to be a global variable.
2012-12-28 01:46:15 +01:00
f71c70ca7b Define a main function
It looks somewhat cleaner.
2012-12-28 01:42:21 +01:00
59af3a13f9 Don't bail when a tag doesn't exist yet
Add the tag to the database if `first-result' returns nothing.
2012-12-28 01:39:16 +01:00
908bbc3cfb Use a transaction when adding new bookmarks
During testing it was discovered that the `first-result' procedure
throws an exception, which left the database in a somewhat
inconsistent state, the bookmark had been added, but (at least one of)
the tags weren't added.  This should make it all succeed or all fail.
2012-12-28 01:00:26 +01:00
0c24993384 Add README 2012-12-27 03:12:15 +01:00
10d453e5d7 Update linkwave
* Add parsing of command line arguments, if the first argument starts
  with "http://" assume it's a new bookmark and save it to the
  database.

* Add adding bookmarks to the database.

* linkwave.scm (string-no-null): Only try to remove the final null
  byte if the string is longer than 0 characters and only if the last
  character _is_ a null character.
2012-12-27 03:08:55 +01:00
1b6badfcce Guard against non-blob values of bookmark.date 2012-12-27 03:03:24 +01:00
77c7dbaa9a Initial commit 2012-12-24 01:27:14 +01:00