source: tanzpartie-hugo/themes/bilberry-hugo-theme/testing/testing-example-site/setup-theme.sh @ 17941

Last change on this file since 17941 was 16971, checked in by Henrik Bettermann, 2 years ago
File size: 990 bytes
Line 
1#!/bin/bash
2
3SOURCE="${BASH_SOURCE[0]}"
4while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
5  DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
6  SOURCE="$(readlink "$SOURCE")"
7  [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
8done
9DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
10
11
12THEME_TARGET_FOLDER="$DIR/themes/bilberry-hugo-theme"
13
14rm -rf "$THEME_TARGET_FOLDER" && true
15mkdir -p "$THEME_TARGET_FOLDER"
16
17cp -r "$DIR/../../archetypes" "$THEME_TARGET_FOLDER"
18cp -r "$DIR/../../assets" "$THEME_TARGET_FOLDER"
19cp -r "$DIR/../../i18n" "$THEME_TARGET_FOLDER"
20cp -r "$DIR/../../images" "$THEME_TARGET_FOLDER"
21cp -r "$DIR/../../layouts" "$THEME_TARGET_FOLDER"
22cp -r "$DIR/../../static" "$THEME_TARGET_FOLDER"
23cp -r "$DIR/../../theme.toml" "$THEME_TARGET_FOLDER"
24cp -r "$DIR/../../webpack.mix.js" "$THEME_TARGET_FOLDER"
Note: See TracBrowser for help on using the repository browser.