Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1123
update_ctags.sh
Active
Public
Actions
Authored by
dctrwatson
on Apr 23 2014, 12:38 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F146872: update_ctags.sh
Apr 23 2014, 12:38 AM
2014-04-23 00:38:10 (UTC+0)
Subscribers
None
#!/usr/bin/env bash
declare
-A
proj2repo
=(
[
"phabricator"
]=
"P"
[
"arcanist"
]=
"ARC"
)
PHAB_INSTALL
=
/opt/phabricator/phabricator
PHAB_REPOS
=
/var/lib/phabricator/repos
PHAB_CTAGS
=
/var/lib/phabricator/ctags
rm
${
PHAB_CTAGS
}
/*
for
PROJ in
"
${
!proj2repo[@]
}
"
;
do
REPO
=
${
proj2repo
[
"
$PROJ
"
]
}
TMP_REPO
=
/tmp/
${
REPO
}
mkdir -p
${
TMP_REPO
}
chown -R www-data:www-data
${
TMP_REPO
}
cd
${
TMP_REPO
}
export
GIT_DIR
=
${
PHAB_REPOS
}
/
${
REPO
}
export
GIT_WORK_TREE
=
${
TMP_REPO
}
sudo -u www-data git reset --hard master
sudo -u www-data git clean -fdx
find . -name
'*.py'
|
${
PHAB_INSTALL
}
/scripts/symbols/generate_ctags_symbols.php >
${
PHAB_CTAGS
}
/
${
PROJ
}
find . -name
'*.scala'
|
${
PHAB_INSTALL
}
/scripts/symbols/generate_ctags_symbols.php >>
${
PHAB_CTAGS
}
/
${
PROJ
}
find . -name
'*.go'
|
${
PHAB_INSTALL
}
/scripts/symbols/generate_ctags_symbols.php >>
${
PHAB_CTAGS
}
/
${
PROJ
}
${
PHAB_INSTALL
}
/scripts/symbols/import_project_symbols.php
${
PROJ
}
<
${
PHAB_CTAGS
}
/
${
PROJ
}
done
Event Timeline
dctrwatson
edited the content of this paste.
(Show Details)
Apr 23 2014, 12:38 AM
2014-04-23 00:38:10 (UTC+0)
dctrwatson
changed the title of this paste from untitled to
update_ctags.sh
.
dctrwatson
updated the paste's language from
autodetect
to
autodetect
.
Log In to Comment