summaryrefslogtreecommitdiff
path: root/lib/utfcpp/v2_0/buildrelease.pl
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2015-01-10 16:16:05 +0100
committerAlexis Hildebrandt <afh@surryhill.net>2015-01-12 10:50:43 +0100
commita468fdca0eb380e6ea3d954d98b5995a45decbc9 (patch)
tree863219769cebc950d6f022eb8bd6d23f6b236ca3 /lib/utfcpp/v2_0/buildrelease.pl
parent094aec6c0d5461f595d9f207ea52f37aa03f7508 (diff)
downloadfork-ledger-a468fdca0eb380e6ea3d954d98b5995a45decbc9.tar.gz
fork-ledger-a468fdca0eb380e6ea3d954d98b5995a45decbc9.tar.bz2
fork-ledger-a468fdca0eb380e6ea3d954d98b5995a45decbc9.zip
Replace utfcpp submodule with partial subtree
* Remove utfcpp submodule * Squashed 'lib/utfcpp/' content from commit 63cd498 git-subtree-dir: lib/utfcpp git-subtree-split: 63cd4984464e875546b4a91918be7355357a3a68 * Merge commit '82003f30ba8ba436cf7cef380155f50ed4242b37' as 'lib/utfcpp' * Remove needless utfcpp subtree files * Change include path to utfcpp Signed-off-by: Alexis Hildebrandt <afh@surryhill.net>
Diffstat (limited to 'lib/utfcpp/v2_0/buildrelease.pl')
-rwxr-xr-xlib/utfcpp/v2_0/buildrelease.pl18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/utfcpp/v2_0/buildrelease.pl b/lib/utfcpp/v2_0/buildrelease.pl
new file mode 100755
index 00000000..ed3a17bb
--- /dev/null
+++ b/lib/utfcpp/v2_0/buildrelease.pl
@@ -0,0 +1,18 @@
+#! /usr/bin/perl
+
+$release_files = 'source/utf8.h source/utf8/core.h source/utf8/checked.h source/utf8/unchecked.h doc/utf8cpp.html doc/ReleaseNotes';
+
+# First get the latest version
+`svn update`;
+
+# Then construct the name of the zip file
+$argc = @ARGV;
+if ($argc > 0) {
+ $zip_name = $ARGV[0];
+}
+else {
+ $zip_name = "utf8";
+}
+
+# Zip the files to an archive
+`zip $zip_name $release_files`;