-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostinstall.sh
executable file
·39 lines (32 loc) · 1.18 KB
/
postinstall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
#===============================================================================
#
# FILE: postinstall.sh
#
# USAGE: ./postinstall.sh --type=patch
#
# DESCRIPTION: Copies gent_styleguide build assets to the static/images folder.
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHORS:
# Bart Delrue [email protected]
# Robbie Verdurme [email protected]
# COMPANY: Digipolis Gent
# VERSION: 1.0
# CREATED: 14/04/2020
# REVISION: ---
#===============================================================================
#
# Create the necessary directories and move files to them after npm install or yarn install is run.
#
if [ -d "node_modules/gent_styleguide/build/styleguide" ]; then
echo "Copy styleguide assets/img/favicon/build/cyan to ~/static/images"
rm -rf static/images/cyan;
cp -R node_modules/gent_styleguide/build/styleguide/img/favicon/build/cyan static/images;
echo "Copy styleguide assets/img/svg to ~/static/images"
rm -rf static/images/svg;
cp -R node_modules/gent_styleguide/build/styleguide/img/svg static/images;
fi