-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
263 changed files
with
479 additions
and
128,545 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
TARGET=./nano_installer.tar.gz | ||
SOURCE=./nano_installer/ | ||
if [ -f "$TARGET" ]; then | ||
rm -f $TARGET | ||
echo $TARGET removed | ||
fi | ||
HASH=./nano_installer.sha1sum | ||
if [ -f "$HASH" ]; then | ||
rm -f $HASH | ||
echo $HASH removed | ||
fi | ||
|
||
tar zcfv $TARGET $SOURCE | ||
echo new package $TARGET created | ||
sha1sum $TARGET > $HASH | ||
echo hash $HASH genereated | ||
echo build package success |
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 |
---|---|---|
@@ -0,0 +1,96 @@ | ||
#!/bin/bash | ||
BinPath=nano_installer/bin | ||
Core=core | ||
Cell=cell | ||
FrontEnd=frontend | ||
WebRoot=web_root | ||
|
||
CoreSource=../$Core/$Core | ||
CoreTarget=$BinPath/$Core | ||
if [ ! -f "$CoreSource" ]; then | ||
echo $CoreSource not exists | ||
exit 1 | ||
fi | ||
|
||
cp $CoreSource $CoreTarget | ||
|
||
if [ $? -ne 0 ]; then | ||
echo fetch $CoreSource fail | ||
exit 1 | ||
fi | ||
|
||
echo $CoreSource copied to $CoreTarget | ||
|
||
CellSource=../$Cell/$Cell | ||
CellTarget=$BinPath/$Cell | ||
if [ ! -f "$CellSource" ]; then | ||
echo $CellSource not exists | ||
exit 1 | ||
fi | ||
|
||
cp $CellSource $CellTarget | ||
|
||
if [ $? -ne 0 ]; then | ||
echo fetch $CellSource fail | ||
exit 1 | ||
fi | ||
|
||
echo $CellSource copied to $CellTarget | ||
|
||
FrontSource=../$FrontEnd/$FrontEnd | ||
FrontTarget=$BinPath/$FrontEnd | ||
if [ ! -f "$FrontSource" ]; then | ||
echo $FrontSource not exists | ||
exit 1 | ||
fi | ||
|
||
cp $FrontSource $FrontTarget | ||
|
||
if [ $? -ne 0 ]; then | ||
echo fetch $FrontSource fail | ||
exit 1 | ||
fi | ||
|
||
echo $FrontSource copied to $FrontTarget | ||
|
||
|
||
WebSource=../$FrontEnd/$WebRoot | ||
WebTarget=$BinPath/frontend_files | ||
CurrentWeb=$WebTarget/$WebRoot | ||
|
||
if [ ! -d "$WebSource" ]; then | ||
echo Web file path: $WebSource not exists | ||
exit 1 | ||
fi | ||
|
||
if [ -d "$CurrentWeb" ]; then | ||
rm -Rf $CurrentWeb | ||
if [ $? -ne 0 ]; then | ||
echo delete path $CurrentWeb fail | ||
exit 1 | ||
fi | ||
echo Previous web files in $CurrentWeb deleted | ||
fi | ||
|
||
\cp -r $WebSource $WebTarget | ||
|
||
if [ $? -ne 0 ]; then | ||
echo fetch $WebSource fail | ||
exit 1 | ||
fi | ||
|
||
echo all web files in $WebSource copied to $WebTarget | ||
|
||
echo fetch success | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
./fetch.sh | ||
|
||
if [ $? -ne 0 ]; then | ||
echo fetch source files fail | ||
exit 1 | ||
fi | ||
|
||
./build.sh | ||
if [ $? -ne 0 ]; then | ||
echo build pacakge fail | ||
exit 1 | ||
fi | ||
|
||
echo latest package generated | ||
|
||
exit 0 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
9ff23b848c906ae2b96a876de073533920aab85e ./nano_installer.tar.gz |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.