Changeset 27 in code
- Timestamp:
- Nov 17, 2022, 7:22:23 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cli/publish.ml
r26 r27 10 10 let kv = Logarion.File_store.of_kv_file () in 11 11 let predicate t = List.mem t.Text.id ids in 12 let pubdir = match pubdir with Some d ->d | None ->13 try Logarion.Store.KV.find "Pubdir" kv with Not_found ->14 try Sys.getenv "txtpubdir" with Not_found ->""12 let pubdir_source, pubdir = match pubdir with Some d -> "--pubdir ", d | None -> 13 try "txt.conf:Pubdir", Logarion.Store.KV.find "Pubdir" kv with Not_found -> 14 try "$txtpubdir", Sys.getenv "txtpubdir" with Not_found -> "$txtpubdir", "" 15 15 in 16 16 let targets = targets pubdir in 17 17 if targets = [] then 18 Printf.eprintf "No target directories in $pubdir='%s'\n"pubdir18 Printf.eprintf "No target directories in %s='%s'\n" pubdir_source pubdir 19 19 else begin 20 20 let pub_dirs = List.map (fun x -> snd x) targets in
Note:
See TracChangeset
for help on using the changeset viewer.