Commits

Ross Light committed 62eb88a

Add Black Forest icon

Comments (0)

Files changed (11)

misc/blackforest-hg-import.bash

-#!/bin/bash
-
-abspath () { case "$1" in /*)printf "%s\n" "$1";; *)printf "%s\n" "$PWD/$1";; esac; }
-
-root="$(abspath $1)"
-shift
-created="$(hg -R "$root" log -r0 --template='{date|rfc3339date}\n')"
-vcsurl="$(hg -R "$root" paths default | sed 's|^bb://|https://bitbucket.org/|')"
-
-blackforest create -created="$created" -path="$root" -vcs=hg -vcsurl="$vcsurl" "$@"
-exit $?

misc/blackforest-missing.bash

-#!/bin/bash
-
-for name in $(blackforest ls)
-do
-    blackforest path "$name" > /dev/null
-    if [ $? -ne 0 ]
-    then
-        echo "$name"
-    fi
-done

misc/blackforest.svg

+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="1024"
+   height="1024"
+   id="svg2"
+   version="1.1"
+   inkscape:version="0.48.3.1 r9886"
+   sodipodi:docname="New document 1">
+  <defs
+     id="defs4" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="0.25"
+     inkscape:cx="411.61165"
+     inkscape:cy="559.33138"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     showguides="true"
+     inkscape:guide-bbox="true"
+     inkscape:window-width="1498"
+     inkscape:window-height="857"
+     inkscape:window-x="65"
+     inkscape:window-y="24"
+     inkscape:window-maximized="0">
+    <sodipodi:guide
+       orientation="1,0"
+       position="512,680.843"
+       id="guide2987" />
+    <sodipodi:guide
+       orientation="1,0"
+       position="352,604.07122"
+       id="guide2989" />
+    <sodipodi:guide
+       orientation="1,0"
+       position="672,668.72098"
+       id="guide2991" />
+    <sodipodi:guide
+       orientation="1,0"
+       position="256,470.73109"
+       id="guide2993" />
+    <sodipodi:guide
+       orientation="1,0"
+       position="768,389.91888"
+       id="guide2995" />
+    <sodipodi:guide
+       orientation="0,1"
+       position="127.27922,589.92909"
+       id="guide2997" />
+    <sodipodi:guide
+       orientation="0,1"
+       position="512,266.68027"
+       id="guide2999" />
+    <sodipodi:guide
+       orientation="1,0"
+       position="850,414.16254"
+       id="guide3001" />
+    <sodipodi:guide
+       orientation="1,0"
+       position="174,266.68027"
+       id="guide3003" />
+    <sodipodi:guide
+       orientation="1,0"
+       position="436,266.68027"
+       id="guide3005" />
+    <sodipodi:guide
+       orientation="1,0"
+       position="588,535.38085"
+       id="guide3007" />
+    <sodipodi:guide
+       orientation="0,1"
+       position="588,94.954339"
+       id="guide3009" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(0,-28.362183)">
+    <path
+       style="fill:#000000;stroke:#4d4d4d;stroke-width:15;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"
+       d="m 588,929.04566 0,-171.72593 262,0 -178,-323.24882 96,0 L 512,33.1979 256,434.07091 l 96,0 -178,323.24882 262,0 0,171.72593 z"
+       id="path2985"
+       inkscape:connector-curvature="0"
+       transform="translate(0,28.362183)"
+       sodipodi:nodetypes="cccccccccccc" />
+  </g>
+</svg>

misc/blackforest.vim

-" Vim plugin for Black Forest
-" Maintainer: Ross Light <ross@zombiezen.com>
-" License: Copyright (c) 2013, Ross Light. All rights reserved.
-"
-" Redistribution and use in source and binary forms, with or without modification,
-" are permitted provided that the following conditions are met:
-"
-" Redistributions of source code must retain the above copyright notice, this list
-" of conditions and the following disclaimer.
-"
-" Redistributions in binary form must reproduce the above copyright notice, this
-" list of conditions and the following disclaimer in the documentation and/or
-" other materials provided with the distribution.
-"
-" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-" DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
-" ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-" ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-function! BlackForestPath(project)
-  return substitute(system("blackforest path ".shellescape(a:project)), '[\r\n]\+$', '', '')
-endfunction
-
-function! s:CompleteBcd(ArgLead, CmdLine, CursorPos)
-  return system("blackforest ls")
-endfunction
-
-command! -bar -nargs=1 -complete=custom,s:CompleteBcd Bcd exec 'cd '.escape(BlackForestPath(<f-args>), ' \')
-
-" vim: ft=vim et ts=8 sts=2 sw=2 tw=80

misc/vagrant/puppet/modules/puppet/manifests/init.pp

-class blackforest {
-    $importpath = "bitbucket.org/zombiezen/blackforest"
-    $go_url = "http://go.googlecode.com/files/go1.0.3.linux-386.tar.gz"
-    $user = "vagrant"
-    $gopath = "/home/$user/go"
-    $catalog = "/srv/blackforest-catalog"
-
-    group { $user:
-        ensure => present,
-    }
-
-    user { $user:
-        ensure => present,
-        gid => $user,
-    }
-
-    File {
-        owner => $user,
-        group => $user,
-    }
-
-    Exec {
-        user => $user,
-    }
-
-    package { ["git-core", "mercurial", "wget"]:
-        ensure => installed,
-    }
-
-    exec { "fetch-go":
-        require => Package["wget"],
-        command => "/usr/bin/wget -q -O - $go_url | /bin/tar xz -C /usr/local",
-        creates => "/usr/local/go/bin/go",
-        user => "root",
-    }
-
-    file {
-        ["$gopath",
-         "$gopath/src",
-         "$gopath/src/bitbucket.org",
-         "$gopath/src/bitbucket.org/zombiezen"]:
-            ensure => directory;
-
-        "$gopath/src/$importpath":
-            ensure => link,
-            target => "/vagrant";
-    }
-
-    file { "/tmp/blackforest-deps.bash":
-        ensure => file,
-        content => template("blackforest/blackforest-deps.bash"),
-        owner => "root",
-        group => "root",
-        mode => 755,
-    }
-
-    exec { "blackforest-deps":
-        require => [
-            Exec["fetch-go"],
-            Package["git-core"],
-            Package["mercurial"],
-            File["/tmp/blackforest-deps.bash"],
-            File["$gopath/src/$importpath"],
-        ],
-        command => "/tmp/blackforest-deps.bash",
-        environment => "GOPATH=$gopath",
-    }
-
-    file { "/home/$user/blackforest-reload":
-        ensure => file,
-        content => template("blackforest/blackforest-reload.bash"),
-        mode => 755,
-    }
-
-    exec { "blackforest-install":
-        require => Exec["blackforest-deps"],
-        command => "/usr/local/go/bin/go install $importpath",
-        environment => "GOPATH=$gopath",
-        creates => "$gopath/bin/blackforest",
-    }
-
-    file { "/etc/init/blackforest.conf":
-        mode => 600,
-        owner => "root",
-        group => "root",
-        content => template("blackforest/blackforest.conf"),
-    }
-
-    exec { "blackforest-init":
-        require => Exec["blackforest-install"],
-        command => "$gopath/bin/blackforest init -catalog=\"$catalog\"",
-        creates => $catalog,
-        user => "root",
-    }
-
-    service { "blackforest":
-        require => [File["/etc/init/blackforest.conf"], Exec["blackforest-init"]],
-        ensure => running,
-    }
-}

misc/vagrant/puppet/modules/puppet/templates/blackforest-deps.bash

-#!/bin/bash
-
-GO=/usr/local/go/bin/go
-format='{{range .Deps}}{{.}}'$'\n''{{end}}'
-deps="$($GO list -f "$format" <%=importpath%> | sed -rn '\:^bitbucket\.org/zombiezen/blackforest($|/):!p')"
-$GO get -u $deps

misc/vagrant/puppet/modules/puppet/templates/blackforest-reload.bash

-#!/bin/bash
-
-die() {
-    echo "$@" 1>&2
-    exit 1
-}
-
-if [ "$(whoami)" != root ]
-then
-    die "must be run as root"
-fi
-
-GO=/usr/local/go/bin/go
-
-initctl stop blackforest || die "** can't stop service"
-sudo -u <%=user%> GOPATH='<%=gopath%>' $GO install <%=importpath%> || die "** build failed"
-initctl start blackforest || die "** can't restart service"

misc/vagrant/puppet/modules/puppet/templates/blackforest.conf

-description "Black Forest web"
-
-stop on runlevel [!2345]
-start on runlevel [3]
-
-respawn
-
-script
-    <%=gopath%>/bin/blackforest web -listen=:10710 \
-        -catalog="<%=catalog%>" \
-        -staticdir="<%=gopath%>/src/<%=importpath%>/static" \
-        -templatedir="<%=gopath%>/src/<%=importpath%>/templates"
-end script

static/img/favicon.ico

Old
Old image
New
New image

static/img/favicon.png

Old
Old image
New
New image

static/img/favicon_172.png

Old
Old image
New
New image