On Thu, Feb 13, 2014 at 6:07 PM, Matt Welland <estifo...@gmail.com> wrote:

> Hmmm.... I thought I could just do a "fossil config pull skin" to get
> these but that seems not to be sufficient. What are the steps to clone a
> skin?
>

conf pull skin pulls not only the CSS but also the index page name, so i've
reverted to this script for mass-injecting my preferred skin:

#!/bin/bash
fsrc=$1
fdest=$2

[[ -f $fsrc ]] && [[ -f $fdest ]] || {
    echo "Usage: $0 SRC_REPO DEST_REPO" 1>&2
    exit 1
}
cat <<EOF | sqlite3
ATTACH '$fsrc' AS src;
ATTACH '$fdest' AS dest;
REPLACE INTO dest.config(name,value)
   SELECT name, value FROM src.config
   WHERE name IN ('css','header','footer')
;
EOF
exit $?


-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to