Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F146872
update_ctags.sh
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
dctrwatson
Apr 23 2014, 12:38 AM
2014-04-23 00:38:10 (UTC+0)
Size
1007 B
Referenced Files
None
Subscribers
None
update_ctags.sh
View Options
#!/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
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/uq/la/hhdch2cdkopl6d3u
Default Alt Text
update_ctags.sh (1007 B)
Attached To
Mode
P1123 update_ctags.sh
Attached
Detach File
Event Timeline
Log In to Comment