OpenGTA/tools/insert_copyright.sh
Anonymous Maarten 78c27f03c8 2006-12-10
2015-12-03 01:37:02 +01:00

12 lines
195 B
Bash
Executable File

#!/bin/bash
copyright_file=licenses/zlib_header.txt
if [ $# -gt 0 ]; then
input=$1
if [ $# -eq 2 ]; then
copyright_file=$2
fi
fi
sed '1{h; r $1
D; }
2{x; G; }' $copyright_file $input