31 lines
822 B
Bash
31 lines
822 B
Bash
PROD_STR="Simple Note System"
|
|
VER_STR="v2.0a9"
|
|
YEAR=2016
|
|
|
|
cat << EOF
|
|
#!/bin/bash
|
|
#==========================================================
|
|
# $PROD_STR, $VER_STR
|
|
# Copyright $YEAR, Xenese Labs/Sicron-Perion XNF
|
|
#==========================================================
|
|
|
|
# Prevent freak accidents involving the root directory
|
|
if [ -z "\$HOME" ]; then HOME=/home/"\$(whoami)"; fi
|
|
|
|
# Store files and locations
|
|
readonly PROD_STR="$PROD_STR"
|
|
readonly VER_STR="$VER_STR"
|
|
readonly ROOT_DIR="\$HOME"/.config/sns
|
|
readonly NOTES_DIR="\$ROOT_DIR"/notes
|
|
readonly TMP_DIR="\$ROOT_DIR"/tmp
|
|
readonly CONFIG_FILE="\$ROOT_DIR/sns.conf"
|
|
|
|
#Color codes for error reporting
|
|
readonly RED_COLOR='\033[1;31m'
|
|
readonly RESET_COLOR='\033[0m'
|
|
|
|
#Print the program header to stdout
|
|
printf "%s\n" "\$PROD_STR"
|
|
printf "%s\n" "------------------"
|
|
EOF
|