Fully updated to the actual (Boussole v1) config and got rid of most things that shouldn't be there
This commit is contained in:
parent
6b616b44dd
commit
71f2b38a0d
192 changed files with 854 additions and 605 deletions
29
.local/bin/mktp.sh
Executable file
29
.local/bin/mktp.sh
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "Missing argument"
|
||||
fi
|
||||
|
||||
# Dir
|
||||
mkdir $1
|
||||
cd $1
|
||||
|
||||
#Header
|
||||
header="${1^^}_H"
|
||||
echo -e "#ifndef ${header}\n#define ${header}\n\n#endif // ${header}" >> $1.h
|
||||
|
||||
# Source
|
||||
echo -e "#include <stdio.h>
|
||||
|
||||
#include \"$1.h\"
|
||||
|
||||
|
||||
|
||||
int main(void)
|
||||
{
|
||||
printf(\"%\", );
|
||||
puts();
|
||||
}
|
||||
" >> $1.c
|
||||
|
||||
cd ..
|
||||
Loading…
Add table
Add a link
Reference in a new issue