From 59b00e88c0937f62d226caaba863b20fc72c16f7 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 2 Oct 2012 11:48:02 +0100 Subject: [PATCH] Removed TiddlyFox It has moved to https://github.com/TiddlyWiki/TiddlyFox --- tiddlyfox/extension/build.sh | 128 --------------- tiddlyfox/extension/build_mac.sh | 155 ------------------ tiddlyfox/extension/chrome.manifest | 7 - tiddlyfox/extension/config_build.sh | 11 -- tiddlyfox/extension/content/hello.xul | 13 -- tiddlyfox/extension/content/inject.js | 50 ------ tiddlyfox/extension/content/overlay.js | 129 --------------- tiddlyfox/extension/content/overlay.xul | 12 -- .../extension/content/tiddlyfox_32x32.png | Bin 6023 -> 0 bytes tiddlyfox/extension/install.rdf | 37 ----- tiddlyfox/extension/locale/en-US/hello.dtd | 3 - tiddlyfox/extension/locale/en-US/overlay.dtd | 1 - tiddlyfox/extension/readme.txt | 39 ----- tiddlyfox/extension/skin/overlay.css | 4 - tiddlyfox/extension/tiddlyfox.xpi | Bin 13544 -> 0 bytes tiddlyfox/extension/tiddlyfox@tiddlywiki.org | 1 - 16 files changed, 590 deletions(-) delete mode 100644 tiddlyfox/extension/build.sh delete mode 100755 tiddlyfox/extension/build_mac.sh delete mode 100644 tiddlyfox/extension/chrome.manifest delete mode 100644 tiddlyfox/extension/config_build.sh delete mode 100644 tiddlyfox/extension/content/hello.xul delete mode 100644 tiddlyfox/extension/content/inject.js delete mode 100644 tiddlyfox/extension/content/overlay.js delete mode 100644 tiddlyfox/extension/content/overlay.xul delete mode 100644 tiddlyfox/extension/content/tiddlyfox_32x32.png delete mode 100644 tiddlyfox/extension/install.rdf delete mode 100644 tiddlyfox/extension/locale/en-US/hello.dtd delete mode 100644 tiddlyfox/extension/locale/en-US/overlay.dtd delete mode 100644 tiddlyfox/extension/readme.txt delete mode 100644 tiddlyfox/extension/skin/overlay.css delete mode 100644 tiddlyfox/extension/tiddlyfox.xpi delete mode 100644 tiddlyfox/extension/tiddlyfox@tiddlywiki.org diff --git a/tiddlyfox/extension/build.sh b/tiddlyfox/extension/build.sh deleted file mode 100644 index 3e10fae9c..000000000 --- a/tiddlyfox/extension/build.sh +++ /dev/null @@ -1,128 +0,0 @@ -#!/bin/bash -# build.sh -- builds JAR and XPI files for mozilla extensions -# by Nickolay Ponomarev -# (original version based on Nathan Yergler's build script) -# Most recent version is at - -# This script assumes the following directory structure: -# ./ -# chrome.manifest (optional - for newer extensions) -# install.rdf -# (other files listed in $ROOT_FILES) -# -# content/ | -# locale/ |} these can be named arbitrary and listed in $CHROME_PROVIDERS -# skin/ | -# -# defaults/ | -# components/ |} these must be listed in $ROOT_DIRS in order to be packaged -# ... | -# -# It uses a temporary directory ./build when building; don't use that! -# Script's output is: -# ./$APP_NAME.xpi -# ./$APP_NAME.jar (only if $KEEP_JAR=1) -# ./files -- the list of packaged files -# -# Note: It modifies chrome.manifest when packaging so that it points to -# chrome/$APP_NAME.jar!/* - -# -# default configuration file is ./config_build.sh, unless another file is -# specified in command-line. Available config variables: -APP_NAME= # short-name, jar and xpi files name. Must be lowercase with no spaces -CHROME_PROVIDERS= # which chrome providers we have (space-separated list) -CLEAN_UP= # delete the jar / "files" when done? (1/0) -ROOT_FILES= # put these files in root of xpi (space separated list of leaf filenames) -ROOT_DIRS= # ...and these directories (space separated list) -BEFORE_BUILD= # run this before building (bash command) -AFTER_BUILD= # ...and this after the build (bash command) - -if [ -z $1 ]; then - . ./config_build.sh -else - . $1 -fi - -if [ -z $APP_NAME ]; then - echo "You need to create build config file first!" - echo "Read comments at the beginning of this script for more info." - exit; -fi - -ROOT_DIR=`pwd` -TMP_DIR=build - -#uncomment to debug -#set -x - -# remove any left-over files from previous build -rm -f $APP_NAME.jar $APP_NAME.xpi files -rm -rf $TMP_DIR - -$BEFORE_BUILD - -mkdir --parents --verbose $TMP_DIR/chrome - -# generate the JAR file, excluding CVS, SVN, and temporary files -JAR_FILE=$TMP_DIR/chrome/$APP_NAME.jar -echo "Generating $JAR_FILE..." -for CHROME_SUBDIR in $CHROME_PROVIDERS; do - find $CHROME_SUBDIR \( -path '*CVS*' -o -path '*.svn*' \) -prune -o -type f -print | grep -v \~ >> files -done - -zip -0 -r $JAR_FILE -@ < files -# The following statement should be used instead if you don't wish to use the JAR file -#cp --verbose --parents `cat files` $TMP_DIR/chrome - -# prepare components and defaults -echo "Copying various files to $TMP_DIR folder..." -for DIR in $ROOT_DIRS; do - mkdir $TMP_DIR/$DIR - FILES="`find $DIR \( -path '*CVS*' -o -path '*.svn*' \) -prune -o -type f -print | grep -v \~`" - echo $FILES >> files - cp --verbose --parents $FILES $TMP_DIR -done - -# Copy other files to the root of future XPI. -for ROOT_FILE in $ROOT_FILES install.rdf chrome.manifest; do - cp --verbose $ROOT_FILE $TMP_DIR - if [ -f $ROOT_FILE ]; then - echo $ROOT_FILE >> files - fi -done - -cd $TMP_DIR - -if [ -f "chrome.manifest" ]; then - echo "Preprocessing chrome.manifest..." - # You think this is scary? - #s/^(content\s+\S*\s+)(\S*\/)$/\1jar:chrome\/$APP_NAME\.jar!\/\2/ - #s/^(skin|locale)(\s+\S*\s+\S*\s+)(.*\/)$/\1\2jar:chrome\/$APP_NAME\.jar!\/\3/ - # - # Then try this! (Same, but with characters escaped for bash :) - sed -i -r s/^\(content\\s+\\S*\\s+\)\(\\S*\\/\)$/\\1jar:chrome\\/$APP_NAME\\.jar!\\/\\2/ chrome.manifest - sed -i -r s/^\(skin\|locale\)\(\\s+\\S*\\s+\\S*\\s+\)\(.*\\/\)$/\\1\\2jar:chrome\\/$APP_NAME\\.jar!\\/\\3/ chrome.manifest - - # (it simply adds jar:chrome/whatever.jar!/ at appropriate positions of chrome.manifest) -fi - -# generate the XPI file -echo "Generating $APP_NAME.xpi..." -zip -r ../$APP_NAME.xpi * - -cd "$ROOT_DIR" - -echo "Cleanup..." -if [ $CLEAN_UP = 0 ]; then - # save the jar file - mv $TMP_DIR/chrome/$APP_NAME.jar . -else - rm ./files -fi - -# remove the working files -rm -rf $TMP_DIR -echo "Done!" - -$AFTER_BUILD \ No newline at end of file diff --git a/tiddlyfox/extension/build_mac.sh b/tiddlyfox/extension/build_mac.sh deleted file mode 100755 index 6104a995c..000000000 --- a/tiddlyfox/extension/build_mac.sh +++ /dev/null @@ -1,155 +0,0 @@ -#!/bin/bash -# build.sh -- builds JAR and XPI files for mozilla extensions -# by Nickolay Ponomarev -# (original version based on Nathan Yergler's build script) -# Most recent version is at - -# This script assumes the following directory structure: -# ./ -# chrome.manifest (optional - for newer extensions) -# install.rdf -# (other files listed in $ROOT_FILES) -# -# content/ | -# locale/ |} these can be named arbitrary and listed in $CHROME_PROVIDERS -# skin/ | -# -# defaults/ | -# components/ |} these must be listed in $ROOT_DIRS in order to be packaged -# ... | -# -# It uses a temporary directory ./build when building; don't use that! -# Script's output is: -# ./$APP_NAME.xpi -# ./$APP_NAME.jar (only if $KEEP_JAR=1) -# ./files -- the list of packaged files -# -# Note: It modifies chrome.manifest when packaging so that it points to -# chrome/$APP_NAME.jar!/* - -# -# default configuration file is ./config_build.sh, unless another file is -# specified in command-line. Available config variables: -APP_NAME= # short-name, jar and xpi files name. Must be lowercase with no spaces -CHROME_PROVIDERS= # which chrome providers we have (space-separated list) -CLEAN_UP= # delete the jar / "files" when done? (1/0) -ROOT_FILES= # put these files in root of xpi (space separated list of leaf filenames) -ROOT_DIRS= # ...and these directories (space separated list) -BEFORE_BUILD= # run this before building (bash command) -AFTER_BUILD= # ...and this after the build (bash command) - -# is "cpio" available? If not, fall back to GNU-only "cp --parents" -HAVE_CPIO=0 -which cpio 2>&1 > /dev/null && HAVE_CPIO=1 -echo "have cpio: $HAVE_CPIO" - -function cp_parents { - if [ $HAVE_CPIO = 1 ]; then - echo $1 | cpio -pduv $TMP_DIR - else - cp --verbose --parents $1 $TMP_DIR - fi -} - -function cp_parents_chr { - if [ $HAVE_CPIO = 1 ]; then - echo $1 | cpio -pduv $TMP_DIR/chrome - else - cp --verbose --parents $1 $TMP_DIR/chrome - fi -} - - -if [ -z $1 ]; then - . ./config_build.sh -else - . $1 -fi - -if [ -z $APP_NAME ]; then - echo "You need to create build config file first!" - echo "Read comments at the beginning of this script for more info." - exit; -fi - -ROOT_DIR=`pwd` -TMP_DIR=build - -#uncomment to debug -set -x - -# remove any left-over files from previous build -rm -f $APP_NAME.jar $APP_NAME.xpi files -rm -rf $TMP_DIR - -$BEFORE_BUILD - -# verbose, create each non-existent directorys -mkdir -v -p $TMP_DIR/chrome - -# generate the JAR file, excluding CVS, SVN, and temporary files -JAR_FILE=$TMP_DIR/chrome/$APP_NAME.jar -echo "Generating $JAR_FILE..." -for CHROME_SUBDIR in $CHROME_PROVIDERS; do - find $CHROME_SUBDIR \( -path '*CVS*' -o -path '*.svn*' \) -prune -o -type f -print | grep -v \~ >> files -done - -#zip -0 -r $JAR_FILE -@ < files -# The following statement should be used instead if you don't wish to use the JAR file -FLS=`cat files` -LL="" -for F in $FLS; do - cp_parents $F -done - -# prepare components and defaults -echo "Copying various files to $TMP_DIR folder..." -for DIR in $ROOT_DIRS; do - mkdir $TMP_DIR/$DIR - FILES="`find $DIR \( -path '*CVS*' -o -path '*.svn*' \) -prune -o -type f -print | grep -v \~`" - echo $FILES >> files - cp_parents $FILES -done - -# Copy other files to the root of future XPI. -for ROOT_FILE in $ROOT_FILES install.rdf chrome.manifest; do - cp_parents $ROOT_FILE - if [ -f $ROOT_FILE ]; then - echo $ROOT_FILE >> files - fi -done - -cd $TMP_DIR - -if [ -f "chrome.manifest" ]; then - echo "Preprocessing chrome.manifest..." - # You think this is scary? - #s/^(content\s+\S*\s+)(\S*\/)$/\1jar:chrome\/$APP_NAME\.jar!\/\2/ - #s/^(skin|locale)(\s+\S*\s+\S*\s+)(.*\/)$/\1\2jar:chrome\/$APP_NAME\.jar!\/\3/ - # - # Then try this! (Same, but with characters escaped for bash :) - #sed -i -r s/^\(content\\s+\\S*\\s+\)\(\\S*\\/\)$/\\1jar:chrome\\/$APP_NAME\\.jar!\\/\\2/ chrome.manifest - #sed -i -r s/^\(skin\|locale\)\(\\s+\\S*\\s+\\S*\\s+\)\(.*\\/\)$/\\1\\2jar:chrome\\/$APP_NAME\\.jar!\\/\\3/ chrome.manifest - - # (it simply adds jar:chrome/whatever.jar!/ at appropriate positions of chrome.manifest) -fi - -# generate the XPI file -echo "Generating $APP_NAME.xpi..." -zip -r ../$APP_NAME.xpi * - -cd "$ROOT_DIR" - -echo "Cleanup..." -if [ $CLEAN_UP = 0 ]; then - # save the jar file - mv $TMP_DIR/chrome/$APP_NAME.jar . -else - rm ./files -fi - -# remove the working files -rm -rf $TMP_DIR -echo "Done!" - -$AFTER_BUILD diff --git a/tiddlyfox/extension/chrome.manifest b/tiddlyfox/extension/chrome.manifest deleted file mode 100644 index 482944452..000000000 --- a/tiddlyfox/extension/chrome.manifest +++ /dev/null @@ -1,7 +0,0 @@ -content tiddlyfox content/ -overlay chrome://browser/content/browser.xul chrome://tiddlyfox/content/overlay.xul - -locale tiddlyfox en-US locale/en-US/ - -skin tiddlyfox classic/1.0 skin/ -style chrome://global/content/customizeToolbar.xul chrome://tiddlyfox/skin/overlay.css diff --git a/tiddlyfox/extension/config_build.sh b/tiddlyfox/extension/config_build.sh deleted file mode 100644 index 9b2898d0a..000000000 --- a/tiddlyfox/extension/config_build.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -# Build config for the build script, build.sh. Look there for more info. - -APP_NAME=tiddlyfox -CHROME_PROVIDERS="content locale skin" -CLEAN_UP=1 -ROOT_FILES="readme.txt" -ROOT_DIRS= -BEFORE_BUILD= -AFTER_BUILD= diff --git a/tiddlyfox/extension/content/hello.xul b/tiddlyfox/extension/content/hello.xul deleted file mode 100644 index fba00cc9a..000000000 --- a/tiddlyfox/extension/content/hello.xul +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - &separate.label; -