summaryrefslogtreecommitdiffstats
path: root/Utilities/Release/Cygwin/cygwin-package.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/Release/Cygwin/cygwin-package.sh.in')
-rwxr-xr-xUtilities/Release/Cygwin/cygwin-package.sh.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/Utilities/Release/Cygwin/cygwin-package.sh.in b/Utilities/Release/Cygwin/cygwin-package.sh.in
new file mode 100755
index 0000000..0ce7b7e
--- /dev/null
+++ b/Utilities/Release/Cygwin/cygwin-package.sh.in
@@ -0,0 +1,13 @@
+tdir=`pwd`
+tar xvfj @CYGWIN_SRC_PACKAGE_NAME@.tar.bz2 &&
+cd @CYGWIN_SRC_PACKAGE_NAME@ &&
+mkdir .build &&
+cd .build &&
+../bootstrap --parallel=2 &&
+make -j2 &&
+make test &&
+./bin/cpack &&
+./bin/cpack --config CPackSourceConfig.cmake
+
+mv @CYGWIN_SRC_PACKAGE_NAME@-@CPACK_CYGWIN_PATCH_NUMBER@-src.tar.bz2 "$tdir"
+mv @CYGWIN_PACKAGE_NAME@-@CPACK_CYGWIN_PATCH_NUMBER@.tar.bz2 "$tdir"