~mro/Photos2Atom

46ae40fb26beb7454b0c7e6fa97a61df26ac6690 — Marcus Rohrmoser 8 years ago 6e033ab
LB install script, copyright year.
5 files changed, 33 insertions(+), 14 deletions(-)

M assets/atom2html.xslt
M assets/script.js
M assets/style.css
M install-lightbox2.sh
M run.sh
M assets/atom2html.xslt => assets/atom2html.xslt +1 -1
@@ 1,7 1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
  iPhoto2Atom, extract images from iPhoto™ libraries
  Copyright (C) 2015  Marcus Rohrmoser, http://purl.mro.name/iPhoto2Atom
  Copyright (C) 2015-2016  Marcus Rohrmoser, http://purl.mro.name/iPhoto2Atom

  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by

M assets/script.js => assets/script.js +17 -0
@@ 1,3 1,20 @@
/*
  iPhoto2Atom, extract images from iPhoto™ libraries
  Copyright (C) 2015-2016  Marcus Rohrmoser, http://purl.mro.name/iPhoto2Atom

  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

var active = {};


M assets/style.css => assets/style.css +1 -1
@@ 1,6 1,6 @@
/* 
iPhoto2Atom, extract images from iPhoto™ libraries
Copyright (C) 2015  Marcus Rohrmoser, http://purl.mro.name/iPhoto2Atom
Copyright (C) 2015-2016  Marcus Rohrmoser, http://purl.mro.name/iPhoto2Atom

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

M install-lightbox2.sh => install-lightbox2.sh +13 -11
@@ 1,7 1,7 @@
#!/bin/sh
#
# iPhoto2Atom, extract images from iPhoto™ libraries
# Copyright (C) 2015  Marcus Rohrmoser, http://purl.mro.name/iPhoto2Atom
# Copyright (C) 2015-2016  Marcus Rohrmoser, http://purl.mro.name/iPhoto2Atom
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by


@@ 20,23 20,25 @@
# Download and install http://lokeshdhakar.com/projects/lightbox2/
#

src="http://lokeshdhakar.com/projects/lightbox2/releases/lightbox-2.7.1.zip"
src="https://github.com/lokesh/lightbox2/archive/v2.8.2.zip"
dst="assets/lightbox2"

cd "$(dirname "$0")"

zip=".tmp/lightbox2.zip"

curl --create-dirs --remote-time --time-cond "$zip" --output "$zip" --url "$src"
curl --location --create-dirs --remote-time --time-cond "${zip}" --output "${zip}" --url "${src}"

rm -rf "$dst"
for d in css img js
rm -rf "${dst}"
for d in css images js
do
  mkdir -p "$dst/$d"
  unzip -jo "$zip" */"$d"/*.* -x */$d/demopage/* -d "$dst/$d" 1>/dev/null 2>/dev/null \
  || { echo "unzip '$zip' failed."; }
  mkdir -p "${dst}/${d}"
  unzip -jo "${zip}" */dist/"${d}"/*.* -d "${dst}/${d}"
done
find "$dst" -name .DS_Store -exec rm "{}" \;
echo "-------------------"
find "${dst}" -name .DS_Store -exec rm "{}" \;
find "${dst}" -type f \( -name *.js -or -name *.css \) -not -name *.min.* -exec rm "{}" \;
find "${dst}" -type f -name *.map -or -name lightbox.min.js -exec rm "{}" \;

rm -rf "$(dirname "$zip")"
find "$dst" -type f
rm -rf "$(dirname "${zip}")"
find "${dst}" -type f

M run.sh => run.sh +1 -1
@@ 1,7 1,7 @@
#!/bin/sh
#
# iPhoto2Atom, extract images from iPhoto™ libraries
# Copyright (C) 2015  Marcus Rohrmoser, http://purl.mro.name/iPhoto2Atom
# Copyright (C) 2015-2016  Marcus Rohrmoser, http://purl.mro.name/iPhoto2Atom
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by