This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
und - Update build system to use ZIP
- Loading branch information
Showing
4 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
#!/bin/bash | ||
|
||
# This script builds and packs the artifacts. Use when you have MSBuild installed. | ||
version=$(cat version) | ||
# This script builds KS and packs the artifacts. Use when you have MSBuild installed. | ||
ksversion=$(cat version) | ||
|
||
# Check for dependencies | ||
rarpath=`which rar` | ||
zippath=`which zip` | ||
if [ ! $? == 0 ]; then | ||
echo rar is not found. | ||
echo zip is not found. | ||
exit 1 | ||
fi | ||
|
||
# Pack documentation | ||
echo Packing documentation... | ||
"$rarpath" a -ep1 -r -m5 /tmp/$version-doc.rar "../docs/" | ||
cd "../docs/" && "$zippath" -r /tmp/$ksversion-doc.zip . && cd - | ||
if [ ! $? == 0 ]; then | ||
echo Packing using rar failed. | ||
echo Packing failed. | ||
exit 1 | ||
fi | ||
|
||
# Inform success | ||
rm -rf "../DocGen/api" | ||
rm -rf "../DocGen/obj" | ||
rm -rf "../docs" | ||
mv /tmp/$version-doc.rar . | ||
mv /tmp/$ksversion-doc.zip . | ||
echo Pack successful. | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters