makeLeft and makeNewline put into include
This commit is contained in:
36
jhp/iro
36
jhp/iro
@@ -47,18 +47,6 @@ function moveDown() {
|
||||
done
|
||||
}
|
||||
|
||||
function makeNewline() {
|
||||
for((i=0; i<$1; i++)); do
|
||||
printf "\n" >> $FILE
|
||||
done
|
||||
}
|
||||
|
||||
function makeLeft() {
|
||||
for((i=0; i<$1; i++)); do
|
||||
printf " " >> $FILE
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
function heading() {
|
||||
moveDown
|
||||
@@ -76,29 +64,29 @@ function heading() {
|
||||
if [ $PAGE -eq 1 ]; then
|
||||
makeLeft $NEXTPAGE
|
||||
fi
|
||||
makeLeft 1
|
||||
makeLeft $SPACE
|
||||
makeLeft 1 $FILE
|
||||
makeLeft $SPACE $FILE
|
||||
italicLetters $FILE
|
||||
printf "INTERGALACTIC\n" >> $FILE
|
||||
|
||||
if [ $PAGE -eq 1 ]; then
|
||||
makeLeft $NEXTPAGE
|
||||
fi
|
||||
makeLeft 1
|
||||
makeLeft $SPACE
|
||||
makeLeft 1 $FILE
|
||||
makeLeft $SPACE $FILE
|
||||
printf "REGISTRATION\n" >> $FILE
|
||||
bigLetters $FILE
|
||||
|
||||
if [ $PAGE -eq 1 ]; then
|
||||
makeLeft $HEADINGNEXTPAGE
|
||||
makeLeft $HEADINGNEXTPAGE $FILE
|
||||
if [ $(($FIELD % 2)) -eq 1 ]; then
|
||||
makeLeft $(($HSPACE - 1))
|
||||
makeLeft $(($HSPACE - 1)) $FILE
|
||||
fi
|
||||
else
|
||||
if [ $(($FIELD % 2)) -eq 0 ]; then
|
||||
makeLeft 1
|
||||
makeLeft 1 $FILE
|
||||
fi
|
||||
makeLeft $HSPACE
|
||||
makeLeft $HSPACE $FILE
|
||||
fi
|
||||
printf "OFFICE\n" >> $FILE
|
||||
resetLetters $FILE
|
||||
@@ -114,10 +102,10 @@ function insertDate() {
|
||||
|
||||
smallLetters $FILE
|
||||
if [ $PAGE -eq 1 ]; then
|
||||
makeLeft $NEXTPAGESMALL
|
||||
makeLeft $NEXTPAGESMALL $FILE
|
||||
fi
|
||||
makeLeft $LEFT
|
||||
makeLeft $(($SPACE + 2))
|
||||
makeLeft $LEFT $FILE
|
||||
makeLeft $(($SPACE + 2)) $FILE
|
||||
if [ -n "$EVENT" ]; then
|
||||
printf "$EVENT, $(date -I)" >> $FILE
|
||||
else
|
||||
@@ -129,7 +117,7 @@ function insertDate() {
|
||||
source ../include/nixdorf
|
||||
init
|
||||
|
||||
makeNewline $TOP
|
||||
makeNewline $TOP $FILE
|
||||
heading
|
||||
insertDate
|
||||
|
||||
|
Reference in New Issue
Block a user