]> git.gag.com Git - fw/altos/blob - icon/make-rc
ao-tools/ao-dump-up: Recognize MicroTest data
[fw/altos] / icon / make-rc
1 #!/bin/sh
2
3 COMPANY="Altus Metrum, LLC"
4 PRODUCT="Altus Metrum"
5
6 case "$1" in
7     *altosui*)
8         PRODUCT="AltosUI"
9         ;;
10     *telegps*)
11         PRODUCT="TeleGPS"
12         ;;
13     *micropeak*)
14         PRODUCT="MicroPeak"
15         ;;
16 esac
17
18 VERSION="$2"
19 VERSION_COMMA=`echo "$VERSION" | sed 's/\./,/g'`
20 INTERNAL_NAME=`basename $1`
21 EXE_NAME="$INTERNAL_NAME".exe
22 YEAR=`date +%Y`
23
24 cat <<EOF
25 101 ICON "$1.ico"
26 1 VERSIONINFO
27 FILEVERSION $VERSION_COMMA
28 PRODUCTVERSION $VERSION_COMMA
29 FILEFLAGSMASK 0
30 FILEOS 0x40004
31 FILETYPE 1
32 {
33  BLOCK "StringFileInfo"
34  {
35   BLOCK "040904E4"
36   {
37    VALUE "Comments", "$COMPANY $PRODUCT"
38    VALUE "CompanyName", "$COMPANY"
39    VALUE "FileDescription", "$PRODUCT"
40    VALUE "FileVersion", "$VERSION"
41    VALUE "InternalName", "$INTERNAL_NAME"
42    VALUE "LegalCopyright", "Copyright $YEAR, $COMPANY"
43    VALUE "OriginalFilename", "$EXE_NAME"
44    VALUE "ProductName", "$PRODUCT"
45    VALUE "ProductVersion", "$VERSION"
46   }
47  }
48  BLOCK "VarFileInfo"
49  {
50   VALUE "Translation", 0x409, 1252
51  }
52 }
53 EOF