Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | SOURCE="${BASH_SOURCE[0]}" |
---|
4 | while [ -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 |
---|
8 | done |
---|
9 | DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )" |
---|
10 | |
---|
11 | |
---|
12 | THEME_TARGET_FOLDER="$DIR/themes/bilberry-hugo-theme" |
---|
13 | |
---|
14 | rm -rf "$THEME_TARGET_FOLDER" && true |
---|
15 | mkdir -p "$THEME_TARGET_FOLDER" |
---|
16 | |
---|
17 | cp -r "$DIR/../../archetypes" "$THEME_TARGET_FOLDER" |
---|
18 | cp -r "$DIR/../../assets" "$THEME_TARGET_FOLDER" |
---|
19 | cp -r "$DIR/../../i18n" "$THEME_TARGET_FOLDER" |
---|
20 | cp -r "$DIR/../../images" "$THEME_TARGET_FOLDER" |
---|
21 | cp -r "$DIR/../../layouts" "$THEME_TARGET_FOLDER" |
---|
22 | cp -r "$DIR/../../static" "$THEME_TARGET_FOLDER" |
---|
23 | cp -r "$DIR/../../theme.toml" "$THEME_TARGET_FOLDER" |
---|
24 | cp -r "$DIR/../../webpack.mix.js" "$THEME_TARGET_FOLDER" |
---|
Note: See
TracBrowser for help on using the repository browser.