Skip to content

Commit f81ff19

Browse files
committed
Continued tweaking
1 parent 615a808 commit f81ff19

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

admin/release

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ version=4
1111
qualifier=
1212

1313
branch=release-
14-
devonly='.github/* admin/ build/ contributing/ user_guide_src/ CODE_OF_CONDUCT.md \
14+
devonly='admin/ build/ contributing/ user_guide_src/ CODE_OF_CONDUCT.md \
1515
DCO.txt PULL_REQUEST_TEMPLATE.md'
1616
which=release
1717

@@ -80,12 +80,16 @@ sed -i "/Release Date/s/Not Released/$(date +'%B %d, %Y')/" user_guide_src/sourc
8080
#---------------------------------------------------
8181
# Generate the user guide
8282
echo -e "${BOLD}Generate the user guide${NORMAL}"
83+
84+
if [ -d docs ]; then
85+
rm -rf docs/
86+
fi
87+
8388
cd user_guide_src
8489

8590
# make the UG & embed it in the project root
8691
rm -rf build/*
8792
make html
88-
rm -Rf ../docs
8993
mv build/html ../docs
9094
touch ../docs/.nojekyll
9195

@@ -98,13 +102,6 @@ cd ..
98102
# Hide stuff from the release bundle
99103
echo -e "${BOLD}Hide stuff from the release bundle${NORMAL}"
100104

101-
# Restore the old .gitignore
102-
if [ -f admin/previous-gitignore ]; then
103-
cp -r admin/previous-gitignore .gitignore
104-
fi
105-
cp -r .gitignore admin/previous-gitignore
106-
107-
# Add the dev only folders/files to .gitignore
108105
for f in $devonly; do
109106
echo $f >> .gitignore
110107
done

0 commit comments

Comments
 (0)