-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathupgrade-theme.sh
executable file
·64 lines (45 loc) · 1.17 KB
/
upgrade-theme.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
#set -x
folder=backup
back="$(date +%Y-%m-%d-%H-%M-%S)";
printf "\n\nCreate backup folder:"
if [ ! -d ./$folder ]; then
mkdir -p ./$folder;
fi
if [ ! -d ./$folder/$back ]; then
mkdir -p ./$folder/$back;
fi
##mv "src $folder/src-$d"
printf "\n\nMove custom out of uikit folder:"
cp -R ./uikit/custom ./custom
printf "\n\nBackup old stuff:"
mv ./uikit ./$folder/$back/uikit
mv ./AdminThemeUikit ./$folder/$back/AdminThemeUikit
printf "\n\nDownload new AdminThemeUikit"
git clone https://github.com/ryancramerdesign/AdminThemeUikit download
printf "\n\nUse ryans uikit"
mv ./download/uikit ./uikit
printf "\n\nMove ryans custom files to AdminThemeUikit"
mv ./uikit/custom ./AdminThemeUikit
printf "\n\nTrash the rest"
rm -rf download
printf "\n\nMove custom theme stuff back into new uikit folder"
mv custom/ uikit/custom
rm ./AdminThemeUikit/pw/pw-theme-reno.less
touch ./AdminThemeUikit/pw/pw-theme-reno.less
printf "\n\nGo to new directory"
cd uikit
printf "\n\nInstall node modules"
yarn
printf "\n\nRecompiling"
yarn compile
printf "\n\ndone…"
printf "
You can now run
$ cd uikit
$ yarn compile-less
or for development:
$ cd uikit
$ yarn watch
Enjoy…
"