Skip to content

Commit

Permalink
Add po backups removal script
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikax committed Apr 23, 2020
1 parent 52770a0 commit 11e959d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ buildbackend() {
python3 $DIR/build-controls
}

removePOBackups() {
echo "Removing po backups"
rm -rf library/languages/*.po~
rm -rf library/languages/*.pot~
}

if [ -z "$1" ]; then
buildjs
buildcss
Expand All @@ -71,6 +77,7 @@ elif [ "$1" == "--final" ]; then
buildcss
buildbackend
buildfonts
removePOBackups
printf "${BGREEN}STEP 3: BUNDLING${NC}\n"
rsync -avP --exclude '*.git*' --exclude '*node_modules*' --exclude '*package*' --exclude '*tests*' --exclude '*.DS_Store*' --exclude '*src/build*' --exclude '*src/.env' --exclude 'library/pro*' --exclude 'pro*' --exclude 'todo.txt' ./* --delete ~/Desktop/greenlet
current=$(pwd)
Expand Down

0 comments on commit 11e959d

Please sign in to comment.