Commit de648dff authored by thomas.forbriger's avatar thomas.forbriger
Browse files

[WP] (issue14): provide file type bash in bodyguard new

parent 5ce80f6d
......@@ -43,10 +43,11 @@
# 16/03/2014 V1.16 added perl
# 29/01/2015 V1.17 do not use subversion Id keyword - operate in git
# 04/10/2015 V1.18 add type stxt
# 26/10/2015 V1.19 add type bash
#
# ============================================================================
#
NEW_VERSION="NEW V1.18 all purpose bodyguard"
NEW_VERSION="NEW V1.19 all purpose bodyguard"
tmpfile=/tmp/new$$.tmp
......@@ -73,6 +74,7 @@ help()
echo " fmain: Fortran77 main program"
echo " f: Fortran77 source code"
echo " sh: Bourne-Shell script"
echo " bash: Bourne-Again-Shell script"
echo " awk: AWK script"
echo " txt: any text file"
echo " stxt: any text file; comment lines start with #"
......@@ -809,6 +811,23 @@ create_sh()
# END OF create_sh()
#
# ----------------------------------------------------------------------------
create_bash()
{
FILENAME=$1
PURPOSE=$(get_purpose)
create_bak $FILENAME
generic_shell_header $FILENAME "$PURPOSE" '#!/bin/bash'
catch_old $FILENAME
generic_shell_closing $FILENAME
fetch_tmp $FILENAME
chmod +x $FILENAME
}
#
# END OF create_bash()
#
# ----------------------------------------------------------------------------
create_python()
{
......@@ -964,6 +983,7 @@ do
fmain) create_fmain $FILENAME;;
f|fortran) create_f $FILENAME;;
sh) create_sh $FILENAME;;
bash) create_bash $FILENAME;;
awk) create_awk $FILENAME;;
txt) create_txt $FILENAME;;
stxt) create_stxt $FILENAME;;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment