Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

deleted old build scripts

  • Loading branch information...
commit fccf4ed2c1ab47f5f7e3777cdd087aacfe975841 1 parent b26a8e2
@titpetric authored
View
12 batch-directory.sh
@@ -1,12 +0,0 @@
-#!/bin/bash
-
-DIR=$1
-CMD=$2
-
-if [ "$CMD" = "" ]
-then
- echo "usage: $0 [directory] [command]"
- exit 1
-fi
-
-for file in $(cd $DIR; ls -1 *); do $CMD $(echo ${file/.png/} | sed "s/.svg//") ; done
View
83 build-montage.sh
@@ -1,83 +0,0 @@
-#!/bin/bash
-
-function pro () {
- echo -n "."
-}
-
-function usage () {
- echo "usage: $0 directory project foreground logo.png resolution cc"
- exit 0
-}
-
-function scale () {
-PROJ=$1
-FORE=$2
-CC=$3
-RES=$4
-
- mkdir -p build/$PROJ-$FORE/res-$RES && pro
- ./build-scale.sh build/$PROJ-$FORE/web/$CC.png build/$PROJ-$FORE/res-$RES/$CC.png $RES "$CC" && pro
-}
-
-IN=$1
-PROJ=$2
-FORE=$3
-LOGO=$4
-RES=$5
-CC=$6
-
-[ "$IN" = "" ] && usage
-[ "$PROJ" = "" ] && usage
-[ "$FORE" = "" ] && usage
-[ "$LOGO" = "" ] && usage
-[ "$RES" = "" ] && usage
-[ "$CC" = "" ] && usage
-
-echo -n "$CC ($PROJ-$FORE) "
-
-if [ -f "$IN/$CC.png" ]
-then
- pro
-else
- echo "missing file: $IN/$CC.png, Exiting."
- exit 1
-fi
-
-if [ -f "artwork/fore-$FORE.png" ]
-then
- pro
-else
- echo "missing file: artwork/fore-$FORE.png, Exiting."
- exit 1
-fi
-
-mkdir -p build/$PROJ-$FORE/web && pro
-mkdir -p build/$PROJ-$FORE/web-noshadow && pro
-
-convert $IN/$CC.png -alpha set -gravity center -scale 403x403 -extent 512x512 artwork/mask.png -compose DstIn -composite artwork/fore-$FORE.png -compose Over -gravity South-East -composite \( -scale $RES artwork/$LOGO \) -compose Over -composite artwork/back-shadow.png -compose DstOver -composite build/$PROJ-$FORE/web/$CC.png
-
-convert $IN/$CC.png -alpha set -gravity center -scale 403x403 -extent 512x512 artwork/mask.png -compose DstIn -composite artwork/fore-$FORE.png -compose Over -gravity South-East -composite \( -scale $RES artwork/$LOGO \) -compose Over -composite artwork/back-empty.png -compose DstOver -composite build/$PROJ-$FORE/web-noshadow/$CC.png
-
-pro
-
-if [ -f "build/$PROJ-$FORE/web/$CC.png" ]
-then
- pro
-else
- echo "convert failed, exiting."
- exit 1
-fi
-
-scale $PROJ $FORE $CC 256x256
-scale $PROJ $FORE $CC 128x128
-scale $PROJ $FORE $CC 96x96
-scale $PROJ $FORE $CC 72x72
-scale $PROJ $FORE $CC 64x64
-scale $PROJ $FORE $CC 48x48
-scale $PROJ $FORE $CC 36x36
-scale $PROJ $FORE $CC 32x32
-scale $PROJ $FORE $CC 24x24
-scale $PROJ $FORE $CC 16x16
-
-echo " ok"
-
View
14 build-scale.sh
@@ -1,14 +0,0 @@
-#!/bin/bash
-
-function pro () {
- echo -n "."
-}
-
-IN=$1
-OUT=$2
-RES=$3
-LABEL=$4
-
-echo -n " $RES "
-
-convert -label $LABEL -scale $RES $IN $OUT && pro
View
34 build-sheets.sh
@@ -1,34 +0,0 @@
-#!/bin/bash
-
-function pro () {
- echo -n "."
-}
-
-PROJ=$1
-FG=$2
-BG=$3
-
-echo -n "Sheets " && pro
-
-if [ -e "$PROJ" ]
-then
- pro
-else
- echo "Error: no such directory: $PRO, exiting."
- exit 1
-fi
-
-RES=$(ls -d1 $PROJ/res-*)
-
-#echo $RES
-
-for R in $RES; do
-R1=$(echo $R | sed "s/.*\/res-//g" )
-F1=$(echo $R | sed "s/.*\/res-.*x//g" )
-
- echo -n " $R1 "
-
- montage -font DroidSans-Bold.ttf -pointsize $(echo "$F1 * 0.125 + 8" | bc) $R/*.png -geometry $R1 -fill $FG -background $BG $PROJ/Sheet-$BG-$R1.png && pro;
-done
-
-echo " ok"
View
50 build-svg2png.sh
@@ -1,50 +0,0 @@
-#!/bin/bash
-
-IN=$1
-OUT=$2
-RES=$3
-CC=$4
-
-function pro () {
- echo -n "."
-}
-
-function usage () {
- echo "usage: $0 in out cc resolution"
- exit 0
-}
-
-echo -n "svn2png $RES "
-
-[ "$IN" = "" ] && usage
-[ "$OUT" = "" ] && usage
-[ "$CC" = "" ] && usage
-[ "$RES" = "" ] && usage
-
-if [ -f "$IN/$CC.svg" ]
-then
- pro
-else
- echo "missing file: $IN/$CC.svg, Exiting."
- exit 1
-fi
-
-if [ -f "$OUT-$RES/$CC.png" ]
-then
- if [ "$IN/$CC.svg" -nt "$OUT-$RES/$CC.png" ]
- then
- pro
- else
- echo " skipping $IN/$CC.svg."
- exit 0
- fi
-fi
-
-mkdir -p $OUT-$RES && pro
-
-inkscape -a 0:0:512:512 -w $RES -h $RES --export-png=$OUT-$RES/$CC.png $IN/$CC.svg
-
-pro
-
-echo " ok. "
-
View
56 build.sh
@@ -1,56 +0,0 @@
-#!/bin/bash
-
-hash inkscape &> /dev/null
-if [ $? -eq 1 ]; then
- echo >&2 "command 'inkscape' not found. Please install inkscape."
-fi
-
-hash convert &> /dev/null
-if [ $? -eq 1 ]; then
- echo >&2 "executable 'convert' not found. Please install imagemagick."
-fi
-
-function pro () {
- echo -n "."
-}
-
-echo "Building"
-
-function bat () {
- echo "Style: $2"
- ./batch-directory.sh "./build-montage.sh $1 $2 $3 $4" && pro
- ./build-sheets.sh $1-$2 LightGrey
- ./build-sheets.sh $1-$2 black
- ./build-sheets.sh $1-$2 white
- echo " done."
-}
-
-function batII () {
-PROJ=$1
-RES=$2
-
- bat $PROJ flat $PROJ.png $RES
- bat $PROJ simple $PROJ.png $RES
- bat $PROJ fancy $PROJ.png $RES
- bat $PROJ glossy $PROJ.png $RES
-}
-
-#batII flags 250x250
-
-function batIII () {
-IN=$1
-RES=$2
-FORE=$3
-
-./batch-directory.sh svg/$IN "./build-svg2png.sh svg/$IN build/$IN 403" && pro
-./batch-directory.sh svg/$IN "./build-montage.sh build/$IN-403 $IN-403 $FORE logo.png $RESx$RES" && pro
-./build-sheets.sh build/$IN-403-$FORE Black LightGrey
-./build-sheets.sh build/$IN-403-$FORE Black White
-./build-sheets.sh build/$IN-403-$FORE LightGrey Black
-./build-sheets.sh build/$IN-403-$FORE Black Transparent
-}
-
-batIII country-squared 512 flat
-batIII country-squared 512 simple
-batIII country-squared 512 fancy
-batIII country-squared 512 glossy
Please sign in to comment.
Something went wrong with that request. Please try again.