Browse Source

Moved all reports to a report subdirectory

Samuel W. Flint 7 years ago
parent
commit
44cf5d08b7
1 changed files with 5 additions and 5 deletions
  1. 5 5
      library

+ 5 - 5
library

@@ -39,7 +39,7 @@ function do_report {
     shift
     case ${NAME} in
         list)
-            for report in ${LIBRARYDIRECTORY}/*.report ;
+            for report in ${LIBRARYDIRECTORY}/reports/*.report ;
             do
                 echo " - $(basename -- ${report} .report)"
             done
@@ -51,12 +51,12 @@ function do_report {
             fi
             REPORT=$1
             shift
-            echo "# -*- mode: shell-script -*-" > ${LIBRARYDIRECTORY}/${REPORT}.report
-            emacsclient --alternate-editor="" -n ${LIBRARYDIRECTORY}/${REPORT}.report
+            echo "# -*- mode: shell-script -*-" > ${LIBRARYDIRECTORY}/reports/${REPORT}.report
+            emacsclient --alternate-editor="" -n ${LIBRARYDIRECTORY}/reports/${REPORT}.report
         ;;
         *)
-            if [[ -e ${LIBRARYDIRECTORY}/${NAME}.report ]] ; then
-               sh ${LIBRARYDIRECTORY}/${NAME}.report $@
+            if [[ -e ${LIBRARYDIRECTORY}/reports/${NAME}.report ]] ; then
+               sh ${LIBRARYDIRECTORY}/reports/${NAME}.report $@
             fi
     esac
 }