12 lines
136 B
Bash
Executable File
12 lines
136 B
Bash
Executable File
#!/bin/sh
|
|
|
|
FILE="lesson$1/l$1"
|
|
|
|
nasm -f elf $FILE.asm -o $FILE.o
|
|
ld -m elf_i386 $FILE.o -o $FILE
|
|
|
|
if [ "$2" = "r" ]
|
|
then
|
|
./$FILE
|
|
fi
|