restructuring and optimizations

- moved misc and pkg to data/scripts
- started recover procedure
- optimized clean stale ids
This commit is contained in:
Radu Ioan Fericean
2014-11-26 15:06:06 +02:00
parent 489c17c561
commit 5f7fac2f64
18 changed files with 38 additions and 7 deletions

24
data/scripts/header.sh Executable file
View File

@@ -0,0 +1,24 @@
# check for arguments
if [ $# -ne 1 ]
then
echo "Error in $0 - Invalid Argument Count"
echo "Syntax: $0 input_file - copyright header file"
exit
fi
# check for header file
infile=$1
if [ ! -f $infile ]
then
echo "Input file [$infile] not found - Aborting"
exit
fi
# inject header
for i in *.go
do
if ! grep -q Copyright $i
then
cat $infile $i >$i.new && mv $i.new $i
fi
done