Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
slapos.package
Commits
0d0f797f
Commit
0d0f797f
authored
Sep 17, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prefect output of slapos-cygwin-bootstrap
parent
22433a00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
windows/scripts/slapos-cygwin-bootstrap.sh
windows/scripts/slapos-cygwin-bootstrap.sh
+14
-14
No files found.
windows/scripts/slapos-cygwin-bootstrap.sh
View file @
0d0f797f
...
@@ -115,12 +115,12 @@ function slapos_patch_cygwin()
...
@@ -115,12 +115,12 @@ function slapos_patch_cygwin()
# Change format of readme.txt
# Change format of readme.txt
_filename
=
$(
cygpath
-u
$(
cygpath
-m
/
)
/../readme.txt
)
_filename
=
$(
cygpath
-u
$(
cygpath
-m
/
)
/../readme.txt
)
if
[[
-f
${
_filename
}
]]
;
then
if
[[
-f
${
_filename
}
]]
;
then
echo
"Changing
$(
cygpath
-w
${
_filename
}
)
as dos format ..."
csih_inform
"Changing
$(
cygpath
-w
${
_filename
}
)
as dos format ..."
unix2dos
${
_filename
}
&&
echo
OK.
unix2dos
${
_filename
}
&&
csih_inform
"OK."
fi
fi
_filename
=
~/.minttyrc
_filename
=
~/.minttyrc
echo
Checking
${
_filename
}
...
csih_inform
"Checking
${
_filename
}
..."
if
[[
!
-f
${
_filename
}
]]
;
then
if
[[
!
-f
${
_filename
}
]]
;
then
cat
<<
EOF
>
${
_filename
}
cat
<<
EOF
>
${
_filename
}
BoldAsFont=no
BoldAsFont=no
...
@@ -128,13 +128,13 @@ Font=Courier New
...
@@ -128,13 +128,13 @@ Font=Courier New
FontHeight=16
FontHeight=16
Scrollbar=none
Scrollbar=none
EOF
EOF
echo
"
${
_filename
}
has been generated."
csih_inform
"
${
_filename
}
has been generated."
else
else
echo
OK.
csih_inform
"OK."
fi
fi
_filename
=
"/cygtty.bat"
_filename
=
"/cygtty.bat"
echo
Checking
${
_filename
}
...
csih_inform
"Checking
${
_filename
}
..."
if
[[
!
-x
${
_filename
}
]]
;
then
if
[[
!
-x
${
_filename
}
]]
;
then
cat
<<
EOF
>
${
_filename
}
cat
<<
EOF
>
${
_filename
}
@echo off
@echo off
...
@@ -145,13 +145,13 @@ chdir ${slapos_cygroot}\\bin
...
@@ -145,13 +145,13 @@ chdir ${slapos_cygroot}\\bin
start mintty.exe -i /Cygwin-Terminal.ico -
start mintty.exe -i /Cygwin-Terminal.ico -
EOF
EOF
chmod
+x
${
_filename
}
chmod
+x
${
_filename
}
echo
"
${
_filename
}
has been generated."
csih_inform
"
${
_filename
}
has been generated."
else
else
echo
OK.
csih_inform
"OK."
fi
fi
_filename
=
"/autorebase.bat"
_filename
=
"/autorebase.bat"
echo
Checking
${
_filename
}
...
csih_inform
"Checking
${
_filename
}
..."
if
[[
!
-f
${
_filename
}
]]
;
then
if
[[
!
-f
${
_filename
}
]]
;
then
cat
<<
EOF
>
${
_filename
}
cat
<<
EOF
>
${
_filename
}
@echo off
@echo off
...
@@ -172,9 +172,9 @@ PAUSE ...
...
@@ -172,9 +172,9 @@ PAUSE ...
EXIT 0
EXIT 0
EOF
EOF
chmod
+x
${
_filename
}
chmod
+x
${
_filename
}
echo
"
${
_filename
}
has been generated."
csih_inform
"
${
_filename
}
has been generated."
else
else
echo
OK.
csih_inform
"OK."
fi
fi
csih_inform
"Patch cygwin packages for building slapos OK"
csih_inform
"Patch cygwin packages for building slapos OK"
...
@@ -212,7 +212,7 @@ function install_slapos_cygwin_package()
...
@@ -212,7 +212,7 @@ function install_slapos_cygwin_package()
csih_inform
"download
${
_filename
}
OK"
csih_inform
"download
${
_filename
}
OK"
chmod
+x /usr/bin/
${
_cmdname
}
.exe
||
csih_error
"chmod /usr/bin/
${
_cmdname
}
.exe failed"
chmod
+x /usr/bin/
${
_cmdname
}
.exe
||
csih_error
"chmod /usr/bin/
${
_cmdname
}
.exe failed"
done
done
_path
=
/etc/slapos/scripts
_path
=
/etc/slapos/scripts
csih_inform
"create path:
${
_path
}
"
csih_inform
"create path:
${
_path
}
"
mkdir
-p
${
_path
}
mkdir
-p
${
_path
}
...
@@ -242,7 +242,7 @@ function remove_all_files()
...
@@ -242,7 +242,7 @@ function remove_all_files()
csih_inform
"Remove /usr/bin/
${
_cmdname
}
"
csih_inform
"Remove /usr/bin/
${
_cmdname
}
"
rm
-rf
/usr/bin/
${
_cmdname
}
rm
-rf
/usr/bin/
${
_cmdname
}
done
done
csih_inform
"Remove /etc/slapos/scripts"
csih_inform
"Remove /etc/slapos/scripts"
rm
-rf
/etc/slapos/scripts
rm
-rf
/etc/slapos/scripts
}
}
...
@@ -313,7 +313,7 @@ slapos_sanity_check
...
@@ -313,7 +313,7 @@ slapos_sanity_check
# ======================================================================
# ======================================================================
# Force mode: remove all the files before run script
# Force mode: remove all the files before run script
# ======================================================================
# ======================================================================
[[
"
${
_install_mode
}
"
==
"force"
]]
&&
[[
"
${
_install_mode
}
"
==
"force"
]]
&&
csih_inform
"Force mode, cleanup all the patched files ..."
&&
csih_inform
"Force mode, cleanup all the patched files ..."
&&
remove_all_files
&&
remove_all_files
&&
csih_inform
"Cleanup OK."
csih_inform
"Cleanup OK."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment