Changeset 3 in code
- Timestamp:
- Oct 11, 2022, 5:38:29 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kanako
r2 r3 5 5 store_dir=${store_dir:-$HOME/.kanako-store} 6 6 7 cd ${store_dir} || exit 1 7 if test -d ${store_dir}; then 8 cd ${store_dir} 9 else 10 echo "Password store not found!" 11 echo "Please run kanako-init" 12 exit 1 13 fi 8 14 9 . ${conf_dir}/kanako.conf 15 if test -f ${conf_dir}/kanako.conf; then 16 . ${conf_dir}/kanako.conf; 17 else 18 echo "Configuration file has not been found!" 19 echo "Copy kanako.conf.example from the repository," 20 echo "and edit accordingly." 21 exit 1 22 fi 10 23 11 24 fn_copy() { … … 50 63 Usage: 51 64 ayu [-ceglnrRv] <arguments> 52 ayu [copy|edit|gen erate|list|add|trash|trashdir|view] <arguments>65 ayu [copy|edit|gen|list|add|trash|trashd|view] <arguments> 53 66 EOF 54 67 } … … 57 70 -c | copy) fn_copy $2 ;; 58 71 -e | edit) fn_edit $2 ;; 59 -g | gen erate) fn_generate $2 ;;72 -g | gen) fn_generate $2 ;; 60 73 -l | list) fn_list ;; 61 74 -n | add) fn_new $2 ;; -
trunk/kanako.mdoc
r2 r3 15 15 .It edit, -e 16 16 Edit an entry 17 .It gen erate, -g17 .It gen, -g 18 18 Generate a random password 19 19 .It list, -l 20 20 List all entries 21 .It del, -r21 .It trash, -r 22 22 Remove single entries 23 .It delr, -R23 .It trashd, -R 24 24 Remove recursively a directory w/ entries 25 25 .It view, -v -
trunk/mkfile
r2 r3 5 5 install -Dm0644 kanako.mdoc $PREFIX/share/man/man1/kanako.1 6 6 install -Dm0644 kanako.conf.mdoc $PREFIX/share/man/man5/kanako.conf.5 7 install -Dm0755 kanako-init $PREFIX/bin/kanako-init 7 8 uninstall: 8 9 rm -f $PREFIX/bin/kanako $PREFIX/share/man/man1/kanako.1 $PREFIX/share/man/man5/kanako.conf.5
Note:
See TracChangeset
for help on using the changeset viewer.