ready for ics2018
This commit is contained in:
8
init.sh
8
init.sh
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
version=ics2018
|
||||
|
||||
log=""
|
||||
|
||||
function init() {
|
||||
@ -9,7 +11,7 @@ function init() {
|
||||
fi
|
||||
|
||||
while [ ! -d $1 ]; do
|
||||
git clone -b ics2017 https://github.com/NJU-ProjectN/$1.git
|
||||
git clone -b $version https://github.com/NJU-ProjectN/$1.git
|
||||
done
|
||||
log="$log$1 `cd $1 && git log --oneline --no-abbrev-commit -n1`"$'\n'
|
||||
rm -rf $1/.git
|
||||
@ -30,9 +32,11 @@ case $input in
|
||||
source ~/.bashrc
|
||||
|
||||
git add -A
|
||||
git commit -am "ics2017 initialized"$'\n\n'"$log"
|
||||
git commit -am "$version initialized"$'\n\n'"$log"
|
||||
|
||||
echo "Initialization finishes!"
|
||||
echo "By default this script will add enviornment variables into ~/.bashrc."
|
||||
echo "If you use shell other than bash, please add these enviornment variables manually."
|
||||
;;
|
||||
|
||||
[nN])
|
||||
|
Reference in New Issue
Block a user