Skip to content

Commit

Permalink
Always use the current year for copyright in new build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Sproul committed May 28, 2014
1 parent 50365b9 commit 2eba449
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions new.sh
Expand Up @@ -21,7 +21,7 @@
# CDDL HEADER END
#
#
# Copyright 2011-2012 OmniTI Computer Consulting, Inc. All rights reserved.
# Copyright 2014 OmniTI Computer Consulting, Inc. All rights reserved.
# Use is subject to license terms.
#

Expand Down Expand Up @@ -76,8 +76,11 @@ if [[ -d $BUILDDIR/$NAME ]]; then
exit 1
fi

year=`date +%Y`

echo "Creating new $TYPE build script under $BUILDDIR/$NAME"
mkdir $BUILDDIR/$NAME
cp $SCRIPTDIR/template/${TYPE}-template.sh $BUILDDIR/$NAME/build.sh
cat $SCRIPTDIR/template/${TYPE}-template.sh | \
sed -e "s/@@CYEAR@@/$year/" > $BUILDDIR/$NAME/build.sh
chmod +x $BUILDDIR/$NAME/build.sh
mkdir $BUILDDIR/$NAME/patches
2 changes: 1 addition & 1 deletion template/basic-template.sh
Expand Up @@ -21,7 +21,7 @@
# CDDL HEADER END
#
#
# Copyright 2011-2013 OmniTI Computer Consulting, Inc. All rights reserved.
# Copyright @@CYEAR@@ OmniTI Computer Consulting, Inc. All rights reserved.
# Use is subject to license terms.
#
# Load support functions
Expand Down
2 changes: 1 addition & 1 deletion template/perl-template.sh
Expand Up @@ -21,7 +21,7 @@
# CDDL HEADER END
#
#
# Copyright 2011-2013 OmniTI Computer Consulting, Inc. All rights reserved.
# Copyright @@CYEAR@@ OmniTI Computer Consulting, Inc. All rights reserved.
# Use is subject to license terms.
#
# Load support functions
Expand Down
2 changes: 1 addition & 1 deletion template/python-template.sh
Expand Up @@ -21,7 +21,7 @@
# CDDL HEADER END
#
#
# Copyright 2011-2013 OmniTI Computer Consulting, Inc. All rights reserved.
# Copyright @@CYEAR@@ OmniTI Computer Consulting, Inc. All rights reserved.
# Use is subject to license terms.
#
# Load support functions
Expand Down

0 comments on commit 2eba449

Please sign in to comment.