From 3347ca93061ad277310526e6be6123aa13e07c4d Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Thu, 19 Dec 2019 23:46:51 -0800 Subject: [PATCH] Add some spacing to cgen sample file --- dotfiles/bash/scripts/cgen.sh | 4 +- .../bash/scripts/cgen_etc/template_clang_format | 13 ---- dotfiles/bash/scripts/cgen_etc/template_gitignore | 83 ---------------------- 3 files changed, 2 insertions(+), 98 deletions(-) delete mode 100644 dotfiles/bash/scripts/cgen_etc/template_clang_format delete mode 100644 dotfiles/bash/scripts/cgen_etc/template_gitignore diff --git a/dotfiles/bash/scripts/cgen.sh b/dotfiles/bash/scripts/cgen.sh index c4e8443..0b9b7e1 100755 --- a/dotfiles/bash/scripts/cgen.sh +++ b/dotfiles/bash/scripts/cgen.sh @@ -80,8 +80,8 @@ cp $script_dir/cgen_etc/gitignore_template $name/.gitignore sample_file=$name/src/main.c echo "#include " >> $sample_file -echo "" -echo "" +echo "" >> $sample_file +echo "" >> $sample_file echo "int main(int argc, char **argv)" >> $sample_file echo "{" >> $sample_file echo " printf(\"Hello, world!\\n\");" >> $sample_file diff --git a/dotfiles/bash/scripts/cgen_etc/template_clang_format b/dotfiles/bash/scripts/cgen_etc/template_clang_format deleted file mode 100644 index 94ff769..0000000 --- a/dotfiles/bash/scripts/cgen_etc/template_clang_format +++ /dev/null @@ -1,13 +0,0 @@ -AlignConsecutiveAssignments: 'true' -AlignTrailingComments: 'true' -AllowShortBlocksOnASingleLine: 'false' -AllowShortCaseLabelsOnASingleLine: 'false' -AllowShortFunctionsOnASingleLine: None -AllowShortIfStatementsOnASingleLine: Never -AllowShortLoopsOnASingleLine: 'false' -BreakBeforeBraces: Allman -ColumnLimit: '120' -IndentWidth: '4' -PointerAlignment: Right -SortIncludes: 'false' - diff --git a/dotfiles/bash/scripts/cgen_etc/template_gitignore b/dotfiles/bash/scripts/cgen_etc/template_gitignore deleted file mode 100644 index 1d8cedd..0000000 --- a/dotfiles/bash/scripts/cgen_etc/template_gitignore +++ /dev/null @@ -1,83 +0,0 @@ -# Prerequisites -*.d - -# Object files -*.o -*.ko -*.obj -*.elf - -# Linker output -*.ilk -*.map -*.exp - -# Precompiled Headers -*.gch -*.pch - -# Libraries -*.lib -*.a -*.la -*.lo - -# Shared objects (inc. Windows DLLs) -*.dll -*.so -*.so.* -*.dylib - -# Executables -*.exe -*.out -*.app -*.i*86 -*.x86_64 -*.hex - -# Debug files -*.dSYM/ -*.su -*.idb -*.pdb - -# Kernel Module Compile Results -*.mod* -*.cmd -.tmp_versions/ -modules.order -Module.symvers -Mkfile.old -dkms.conf - -# VSCode - -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json -*.code-workspace - -# Vim - -# Swap -[._]*.s[a-v][a-z] -!*.svg # comment out if you don't need vector files -[._]*.sw[a-p] -[._]s[a-rt-v][a-z] -[._]ss[a-gi-z] -[._]sw[a-p] - -# Session -Session.vim -Sessionx.vim - -# Temporary -.netrwhist -*~ -# Auto-generated tag files -tags -# Persistent undo -[._]*.un~