Add a build script for updating the library
This commit is contained in:
parent
39529b9038
commit
ce3ffbd9d3
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
YEAR=`cat LICENSE.txt | grep "^Copyright" | awk '{print $3}'`
|
||||
NOW=`date '+%Y'`
|
||||
|
||||
if [ $NOW -gt $YEAR ]; then
|
||||
echo "Current year $NOW > $YEAR, updating license..."
|
||||
LICENSE=`cat LICENSE.txt`
|
||||
UPDATED=`echo "${LICENSE}" | sed "s/${YEAR}/${NOW}/"`
|
||||
echo "${UPDATED}" > LICENSE.txt
|
||||
fi
|
||||
|
Loading…
Reference in New Issue