Permalink
Browse files

build year

  • Loading branch information...
1 parent 3509fa4 commit acb5436254f1b6b36001c89fabcd1d5a02790853 @tcurdt committed Jan 13, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 buildinfo-git.sh
View
@@ -42,15 +42,19 @@ else
REVISION=$REVISION_DEFAULT
fi
+YEAR=`date +%Y`
+
PREFIX_FILE="$PROJECT_TEMP_DIR/Info.plist.prefix"
# create the file for the preprocessor
if [ -z "$PROJECT_TEMP_DIR" ]; then
echo "BUILD_RELEASE = $RELEASE"
echo "BUILD_REVISION = $REVISION"
+ echo "BUILD_YEAR = $YEAR"
else
echo "Created Info.plist prefix file $PREFIX_FILE for $RELEASE $REVISION"
echo "#define BUILD_RELEASE $RELEASE" > "$PREFIX_FILE"
echo "#define BUILD_REVISION $REVISION" >> "$PREFIX_FILE"
+ echo "#define BUILD_YEAR $YEAR" >> "$PREFIX_FILE"
fi

0 comments on commit acb5436

Please sign in to comment.