-
Notifications
You must be signed in to change notification settings - Fork 8
/
start_new_blog.sh
executable file
·59 lines (44 loc) · 1.14 KB
/
start_new_blog.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
#!/bin/sh
# This Henry repo has the source for the actual theme
# If you want to contribute or develop Henry
# then cloning this repo and working on it makes sense.
# If you just want to start a blog that _uses_ Henry
# This cleanup script only keeps the relevant portions you need
YELLOW='\033[1;33m'
PURPLE='\033[1;35m'
GRAY='\033[1;30m'
NC='\033[0m' # No Color
printf "\n\n${YELLOW}---- remove files already supplied by gem${NC}\n"
rm _sass/base.scss
rm _sass/code.css
rm _sass/main.scss
rm _sass/mixins.scss
rm _sass/theme.scss
rm -rf assets/img/*
rm -rf assets/js
rm -rf _layouts
rm -rf _includes
printf "\n\n${GRAY}---- removing gem development files${NC}\n"
rm henry-jekyll.gemspec
rm LICENSE.txt
rm README.md
rm DEVELOPMENT.md
rm .ruby-version
rm Gemfile
rm Gemfile.lock
printf "\n\n${GRAY}---- Cleanup${NC}\n"
rm *.gem
rm -rf .bundle
rm -rf .idea
rm -rf .jekyll-cache
rm -rf .jekyll-metadata
rm -rf .sass-cache
rm -rf _site
rm -rf vendor
printf "\n\n${YELLOW}---- cleaning up git config${NC}\n"
rm -rf .idea
rm -rf .git
git init
git add .
git commit -m "first commit (jekyll blog with henry theme)"
printf "\n\n${PURPLE}All done! ${NC}\n"