FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
angular.js/scripts/code.angularjs.org/unpublish.sh at master · alpual/angular.js · GitHub
alpual
/
angular.js
Public
forked from
angular/angular.js
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
angular.js
/
scripts
/
code.angularjs.org
/
unpublish.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
45 lines (36 loc) · 1.1 KB
Breadcrumbs
angular.js
/
scripts
/
code.angularjs.org
/
unpublish.sh
Copy path
File metadata and controls
executable file
·
45 lines (36 loc) · 1.1 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!
/bin/bash
#
Script for removing specified release dir from code.angularjs.org.
echo
"
################################################
"
echo
"
## Remove a version from code.angular.js.org ###
"
echo
"
################################################
"
ARG_DEFS=(
"
--action=(prepare|publish)
"
"
--version-number=([0-9]+\.[0-9]+\.[0-9]+(-[a-z]+\.[0-9]+)?)
"
)
function
init
{
TMP_DIR=
$(
resolveDir ../../tmp
)
REPO_DIR=
$TMP_DIR
/code.angularjs.org
echo
"
code tmp
$TMP_DIR
"
}
function
prepare
{
echo
"
-- Cloning code.angularjs.org
"
git clone git@github.com:angular/code.angularjs.org.git
$REPO_DIR
#
#
Remove the files from the repo
#
echo
"
-- Removing
$VERSION_NUMBER
from code.angularjs.org
"
cd
$REPO_DIR
if
[
-d
"
$VERSION_NUMBER
"
]
;
then
git rm -r
$VERSION_NUMBER
echo
"
-- Committing removal to code.angularjs.org
"
git commit -m
"
removing v
$VERSION_NUMBER
"
else
echo
"
-- Version:
$VERSION_NUMBER
does not exist in code.angularjs.org!
"
fi
}
function
publish
{
cd
$REPO_DIR
echo
"
-- Pushing code.angularjs.org to github
"
git push origin master
}
source
$(
dirname
$0
)
/../utils.inc
Back
|
FazBrowse Home
|
New Git URL