diff --git a/src/Makefile b/src/Makefile index 59dba78e0..3d2d4635b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -666,11 +666,11 @@ stamp_header: @cat stamp-open9x.h stamp: - @echo "#define DATE_STR \"`date +%Y-%m-%d`\"" > stamp-open9x.txt - @echo "#define TIME_STR \"`date +%H:%I:%S`\"" >> stamp-open9x.txt - @echo "#define VERS_STR \"$(MAJ_VER).$(MIN_VER)\"" >> stamp-open9x.txt - @echo "#define SVN_STR \"$(BUILD_DIR)-r$(REV)\"" >> stamp-open9x.txt - @cat stamp-open9x.txt + @echo "#define DATE_STR \"`date +%Y-%m-%d`\"" > ../stamp-open9x.txt + @echo "#define TIME_STR \"`date +%H:%I:%S`\"" >> ../stamp-open9x.txt + @echo "#define VERS_STR \"$(MAJ_VER).$(MIN_VER)\"" >> ../stamp-open9x.txt + @echo "#define SVN_STR \"$(BUILD_DIR)-r$(REV)\"" >> ../stamp-open9x.txt + @cat ../stamp-open9x.txt font.lbm: font_6x1.xbm @echo diff --git a/src/stamp-open9x.txt b/src/stamp-open9x.txt deleted file mode 100644 index e1605b2bf..000000000 --- a/src/stamp-open9x.txt +++ /dev/null @@ -1,4 +0,0 @@ -#define DATE_STR "2012-01-21" -#define TIME_STR "16:04:39" -#define VERS_STR "2.00" -#define SVN_STR "open9x-r99" diff --git a/stamp-open9x.txt b/stamp-open9x.txt new file mode 100644 index 000000000..48c38cff8 --- /dev/null +++ b/stamp-open9x.txt @@ -0,0 +1,4 @@ +#define DATE_STR "2012-01-21" +#define TIME_STR "21:09:55" +#define VERS_STR "2.00" +#define SVN_STR "open9x-r114" diff --git a/util/release.sh b/util/release.sh new file mode 100644 index 000000000..2f36a9639 --- /dev/null +++ b/util/release.sh @@ -0,0 +1,46 @@ +#!/usr/bin/env sh + +# stock board + +make clean +make PCB=STD BATT=UNSTABLE_BANDGAP BEEPER=BUZZER +cp ./open9x.hex ../open9x-stock.hex + +make clean +make PCB=STD HELI=YES TEMPLATES=YES BATT=UNSTABLE_BANDGAP BEEPER=BUZZER +cp ./open9x.hex ../open9x-stock-heli-templates.hex + +make clean +make PCB=STD HELI=YES TEMPLATES=YES BATT=UNSTABLE_BANDGAP BEEPER=SPEAKER +cp ./open9x.hex ../open9x-stock-heli-templates-speaker.hex + +make clean +make PCB=STD EXT=FRSKY BATT=UNSTABLE_BANDGAP BEEPER=BUZZER +cp ./open9x.hex ../open9x-stock-frsky.hex + +make clean +make PCB=STD EXT=FRSKY BATT=UNSTABLE_BANDGAP BEEPER=SPEAKER +cp ./open9x.hex ../open9x-stock-frsky-speaker.hex + +make clean +make PCB=STD EXT=FRSKY HELI=YES TEMPLATES=YES BATT=UNSTABLE_BANDGAP BEEPER=BUZZER +cp ./open9x.hex ../open9x-stock-frsky-heli-templates.hex + +make clean +make PCB=STD EXT=FRSKY HELI=YES TEMPLATES=YES BATT=UNSTABLE_BANDGAP BEEPER=SPEAKER +cp ./open9x.hex ../open9x-stock-frsky-heli-templates-speaker.hex + +# v4 board + +make clean +make PCB=V4 +cp ./open9x.hex ../open9x-v4-frsky.hex + +make clean +make PCB=V4 HELI=YES TEMPLATES=YES +cp ./open9x.hex ../open9x-v4-frsky-heli-templates.hex + +# stamp + +make stamp +