# else, parse the readme, find the first non blank, not starting with [#*],
# and use that line.
-source /a/bin/errhandle/err
+set -e; . /usr/local/lib/bash-bear; set +e
if [[ ! $1 ]]; then
echo "need gitroot arg"
if [[ ${personalized[${d##*/}]} ]]; then
echo "$pcategory" >.git/category
fi
+ if [[ ${unmaintained[${d##*/}]} ]]; then
+ echo "$ucategory" >.git/category
+ fi
+ if [[ ${historicalarchive[${d##*/}]} ]]; then
+ echo "$hcategory" >.git/category
+ fi
f=(!(LICENSE|COPYING|README|.git))
if [[ ${#f[@]} == 1 && ! -d $f ]]; then
if [[ ! -x $f ]]; then
for p in ${tmp[@]}; do personalized[$p]=true; done
pcategory="Personalized for my use. Useful as examples or to copy specific parts"
+tmp=(
+ bbdb-csv-import
+ evhz
+ )
+ucategory="I don't use these anymore, they may or may not work, patches welcome"
+declare -A unmaintained
+for p in ${tmp[@]}; do unmaintained[$p]=true; done
+
+tmp=(
+ bash-template
+ debian-auto-update
+ fdroidcl-up
+ mediawiki-setup
+ mediawiki-librejs-patch
+ mediawiki-sidebar-patch
+)
+hcategory="Historical archive. They don't work or have been superseded."
+declare -A historicalarchive
+for p in ${tmp[@]}; do historicalarchive[$p]=true; done
dirs=()
for d in $gitroot/*; do