Created
April 29, 2013 18:22
-
-
Save juliusknorr/5483606 to your computer and use it in GitHub Desktop.
sysprog add exercise script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir a$1 # create folder | |
touch a$1/readme # create readme | |
touch a$1/a$1.c # create main c file | |
## Template for readme | |
echo "Autor: Julius Haertl | |
Systemprogrammierung SS 2013 | |
Blatt 2: Prozesse unter Linux | |
Aufgabe $1 | |
Vorbedingung: | |
Aktuelles Arbeitsverzeichnis ist: blatt2/a$1 | |
Generierungsanleitung: | |
Programm kompilieren: | |
$ gcc -o a$1 a$1.c | |
Bedienungsanleitung: | |
1. Programm starten | |
$ ./$1 | |
" > a$1/readme | |
## Template for a00.c | |
echo "// Julius Haertl | |
#include <stdio.h> | |
int main(int argc, char** argv) { | |
return 0; | |
} | |
" > a$1/a$1.c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment