From 0359346f781b070b6e24d3a65c57a504e4a6ddf8 Mon Sep 17 00:00:00 2001 From: Konstantin Dmitriev Date: Mon, 4 Oct 2010 15:13:14 +0700 Subject: [PATCH] Splash screen for development snapshots. There's a new option in configure.ac file - DEVELOPMENT_SNAPSHOT. If its value is "true", then development splash is used. Official splash is used otherwise. --- .gitignore | 2 + synfig-studio/configure.ac | 1 + synfig-studio/images/Makefile.am | 11 + .../images/splash_screen_development.sif.in | 5104 ++++++++++++++++++++ 4 files changed, 5118 insertions(+) create mode 100644 synfig-studio/images/splash_screen_development.sif.in diff --git a/.gitignore b/.gitignore index bb53295..afb4e42 100644 --- a/.gitignore +++ b/.gitignore @@ -178,6 +178,8 @@ Makefile !synfig-studio/images/*.sif +synfig-studio/images/splash_screen_development.sif + # ------------------------------------------------------------------------ # These are executables produced by 'make check' in ETL/trunk # ------------------------------------------------------------------------ diff --git a/synfig-studio/configure.ac b/synfig-studio/configure.ac index 81367ed..220646f 100755 --- a/synfig-studio/configure.ac +++ b/synfig-studio/configure.ac @@ -3,6 +3,7 @@ # -- I N I T -------------------------------------------------- AC_INIT([Synfig Studio],[0.62.01],[http://synfig.org/Bugs],[synfigstudio]) +AM_CONDITIONAL(DEVELOPMENT_SNAPSHOT, true) AC_REVISION AC_CONFIG_AUX_DIR(config) diff --git a/synfig-studio/images/Makefile.am b/synfig-studio/images/Makefile.am index 3c1768d..01e3c26 100644 --- a/synfig-studio/images/Makefile.am +++ b/synfig-studio/images/Makefile.am @@ -359,8 +359,19 @@ keyframe_lock_none.$(EXT): $(srcdir)/keyframe_lock_icon.sif echo " File \"images\\$@\"" >>./images.nsh echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh +if DEVELOPMENT_SNAPSHOT +splash_screen_development.sif: $(srcdir)/splash_screen_development.sif.in + export commit_id=`git log --no-color -1 | head -n 1 | cut -f 2 -d ' ' | cut -c -6` && \ + export commit_date=`git show --pretty=format:%ci HEAD | head -c 10` && \ + export branch=`git branch -a --no-color --contains HEAD | sed -e s/\*\ // | sed -e s/\(no\ branch\)// | tr '\n' ' ' | tr -s ' ' | sed s/^' '//` && \ + export branch=`echo $$branch | egrep origin/master > /dev/null && echo master || echo $$branch | cut -d ' ' -f 1 | sed -e 's/.*\///'` && \ + sed "s|%branch%|$$branch|" $< | sed "s|%commit_date%|$$commit_date|" | sed "s|%commit_id%|$$commit_id|" > $@ +splash_screen.$(EXT): $(srcdir)/splash_screen_development.sif + $(SYNFIG) -q $< -o $@ --time 0 +else splash_screen.$(EXT): $(srcdir)/splash_screen-$(PACKAGE_VERSION).sif $(SYNFIG) -q $< -o $@ --time 0 +endif if !WIN32_PKG if !MACOSX_PKG diff --git a/synfig-studio/images/splash_screen_development.sif.in b/synfig-studio/images/splash_screen_development.sif.in new file mode 100644 index 0000000..9474796 --- /dev/null +++ b/synfig-studio/images/splash_screen_development.sif.in @@ -0,0 +1,5104 @@ + + + Synfig Studio Development Version Splash Screen + Released under GPL 2.0 license or above + + + + + + + + + + + + + + + + + + + + + 0.000000 + 0.226228 + 0.800000 + 1.000000 + + + + + 0.0000000000 + 0.0000000000 + + + + + + + + + + + + + + + + + + + + + + + + -0.4522728324 + 0.1676559597 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.8399352431 + 0.0753682777 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -1.1137603521 + -0.3614601195 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.6205590367 + -0.6893107295 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.3968924880 + -0.5891031027 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.2925318480 + -0.4217519462 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.1446042359 + -0.3706888855 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.0617194660 + -0.2525002360 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.0010261008 + -0.1503145844 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.1175535843 + -0.1485218555 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.2093758285 + -0.0350989476 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1.000000 + 1.000000 + 1.000000 + 1.000000 + + + + + 0.0000000000 + 0.0000000000 + + + + + + + + + + + + + + + + + + + + + + + + -0.8446023464 + 0.0531354845 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.9191290140 + -0.0772511512 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.7088573575 + 0.1036935672 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.000000 + 0.000000 + 0.000000 + 1.000000 + + + + + 0.0000000000 + 0.0000000000 + + + + + + + + + + + + + + + + + + + + + + + + -0.4522728324 + 0.1676559597 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.8399352431 + 0.0753682777 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -1.1137603521 + -0.3614601195 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.6205590367 + -0.6893107295 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.3968924880 + -0.5891031027 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.2925318480 + -0.4217519462 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.1446042359 + -0.3706888855 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.0617194660 + -0.2525002360 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.0010261008 + -0.1503145844 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.1175535843 + -0.1485218555 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.2093758285 + -0.0350989476 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.000000 + 0.000000 + 0.000000 + 1.000000 + + + + + 0.0000000000 + 0.0000000000 + + + + + + + + + + + + + + + + + + + + + + + + -0.6089240909 + -0.6789758205 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.4086598158 + -0.4402408898 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.2777177989 + -0.3170228601 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.1313708127 + -0.1707014591 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.0072737001 + -0.0782879442 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.2036867589 + -0.0128283715 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.0196849536 + -0.6212173700 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.000000 + 0.000000 + 0.000000 + 1.000000 + + + + + 0.0000000000 + 0.0000000000 + + + + + + + + + + + + + + + + + + + + + + + + -0.4854790270 + -0.3851709068 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.3309495747 + -0.0897596255 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.0038065780 + -0.0291092843 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.1446297169 + -0.0637666211 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.2377896458 + -0.2153924853 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.4176099598 + -0.2890393436 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.000000 + 0.000000 + 0.000000 + 1.000000 + + + + + 0.0000000000 + 0.0000000000 + + + + + + + + + + + + + + + + + + + + + + + + -0.0016256728 + -0.0001743948 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.0107871704 + -0.0152639765 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.0318048820 + 0.0181486905 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.0258589108 + 0.0450944416 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.0587327443 + -0.0368204750 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.0474332981 + -0.0756223947 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.0921633020 + 0.0547948182 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.0625050366 + 0.1054528579 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.1190911606 + -0.0734666511 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1.000000 + 1.000000 + 1.000000 + 0.505682 + + + + + 0.000000 + 0.000000 + 0.000000 + 1.000000 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1.000000 + 1.000000 + 1.000000 + 1.000000 + + + + + + + + + + + + + + + Branch: %branch% +Date: %commit_date% +Commit ID: %commit_id% + + + + 0.000000 + 0.000000 + 0.000000 + 1.000000 + + + + Sans Serif + + + + + + + + + + + + + + + + 0.1101453602 + 0.1101453602 + + + + + 0.0000000000 + 1.1014536619 + + + + + -2.3864879608 + -3.3043680191 + + + + + + + + + + + + + + + + + + + + + + + + + 0.0000000000 + 0.1960936338 + + + + + + + + + + + + + + + + + -0.0503699630 + -2.0649549961 + + + + + + + + + + + + + + + + S T U D I O + + + + 0.000000 + 0.000000 + 0.000000 + 1.000000 + + + + Arial + + + + + + + + + + + + + + + + 0.3000000119 + 0.2166666687 + + + + + 0.5000000000 + 1.0000000000 + + + + + -0.0056594773 + -0.0023167194 + + + + + + + + + + + + + + + + + + + + + + + + S Y N F I G + + + + 0.000000 + 0.000000 + 0.000000 + 1.000000 + + + + Times New Roman + + + + + + + + + + + + + + + + 0.5000000000 + 0.4500000179 + + + + + 0.5000000000 + 1.0000000000 + + + + + 0.0000000000 + 0.4589389861 + + + + + + + + + + + + + + + + + + + + + + + + + 0.226875 + 0.226875 + 0.226875 + 1.000000 + + + + + 0.0000000000 + 0.0000000000 + + + + + 0.1000000015 + 0.1000000015 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.0000000000 + 0.4589389861 + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.0230180211 + 0.1545740366 + + + + + + + + + + + + + + + + + 0.919101 + 0.507873 + 0.000000 + 1.000000 + + + + + -2.4599435329 + 0.1180147678 + + + + + 3.0459651947 + -0.2524481118 + + + + + + + + + + + + + + + + + + + + + + -1.6020797491 + 2.6020798683 + + + + + -1.1479202509 + 2.1479201317 + + + + + + + + 0.000000 + 0.000000 + 0.000000 + 0.000000 + + + 1.000000 + 1.000000 + 0.000000 + 1.000000 + + + 1.000000 + 1.000000 + 0.000000 + 1.000000 + + + 0.000000 + 0.000000 + 0.000000 + 0.000000 + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.0000000000 + 0.0000000000 + + + + + + + + + + + + + + + + DEVELOPMENT SNAPSHOT + + + + 0.000000 + 0.000000 + 0.000000 + 1.000000 + + + + Sans Serif + + + + + + + + + + + + + + + + 0.1468604803 + 0.1468604803 + + + + + 0.5000000000 + 0.0000000000 + + + + + 0.0000000000 + 0.0210410096 + + + + + + + + + + + + + + + + + + + + + + + + + 0.000000 + 0.000000 + 0.000000 + 1.000000 + + + + + 0.0000000000 + 0.0000000000 + + + + + 0.0550726801 + 0.0550726801 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.000000 + 0.000000 + 0.000000 + 0.174721 + + + + + 0.0751494914 + -0.0375747457 + + + + + 0.1375747472 + 0.1375747472 + + + + + + + + + + + + + + + + + -- 2.7.4