Skip to content

Commit

Permalink
Add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
faheel committed Sep 24, 2017
1 parent c67a7ec commit 18c04b5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
files="BigInt.hpp \
utils.hpp \
constructors/constructors.hpp \
operators/assignment.hpp \
operators/relational.hpp \
operators/unary_arithmetic.hpp \
operators/io_stream.hpp"

mkdir -p ../release
rm -f ../release/BigInt.hpp

for file in $files
do
cat "../include/$file" >> ../release/BigInt.hpp
printf "\n\n" >> ../release/BigInt.hpp
done

patterns=("#ifndef *" \
"#endif *" \
"#define *" \
"#include \"*\"")

for pattern in "${patterns[@]}"
do
sed -i "/$pattern/d" ../release/BigInt.hpp
done

0 comments on commit 18c04b5

Please sign in to comment.