remove dirinfo

parent 7aaa3716
......@@ -21,7 +21,6 @@ elif [[ -d "/usr/lib64/girepository-1.0/" ]]; then
fi
PREFIX="/usr"
DIRINFO_ENABLE="false"
MODE=user
QUIET=false
PYTHON=$(which python3 || which python)
......@@ -40,14 +39,13 @@ export_result ()
echo -e "MODE=\"${MODE}\"\
\nPREFIX=\"${PREFIX}\"\
\nDATADIR=\"${DATADIR}/bashstyle-ng/\"\
\nDATADIR_LIST=( bin ui rc/{,ascii,dirinfo,functions,internal,settings,styles} termcap/{bar,body} vim/{,colors} )\
\nDATADIR_LIST=( ui rc/{,ascii,functions,internal,settings,styles} termcap/{bar,body} vim/{,colors} )\
\nPROFILEDIR=\"${PROFILEDIR}/\"\
\nBINDIR=\"${BINDIR}\"\
\nLOCALEDIR=\"${DATADIR}/locale/\"\
\nLOCALEDIR_LIST=( {de,es,it,ru}/LC_MESSAGES/ )\
\nICONDIR=\"${DATADIR}/icons/hicolor/32x32/apps/\"\
\nPCDIR=\"${PCDIR}/\"\
\nDIRINFO_ENABLE=\"${DIRINFO_ENABLE}\"\
\nBASHFILE=\"${BASHFILE}\"\
\nMISSING=( ${MISSING} )" | sed -e 's,\/\/,\/,g' >> ${PWD}/.configure/results
......
APPS=( bash gawk grep sed bc msgfmt less )
OPT_APPS=( "acpi:showbatteryload won't work"
"lspci:systeminfos --pci won't work"
"lsusb:systeminfos --usb' won't work"
OPT_APPS=( "acpi:systemkit battery won't work"
"lspci:systemkit pci won't work"
"lsusb:systemkit usb won't work"
"wget:systemkit externalip won't work"
"ps2pdf:man2pdf won't work"
"tree:treecd won't work"
"whiptail:dirinfo --create won't work")
"tree:treecd won't work")
SAPPS=( )
OPT_SAPPS=( "dmidecode:systeminfos --bios won't work" )
OPT_SAPPS=( "dmidecode:systemkit bios won't work" )
LIBS=( )
OPT_LIBS=( )
......
......@@ -82,11 +82,6 @@ end_message () {
echo -e "\n${BLUE}Notes from configure:\
\n${YELLOW}Prefix\t\t\t${WHITE}>${MAGENTA} ${PREFIX}\
\n${YELLOW}Python\t\t\t${WHITE}>${MAGENTA} ${PYTHON}"
if [[ ${DIRINFO_ENABLE} == "true" ]]; then
echo -e "${YELLOW}Dirinfo Wrappers\t${WHITE}>${GREEN} Enabled"
else
echo -e "${YELLOW}Dirinfo Wrappers\t${WHITE}>${RED} Disabled"
fi
if [[ ${DISABLE_POSTINSTALL} ]]; then
echo -e "${YELLOW}Post-Install Tasks\t${WHITE}>${RED} Disabled"
else echo -e "${YELLOW}Post-Install Tasks\t${WHITE}>${GREEN} Enabled"
......@@ -117,7 +112,6 @@ help_message () {
\n${ORANGE}--no-postinstall${WHITE} *|${GREEN} Disable post-installation tasks (for package-maintainers)\
\n${ORANGE}--quiet${WHITE} *|${GREEN} Only display warnings, failures and results\
\n${ORANGE}--bashrc${WHITE} *|${GREEN} Path to system bashrc (for bashstyle-ng init)\
\n${ORANGE}--dirinfo=<bool>${WHITE} *|${GREEN} true: enable dirinfo wrappers, false: disable (default: disable)" | column -t -s \*
echo
tput sgr0
......
......@@ -24,7 +24,6 @@ substitute_values () {
sed -e "s>@VERSION@>$xVERSION>g" \
-e "s>@PREFIX@>$PREFIX>g" \
-e "s>@DATADIR@>$DATADIR>g" \
-e "s>@DIRINFO_ENABLE@>$DIRINFO_ENABLE>g" \
-e "s>@PYTHON@>$PYTHON>g" \
-e "s>@PROFILEDIR@>$PROFILEDIR>g" -i ${IN_FILES[@]}
sed -e "s>//>/>g" -i ${IN_FILES[@]}
......
......@@ -12,7 +12,6 @@
DATA_FILES=( ui/*.{py,ui}:${DATADIR}/ui
rc/nx-rc:${DATADIR}/rc
rc/ascii/*:${DATADIR}/rc/ascii
rc/dirinfo/*:${DATADIR}/rc/dirinfo
rc/internal/*:${DATADIR}/rc/internal
rc/settings/*:${DATADIR}/rc/settings
rc/styles/*:${DATADIR}/rc/styles
......@@ -28,7 +27,6 @@ LOCALE_FILES=( i18n/de/*.mo:${LOCALEDIR}/de/LC_MESSAGES
i18n/ru/*.mo:${LOCALEDIR}/ru/LC_MESSAGES )
BIN_FILES=( data/bashstyle:${BINDIR}
bin-extra/*:${DATADIR}/bin
rc/functions/*:${DATADIR}/rc/functions )
PROFILE_FILES=( data/bashstyle.sh:${PROFILEDIR} )
......
......@@ -14,8 +14,6 @@ post_install () {
if [[ ! $DISABLE_POSTINSTALL ]]; then
echo -e "\t${WHITE}+ ${MAGENTA} post-installation tasks"
gtk-update-icon-cache -f $PREFIX/share/icons/hicolor 2>/dev/null
rm -rf $DESTDIR/$PREFIX/share/bashstyle-ng/rc/bin/
rm -f /etc/profile.d/bashstyle.sh
if [[ $(grep "bashstyle.sh" ${BASHFILE}) == "" ]]; then
echo "source ${PROFILEDIR}/bashstyle.sh" | sed -e 's,//,/,g' >> ${BASHFILE}
fi
......
......@@ -119,10 +119,8 @@ Overview of changes in v9.0 "Hotride"
* filepath function: only prints containing directory from a path
* filenoext function: prints only filename without extension from a path
* filext function: only prints file extension from a path
* showip function: displays your external IP address
* ngroups function: system default 'groups' lists all user-groups you're in
ngroups lists all user-groups you're NOT in. (gniourf_gniourf)
* ols function: ls -l with octal file permissions
* psgrep function: find process by name (flatcap)
* map function: takes a command with any number of arguments and applies
it to each item in a list. It's basically a shorthand way of writing a
......@@ -161,6 +159,7 @@ Overview of changes in v9.0 "Hotride"
* jump removed
* geniso removed
* flv2ogg removed
* dirinfo removed
=== Consolidated Features ===
......@@ -204,7 +203,6 @@ Overview of changes in v9.0 "Hotride"
* make 1.0: various minor fixes, more verbosity, code-cleanup, consolidation,
share code with configure where useful, string changes, copyright headers
* crypt: crypt input string, instead of file
* d2u, u2d: batch operation
* random: more features
* randomfile: several improvements, more clear syntax
* all scripts: --help message added
......
......@@ -10,9 +10,6 @@ regarding Bash, Readline, VIm and Nano. The configurtion is stored using ConfigO
The functionchain is used to realize the setup when starting a new Bash.
Besides a diversity of additional functions or wrappers is provided.
Another thing shipped is dirinfo (a simple, in-progress directory-indexing
mechanism for the shell), aswell as a first-run-wizard.
12 different prompt-styles are shipped, all of them can be modified using the
GUIs built-in custom-prompt-builder (CPB).
......
#!/bin/bash
#########################################################
# #
# This is BashStyle-NG #
# #
# Licensed under GNU GENERAL PUBLIC LICENSE v3 #
# #
# Copyright 2007 - 2015 Christopher Bratusek #
# #
#########################################################
if [[ $1 == --help || $1 == -h ]]; then
$CP_CMD --help
exit 0
elif [[ ${#} -lt "2" ]]; then
echo "not enough arguements"
exit 1
fi
destination="${!#}"
if [[ "${destination}" == */ && ! -e "${destination}" ]]; then
mkdir -p "${!destination}"
elif [[ "${destination}" == */ && -f "${destination}" ]]; then
echo "destination already exists, but is a file."
exit 1
fi
args=( "$@" )
unset args[$#-1]
set -- "${args[@]}"
for path in "${args[@]}"; do
test "${path:0:1}" == - && CPO+="$path " && continue
for try in "$path" "${path%/*}" "$(dirname ${path} 2>/dev/null)"; do
test -e "$try"/.dirinfo || continue
grep -q NoCopy "$try"/.dirinfo || continue
echo "can not copy $path -- it's protected"
continue 2
done
$CP_CMD $CP_OPTS $CPO "$path" "$destination"
done
unset CPO
#!/bin/bash
#########################################################
# #
# This is BashStyle-NG #
# #
# Licensed under GNU GENERAL PUBLIC LICENSE v3 #
# #
# Copyright 2007 - 2015 Christopher Bratusek #
# #
#########################################################
if [[ $1 == --help || $1 == -h ]]; then
$MV_CMD --help
exit 0
elif [[ ${#} -lt "2" ]]; then
echo "not enough arguments"
exit 1
fi
destination="${!#}"
if [[ "${destination}" == */ && ! -e "${destination}" ]]; then
mkdir -p "${!destination}"
elif [[ "${destination}" == */ && -f "${destination}" ]]; then
echo "destination already exists, but is a file."
exit 1
fi
args=( "$@" )
unset args[$#-1]
set -- "${args[@]}"
for path in "${args[@]}"; do
test "${path:0:1}" == - && MVO+="$path " && continue
for try in "$path" "${path%/*}" "$(dirname ${path} 2>/dev/null)"; do
test -e "$try"/.dirinfo || continue
grep -q NoMove "$try"/.dirinfo || continue
echo "can not move $path -- it's protected"
continue 2
done
$MV_CMD $MV_OPTS $MVO "$path" "$destination"
done
unset MVO
#!/bin/bash
#########################################################
# #
# This is BashStyle-NG #
# #
# Licensed under GNU GENERAL PUBLIC LICENSE v3 #
# #
# Copyright 2007 - 2015 Christopher Bratusek #
# #
#########################################################
if [[ $1 == --help || $1 == -h ]]; then
$RM_CMD --help
exit 0
fi
for path in "$@"; do
test "${path:0:1}" == - && RMO+="$path " && continue
for try in "$path" "${path%/*}" "$(dirname ${path} 2>/dev/null)"; do
test -e "$try"/.dirinfo || continue
grep -q NoDelete "$try"/.dirinfo || continue
echo "can not delete $path -- it's protected"
continue 2
done
$RM_CMD $RM_OPTS $RMO "$path"
done
unset RMO
#!/bin/bash
#########################################################
# #
# This is BashStyle-NG #
# #
# Licensed under GNU GENERAL PUBLIC LICENSE v3 #
# #
# Copyright 2007 - 2015 Christopher Bratusek #
# #
#########################################################
if [[ $1 == --help || $1 == -h ]]; then
$SH_CMD --help
exit 0
fi
for path in "$@"; do
test "${path:0:1}" == - && SHO+="$path " && continue
for try in "$path" "${path%/*}" "$(dirname ${path})"; do
test -e "$try"/.dirinfo || continue
grep -q NoShred "$try"/.dirinfo || continue
echo "can not shred $path -- it's protected!"
continue 2
done
$SH_CMD $SH_OPTS $SHO "$path"
done
unset SHO
......@@ -30,7 +30,6 @@ while [[ ${xcount} -lt $# ]]; do
--girpath=* ) GIRPATH="${1/*=}" ;;
--datadir=* ) DATADIR="${1/*=}" ;;
--python=* ) PYTHON="${1/*=}" ;;
--dirinfo=* ) DIRINFO_ENABLE="${1/*=}" ;;
--bashrc=* ) BASHFILE="${1/*=}" ;;
--quiet ) QUIET=true ;;
--help ) MODE=help ;;
......
......@@ -12,31 +12,5 @@ if [[ $PATH != *games* && -d /usr/games/ ]]; then
PATH="$PATH:/usr/games/:/usr/local/games/"
fi
# substituted value from configure script
if [[ @DIRINFO_ENABLE@ != "false" ]]; then
if [[ ! $CP_CMD ]]; then
export CP_CMD=$(which cp)
fi
if [[ ! $MV_CMD ]]; then
export MV_CMD=$(which mv)
fi
if [[ ! $RM_CMD ]]; then
export RM_CMD=$(which rm)
fi
if [[ ! $SH_CMD ]]; then
export SH_CMD=$(which shred)
export SH_OPTS="-uvz"
fi
if [[ $PATH != *bashstyle-ng* ]]; then
PATH="@PREFIX@/share/bashstyle-ng/bin/:$PATH"
fi
fi
export PATH="@PREFIX@/share/bashstyle-ng/rc/functions/:$PATH:."
source @PREFIX@/share/bashstyle-ng/rc/nx-rc
. @PREFIX@/share/bashstyle-ng/rc/nx-rc
......@@ -29,7 +29,6 @@ Depends: bash (>= 3.2),
sed (>= 4.2.1),
less,
libgtk-3-bin,
whiptail,
${misc:Depends},
${python:Depends},
python3-configobj
......
......@@ -6,4 +6,4 @@ export DH_VERBOSE = 1
dh $@
override_dh_auto_configure:
dh_auto_configure -- --python=/usr/bin/python3 --no-postinstall
dh_auto_configure -- --no-postinstall
#!/bin/bash
#########################################################
# #
# This is BashStyle-NG #
# #
# Licensed under GNU GENERAL PUBLIC LICENSE v3 #
# #
# Copyright 2007 - 2015 Christopher Bratusek #
# #
#########################################################
dirinfo_create ()
{
if [[ -e $PWD/.dirinfo ]]; then
. $PWD/.dirinfo
fi
whiptail --title ".dirinfo creator" --msgbox "This wizard will guide you through the process of creating a .dirinfo file." 12 85
if [[ $Owner == "" ]]; then
xname=$USER_REAL_NAME
else xname=$Owner
fi
owner=$(whiptail --title "directory owner" --inputbox "Enter the owner of the folder" 12 85 "$xname" 3>&1 1>&2 2>&3)
echo Owner=\"$owner\" > $PWD/.dirinfo
type=$(whiptail --title "directory type" --menu "Choose the directory-type" 12 85 10 1 book 2 document 3 download 4 game 5 home 6 mediaplayer 7 music 8 picture 9 share 10 video 11 none 3>&1 1>&2 2>&3)
case $type in
1) xtype=book ;;
2) xtype=document ;;
3) xtype=download ;;
4) xtype=game ;;
5) xtype=home ;;
6) xtype=mediaplayer ;;
7) xtype=music ;;
8) xtype=picture ;;
9) xtype=share ;;
10) xtype=video ;;
11) xtype="" ;;
esac
echo Type=\"$xtype\" >> $PWD/.dirinfo
tags=$(whiptail --title "directory tags" --inputbox "Insert tags for the directory. Seperate with space" 12 85 "$(echo ${Tags[*]} | sed -e 's/(//g' -e 's/)//g')" 3>&1 1>&2 2>&3)
echo Tags=\( $tags \) >> $PWD/.dirinfo
if [[ $Created == "" ]]; then
xdate=$(dirinfo_date --get)
else xdate=$Created
fi
created=$(whiptail --title "directory creation date" --inputbox "Insert the creation date of the directory" 12 85 $xdate 3>&1 1>&2 2>&3)
echo Created=\"$created\" >> $PWD/.dirinfo
notes=$(whiptail --title "directory notes" --inputbox "Enter additional notes for the directory" 12 85 "$Notes" 3>&1 1>&2 2>&3)
echo Notes=\"$notes\" >> $PWD/.dirinfo
flags=$(whiptail --title "directory type" --checklist "Choose the directory-type (dirinfo-wrappers MUST be enabled for this to work / use with caution!)" 12 85 4 "#NoCopy" "Disallow copying of files." \
OFF "#NoMove" "Disallow moving of files." OFF "#NoDelete" "Disallow removing of files." OFF "#NoShred" "Disallow shredding of files." OFF 3>&1 1>&2 2>&3)
mark=$(whiptail --title "directory mark" --inputbox "Enter a jump-mark for this directory" 12 85 "$Mark" 3>&1 1>&2 2>&3)
echo Mark=\"$mark\" >> $PWD/.dirinfo
if [[ $flags != "" ]]; then
for flag in $flags; do
echo $flag | sed -e 's/\"//g' >> $PWD/.dirinfo
done
fi
dirinfo_display
unset Owner Type Tags Created Notes
}
#!/bin/bash
#########################################################
# #
# This is BashStyle-NG #
# #
# Licensed under GNU GENERAL PUBLIC LICENSE v3 #
# #
# Copyright 2007 - 2015 Christopher Bratusek #
# #
#########################################################
dirinfo_date ()
{
case $1 in
*get )
if [[ ! "$2" ]]; then
DIR="."
else DIR="$2"
fi
if [[ -d "$DIR" ]]; then
stat "$DIR" | grep "Modify" | gawk '{print $2}'
fi
;;
*set )
if [[ ! "$2" ]]; then
DIR="."
else DIR="$2"
fi
if [[ -e "$DIR"/.dirinfo ]]; then
sed -e '/Created/d' -i "$DIR"/.dirinfo
echo "Created=$($BSNG_RC_DIR/dirinfo/date --get $DIR)" >> "$DIR"/.dirinfo
fi
;;
esac
}
#!/bin/bash
#########################################################
# #
# This is BashStyle-NG #
# #
# Licensed under GNU GENERAL PUBLIC LICENSE v3 #
# #
# Copyright 2007 - 2015 Christopher Bratusek #
# #
#########################################################
dirinfo_display_info () {
if [[ ${Owner} ]]; then
echo -e "\n${eiceblue} Owner: ${Owner}"
fi
if [[ ${Created} ]]; then
echo -e "${emagenta} Created: ${Created}"
fi
if [[ ${Tags} ]]; then
echo -e "${ered} Tags: ${Tags[@]}"
fi
if [[ ${Notes} ]]; then
echo -e "\n${egreen} ${Notes}"
fi
tput sgr0
}
dirinfo_display_ascii () {
if [[ -e $BSNG_RC_DIR/ascii/folder-${Type} ]]; then
ASCII="$BSNG_RC_DIR/ascii/folder-${Type}"
elif [[ -e $DIR/.dirascii ]]; then
ASCII="$DIR/.dirascii"
fi
if [[ $ASCII && $enabcol == "True" ]]; then
echo -e "$(cat $ASCII)" | sed -e "s/@OWNER@/${Owner}/g" \
-e "s/@CREATED@/${Created}/g" \
-e "s/@TAGS@/${Tags[*]}/g" \
-e "s/@NOTES@/${Notes}/g"
elif [[ $ASCII && $enabcol != true ]]; then
echo -e "$(cat $ASCII | sed -e 's/\\033\[01\;36m//g'\
-e 's/\\033\[01\;35m//g' \
-e 's/\\033\[01\;31m//g' \
-e 's/\\033\[01\;32m//g' \
-e 's/\\033\[01\;37m//g' )" | \
sed -e "s/@OWNER@/${Owner}/g" \
-e "s/@CREATED@/${Created}/g" \
-e "s/@TAGS@/${Tags[*]}/g" \
-e "s/@NOTES@/${Notes}/g"
else unset Type
dirinfo_display_info
fi
tput sgr0
}
dirinfo_display ()
{
if [[ ! "$1" ]]; then
DIR="."
else DIR="$1"
fi
if [[ -e "$DIR"/.dirinfo ]]; then
. "$DIR"/.dirinfo
fi
echo -e "\n${eyellow} -- $PWD --${ewhite}"
if [[ $Notes == "" ]]; then
Notes="No notes."
fi
if [[ ! ${Type} ]]; then
dirinfo_display_info
else dirinfo_display_ascii
fi
unset Owner Created Allow Delete Tags Notes Type ASCII
echo ""
}
#!/bin/bash
#########################################################
# #
# This is BashStyle-NG #
# #
# Licensed under GNU GENERAL PUBLIC LICENSE v3 #
# #
# Copyright 2007 - 2015 Christopher Bratusek #
# #
#########################################################
# .dirindex syntax
# column1 :: column2 :: column3 :: column4 :: column5 :: column6
# directory :: tags :: type :: date :: owner :: mark
dirinfo_create_index () {
if [[ ! -e $HOME/.dirindex || $1 == "--force" ]]; then
find $HOME -name .dirinfo | sed -e 's/.dirinfo//g' > $HOME/.dirindex.0
else cp $HOME/.dirindex $HOME/.dirindex.0
fi
for directory in $(cat $HOME/.dirindex.0); do
echo :: $(grep Tags "$directory/.dirinfo") >> $HOME/.dirindex.1
done
sed -e 's/Tags=(//g' -e 's/)//g' -i $HOME/.dirindex.1
for directory in $(cat $HOME/.dirindex.0); do
echo :: $(grep Type "$directory/.dirinfo") >> $HOME/.dirindex.2
done
sed -e 's/Type=//g' -i $HOME/.dirindex.2
for directory in $(cat $HOME/.dirindex.0); do
echo :: $(grep Created "$directory/.dirinfo") >> $HOME/.dirindex.3
done
sed -e 's/Created=//g' -i $HOME/.dirindex.3
for directory in $(cat $HOME/.dirindex.0); do
echo :: $(grep Owner "$directory/.dirinfo") >> $HOME/.dirindex.4
done
sed -e 's/Owner=//g' -e 's/\"//g' -i $HOME/.dirindex.4
for directory in $(cat $HOME/.dirindex.0); do
echo :: $(grep Mark "$directory/.dirinfo") >> $HOME/.dirindex.5
done
sed -e 's/Mark=//g' -e 's/\"//g' -i $HOME/.dirindex.5
paste -d' ' $HOME/.dirindex.[0-5] > $HOME/.dirindex
sed -e 's/\"//g' -i $HOME/.dirindex
rm $HOME/.dirindex.[0-5]
rm $HOME/.wait
}
dirinfo_index ()
{
case $1 in
*generate)
touch $HOME/.wait
dirinfo_create_index --force &
SP_COLOUR="\e[37;44m"
SP_WIDTH=5.5
SP_DELAY=0.2
SP_STRING=${2:-'+ '}
while [ -e $HOME/.wait ]
do
printf "$SP_COLOUR\e7 %${SP_WIDTH}s \e8\e[01;37m" "$SP_STRING"
sleep ${SP_DELAY:-.2}
SP_STRING=${SP_STRING#"${SP_STRING%?}"}${SP_STRING%?}
done
tput sgr0
;;
*rebuild)
dirinfo_create_index
;;
*get-date)
dirinfo_date --get
;;
*set-date)
dirinfo_date --set
;;
*search)
if [[ ! -e $HOME/.dirindex ]]; then
echo "Please run dirinfo --generate first"
exit 1
fi
shift
case $1 in
*tag)
shift
gawk -F"::" '$2 ~ /'"${@}"'/{print $1}' $HOME/.dirindex
;;
*type)
shift
gawk -F"::" '$3 ~ /'"${@}"'/{print $1}' $HOME/.dirindex
;;
*date)
shift
gawk -F"::" '$4 ~ /'"${@}"'/{print $1}' $HOME/.dirindex
;;
*owner)
shift
gawk -F"::" '$5 ~ /'"${@}"'/{print $1}' $HOME/.dirindex
;;
*mark)
shift
gawk -F"::" '$6 ~ /'"${@}"'/{print $1 $6}' $HOME/.dirindex
;;
*jump)
shift
gawk -F"::" '$6 ~ /'"${@}"'/{print $1 $6}' $HOME/.dirindex | grep -w "${@}"
;;
*)
gawk -F"::" '/'"${@}"'/{print $1}' $HOME/.dirindex
;;
esac
;;
*list)
if [[ ! -e $HOME/.dirindex ]]; then
echo "Please run dirinfo --generate first"
exit 1
fi
cat $HOME/.dirindex | sed -e 's/.dirinfo//g'
;;
*help | "")
bsng-help -a "Christopher Roy Bratusek" -e "nano@jpberlin.de" -h "http://www.nanolx.org/"\
-l "GNU GPL v3" -n "dirinfo" -s "directory indexing facilities" -v "v2draft6" -y "2011-2013"\
-o "--generate:|generate a new index"\
-o "--rebuild:|rebuild the index, but do not scan for new .dirinfo files"\
-o "--search:tag type date owner mark|search in the index"\
-o "--list:|list all .dirinfo files indexed"\
-o "--create:|create .dirinfo for current directory"\
-o "--get-date:|get the date of last modification"\
-o "--set-date:|set the date of last modification"
;;
esac
}
#!/bin/bash
#########################################################
# #
# This is BashStyle-NG #
# #
# Licensed under GNU GENERAL PUBLIC LICENSE v3 #
# #
# Copyright 2007 - 2015 Christopher Bratusek #
# #
#########################################################
MODULES=( create date display index )
for mod in ${MODULES[@]}; do
source ${BSNG_RC_DIR}/dirinfo/${mod}
done
case ${1} in
*help | -h | "") dirinfo_index --help ;;
*create) dirinfo_create ;;
*) dirinfo_index "${@}" ;;
esac