File: newmeeting.sh

package info (click to toggle)
texlive-extra 2022.20230122-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,466,588 kB
  • sloc: perl: 398,710; xml: 35,871; python: 29,125; cs: 25,850; sh: 17,610; makefile: 17,304; ansic: 15,490; java: 12,811; javascript: 9,898; lisp: 1,755; csh: 1,129; ruby: 1,072; awk: 151; tcl: 142; pascal: 138; cpp: 41; sed: 36; haskell: 5
file content (83 lines) | stat: -rw-r--r-- 1,752 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/bash
# file name, entry num
if [ $# -ne 2 ];
    then echo "
  USAGE: newmeeting.sh name num
    create a new directory and tex file for your meeting, where
      name: file directory and file name for the new entry (e.g. sept06)
      num:  populate src/name/name.tex with num tasks"
  exit
fi

# customize your list of team members
MEMBERS="Alonso, Aman, Arjun, Cadence, David, Deeya, Divek, Elina, Kaitlyn, Nicky, Zachary"

DIR=src/$1
FILE=src/$1.tex

if [ -d "$DIR" ]; then
    # Control will enter here if $DIRECTORY doesn't exist.
    echo "directory $DIR exists already, pick a new name"
    exit
fi

mkdir $DIR

# print new day entry
echo "
\begin{Meeting}% [type]% optional type (Preseason, Competition)
  {}% title
  {}% date
  {hours}% duration
  {$MEMBERS}% members
  {% list of tasks" > $FILE

# print task within new day entry
for i in `seq 1 $2`;
do
  echo "     %
     \TaskInfo{}{task:$1:}% title & label
       {}% reflection" >> $FILE
done
echo "}

" >> $FILE

# print tasks
for i in `seq 1 $2`;
do
  echo "

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% task: 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\Task% optional continuation of task, e.g. [\TaskRef{task:}]
  {}% {num}[num]: num in 1-6: 1 Strategy; 2 Design; 3 Build; 4 Math/Physic; 5 Software; 6 Team


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Section{Purpose and Overview}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Section{Design Process and Decisions}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Section{Conclusions}

" >> $FILE
done

# print end of new day entry
echo "
 \end{Meeting}
" >> $FILE

echo "add following in main tex file:
    \input{src/$1.tex}
"