X-Git-Url: https://iankelling.org/git/?p=iankelling.org;a=blobdiff_plain;f=gitweb-descriptions;h=c9255f2e5cd85c83474c7fef82e84bf9f4e0467e;hp=b6fad5a6cf4e459481dd5cd004a4daf25b313d00;hb=001299deacd7b5d230416aeda612ca7b40e13ffc;hpb=6ae93360501151f3625f6d988cee7047b7acc786 diff --git a/gitweb-descriptions b/gitweb-descriptions index b6fad5a..c9255f2 100755 --- a/gitweb-descriptions +++ b/gitweb-descriptions @@ -37,6 +37,11 @@ shopt -s extglob shopt -s nullglob _git_desc_readme() { + x=(README*) + if [[ ! $x ]]; then + echo "$1: error: no README at $PWD" + exit 1 + fi while read -r line; do [[ $line ]] || continue if echo "$line" | grep "^ *[#*]" &>/dev/null; then @@ -50,6 +55,7 @@ _git_desc_readme() { gitweb-descriptions() { for d in ${dirs[@]}; do cd $(readlink -f $d)/.. + [[ -e .git ]] || echo $d if [[ ${personalized[${d##*/}]} ]]; then echo "$pcategory" >.git/category fi @@ -74,12 +80,12 @@ tmp=( bashrc automated-distro-installer buildscripts - config-files distro-setup dot-emacs fai-basefiles ian-misc-bash iankelling.org + keyboard.io-layout ) declare -A personalized for p in ${tmp[@]}; do personalized[$p]=true; done