fixed bug in build script that caused incorrect header comment
This commit is contained in:
2
build.sh
2
build.sh
@@ -1,6 +1,6 @@
|
|||||||
S=sns.sh
|
S=sns.sh
|
||||||
|
|
||||||
cat header.sh > "$S"
|
bash header.sh > "$S"
|
||||||
echo -e "\n# Section: Functions" >> "$S"
|
echo -e "\n# Section: Functions" >> "$S"
|
||||||
cat ./src/includes/w_conf.sns.sh >> "$S"
|
cat ./src/includes/w_conf.sns.sh >> "$S"
|
||||||
cat ./src/includes/pause.sns.sh >> "$S"
|
cat ./src/includes/pause.sns.sh >> "$S"
|
||||||
|
|||||||
12
header.sh
12
header.sh
@@ -1,4 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
PROD_STR="Simple Note System"
|
||||||
|
VER_STR="v2.0a5"
|
||||||
|
|
||||||
|
cat << EOF
|
||||||
|
#!/bin/bash
|
||||||
#==========================================================
|
#==========================================================
|
||||||
# $PROD_STR, $VER_STR
|
# $PROD_STR, $VER_STR
|
||||||
# Copyright 2014, Xenese Labs/Sicron-Perion XNF
|
# Copyright 2014, Xenese Labs/Sicron-Perion XNF
|
||||||
@@ -6,8 +12,10 @@
|
|||||||
|
|
||||||
if [ -z "$HOME" ]; then HOME=/home/$(whoami); fi
|
if [ -z "$HOME" ]; then HOME=/home/$(whoami); fi
|
||||||
|
|
||||||
PROD_STR="Simple Note System"
|
PROD_STR="$PROD_STR"
|
||||||
VER_STR="v2.0a5"
|
VER_STR="$VER_STR"
|
||||||
ROOTDIR="$HOME"/.config/sns
|
ROOTDIR="$HOME"/.config/sns
|
||||||
BASEDIR="$ROOTDIR"/notes
|
BASEDIR="$ROOTDIR"/notes
|
||||||
CONFIGURATION="$ROOTDIR/sns.conf"
|
CONFIGURATION="$ROOTDIR/sns.conf"
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|||||||
13
sns.sh
13
sns.sh
@@ -1,16 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#==========================================================
|
#==========================================================
|
||||||
# $PROD_STR, $VER_STR
|
# Simple Note System, v2.0a5
|
||||||
# Copyright 2014, Xenese Labs/Sicron-Perion XNF
|
# Copyright 2014, Xenese Labs/Sicron-Perion XNF
|
||||||
#==========================================================
|
#==========================================================
|
||||||
|
|
||||||
if [ -z "$HOME" ]; then HOME=/home/$(whoami); fi
|
if [ -z "/Users/xilmwa" ]; then HOME=/home/xilmwa; fi
|
||||||
|
|
||||||
PROD_STR="Simple Note System"
|
PROD_STR="Simple Note System"
|
||||||
VER_STR="v2.0a5"
|
VER_STR="v2.0a5"
|
||||||
ROOTDIR="$HOME"/.config/sns
|
ROOTDIR="/Users/xilmwa"/.config/sns
|
||||||
BASEDIR="$ROOTDIR"/notes
|
BASEDIR=""/notes
|
||||||
CONFIGURATION="$ROOTDIR/sns.conf"
|
CONFIGURATION="/sns.conf"
|
||||||
|
|
||||||
|
|
||||||
# Section: Functions
|
# Section: Functions
|
||||||
function w_conf {
|
function w_conf {
|
||||||
@@ -276,7 +277,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Note: w_conf and help have highest priority, as they are the only functions
|
# Note: w_conf and help have highest priority, as they are the only functions
|
||||||
# that can work without any parameters.
|
# that can work without any arguments.
|
||||||
|
|
||||||
#==============================================================================
|
#==============================================================================
|
||||||
# End Section: Argument Parsing
|
# End Section: Argument Parsing
|
||||||
|
|||||||
Reference in New Issue
Block a user