And then some more magic to merge the vimhints and the copyright headers

This commit is contained in:
Kevin Lange 2014-06-07 23:58:31 -07:00
parent 1287af81ef
commit d3cddf169a
58 changed files with 90 additions and 118 deletions

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2013 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2013 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2014 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2014 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2013-2014 Kevin Lange
*/

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2014 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2013 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2014 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2013 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2013-2014 Kevin Lange
*/

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2014 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2013-2014 Kevin Lange
*/

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2014 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2012-2014 Kevin Lange
*

View File

@ -1,10 +1,8 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*/
/*
*
* Ramdisk driver.
*
* Provide raw block access to files loaded into kernel memory.

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2013-2014 Kevin Lange
*/

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*/

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2014 Kevin Lange
* Copyright (C) 2014 Lioncash

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2014 Kevin Lange
* Copyright (C) 2012 Markus Schober

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2012-2014 Kevin Lange
* Copyright (C) 2012 Markus Schober

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2013 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2014 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2014 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2014 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2014 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2013 Kevin Lange
*/

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*/

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2014 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2014 Kevin Lange
* Copyright (C) 2012 Markus Schober

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2012-2014 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2014 Kevin Lange
* Copyright (C) 2012 Markus Schober

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2013 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2014 Kevin Lange
* Copyright (C) 2012 Markus Schober

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2014 Kevin Lange
*/

View File

@ -1,10 +1,8 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*/
/*
*
* ATA Disk Driver
*
* Provides raw block access to an (Parallel) ATA drive.

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*/

View File

@ -1,10 +1,8 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*/
/*
*
* Kernel Debug Shell
*/
#include <system.h>

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*/

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*/

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*/

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*/

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*/

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*/

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*/

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2011-2014 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*/

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*/

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*/

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*/

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*/

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*/

View File

@ -1,6 +1,5 @@
/* vim: tabstop=4 shiftwidth=4 noexpandtab
*/
/* This file is part of ToaruOS and is released under the terms
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2014 Kevin Lange
*

11
util/mergecomments.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
for f in $(find kernel modules | fgrep '.c'); do
echo -n "Looking at '$f'... "
outfile=$(mktemp)
sed -e 'N;s#\*/\n*/\*# *#g;P;D' $f > $outfile
mv $outfile $f
echo "done"
done

20
util/vimhints.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
for f in $(find kernel modules | fgrep '.c'); do
echo -n "Looking at '$f'... "
if ! grep -q "vim:" $f; then
echo "needs vimhints... "
header=$(mktemp)
echo "/* vim: tabstop=4 shiftwidth=4 noexpandtab" >> $header
echo "*/" >> $header
tmpfile=$(mktemp)
cat "$header" "$f" > "$tmpfile"
mv "$tmpfile" "$f"
rm $header
else
echo "-- already has vimhints"
fi
done