Skip to content

Commit

Permalink
Modified package scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
vbugaevskii committed Dec 25, 2017
1 parent 7935a5b commit 4ad5c09
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 15 deletions.
5 changes: 2 additions & 3 deletions hw0wordcount/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ mkdir -p "$WORK_DIR/prog"

cp -r src pom.xml "$WORK_DIR/prog"
cp readme.txt "$WORK_DIR"
if [ -f "$ARCHIVE" ]; then
rm "$ARCHIVE"
fi
[[ -f "$ARCHIVE" ]] && rm "$ARCHIVE"

cd "$WORK_DIR" ; zip -r "../$ARCHIVE" * ; cd ..
5 changes: 2 additions & 3 deletions hw1wordlen/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ mkdir -p "$WORK_DIR/prog"

cp -r src pom.xml "$WORK_DIR/prog"
cp readme.txt "$WORK_DIR"
if [ -f "$ARCHIVE" ]; then
rm "$ARCHIVE"
fi
[[ -f "$ARCHIVE" ]] && rm "$ARCHIVE"

cd "$WORK_DIR" ; zip -r "../$ARCHIVE" * ; cd ..
5 changes: 2 additions & 3 deletions hw2matrixgenerator/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ mkdir -p "$WORK_DIR/prog"

cp -r src pom.xml config.xml "$WORK_DIR/prog"
cp readme.txt "$WORK_DIR"
if [ -f "$ARCHIVE" ]; then
rm "$ARCHIVE"
fi
[[ -f "$ARCHIVE" ]] && rm "$ARCHIVE"

cd "$WORK_DIR" ; zip -r "../$ARCHIVE" * ; cd ..
5 changes: 2 additions & 3 deletions hw3matrixmultiplier/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ mkdir -p "$WORK_DIR/prog"

cp -r src pom.xml config.xml "$WORK_DIR/prog"
cp readme.txt "$WORK_DIR"
if [ -f "$ARCHIVE" ]; then
rm "$ARCHIVE"
fi
[[ -f "$ARCHIVE" ]] && rm "$ARCHIVE"

cd "$WORK_DIR" ; zip -r "../$ARCHIVE" * ; cd ..
5 changes: 2 additions & 3 deletions hw4candlesticks/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ mkdir -p "$WORK_DIR/prog"

cp -r src pom.xml config.xml "$WORK_DIR/prog"
cp readme.txt "$WORK_DIR"
if [ -f "$ARCHIVE" ]; then
rm "$ARCHIVE"
fi
[[ -f "$ARCHIVE" ]] && rm "$ARCHIVE"

cd "$WORK_DIR" ; zip -r "../$ARCHIVE" * ; cd ..

0 comments on commit 4ad5c09

Please sign in to comment.