Simple Note System v2.0a2

Changes:
Split script into several different files for easier editting
Added build.sh to compile Simple Note System from tree
Changed config file to config folder; $HOME/.sns now contains configuration and notes

Testing:
Script runs and produces help screen; no further testing done.
This commit is contained in:
Jon-William Lewis
2015-03-18 12:52:00 -05:00
parent 1864543bf5
commit 45717e33b5
13 changed files with 538 additions and 175 deletions

22
init/stage3.sns.sh Normal file
View File

@@ -0,0 +1,22 @@
# If no name or notebook is specified, the create, edit, and print functions will not function properly.
# Check $NAME and $NOTEBOOK and exit if either are empty.
if [ -z "$NAME" -o -z "$NOTEBOOK" ]; then;
echo " ERROR: Insufficient arguments";
help; #Remind the user how to use the script
exit 10;
fi
NOTEDIR=$BASEDIR/$NOTEBOOK/$SECTION/
NOTE=$NOTEDIR$NAME.$EXT
if [ "$ENCRYPTION" == "TRUE" ]; then
NOTE=$NOTE.tmp
fi