Skip to content

Commit

Permalink
Fix build docs script
Browse files Browse the repository at this point in the history
Summary:
Fixed build-docs script. Workaround for #373
Closes #447

Differential Revision: D4479613

Pulled By: rnystrom

fbshipit-source-id: abc61ed11ae01efbbe9b5aaab2036501d269f9c7
  • Loading branch information
Bofei Zhu authored and facebook-github-bot committed Jan 28, 2017
1 parent 019c990 commit 3da6372
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@
# ------------------------------
SOURCE=Source
SOURCE_TMP=IGListKit
SOURCEDIR=Source/
COMMONDIR=Source/Common/

# store all the file names in Common folder
COMMONFILES=($(find Source/Common -maxdepth 1 -type f -exec basename {} \;))

# move files in Common folder to Source folder
for f in "${COMMONFILES[@]}"
do
mv $COMMONDIR$f $SOURCE
done

# temporary workaround when using SPM dir format
# https://github.com/realm/jazzy/issues/667
Expand All @@ -26,3 +37,9 @@ jazzy \

# restore the dir per the jazzy issue
mv $SOURCE_TMP $SOURCE

# move files back to Common folder
for f in "${COMMONFILES[@]}"
do
mv $SOURCEDIR$f $COMMONDIR
done

0 comments on commit 3da6372

Please sign in to comment.