inital checkin of svn support
This commit is contained in:
@@ -24,14 +24,24 @@ fi
|
||||
echo cd "$REPOBASE"
|
||||
cd "$REPOBASE"
|
||||
|
||||
# Update .gitignore or .hgignore
|
||||
echo VCS_TYPE: $VCS_TYPE
|
||||
|
||||
IGNOREFILE=".${VCS_TYPE}ignore"
|
||||
if ! grep -sx >/dev/null 'pubring.gpg~' "$IGNOREFILE" ; then
|
||||
echo 'pubring.gpg~' >>"$IGNOREFILE"
|
||||
fi
|
||||
if ! grep -sx >/dev/null 'secring.gpg' "$IGNOREFILE" ; then
|
||||
echo 'secring.gpg' >>"$IGNOREFILE"
|
||||
if [[ $VCS_TYPE = "git" || $VCS_TYPE = "hg" ]]; then
|
||||
# Update .gitignore or .hgignore
|
||||
|
||||
IGNOREFILE=".${VCS_TYPE}ignore"
|
||||
if ! grep -sx >/dev/null 'pubring.gpg~' "$IGNOREFILE" ; then
|
||||
echo 'pubring.gpg~' >>"$IGNOREFILE"
|
||||
fi
|
||||
if ! grep -sx >/dev/null 'secring.gpg' "$IGNOREFILE" ; then
|
||||
echo 'secring.gpg' >>"$IGNOREFILE"
|
||||
fi
|
||||
elif [[ $VCS_TYPE = "svn" ]]; then
|
||||
# add file to svn ignore propset
|
||||
IGNOREFILE="";
|
||||
svn propset svn:ignore 'pubring.gpg~
|
||||
secring.gpg' .
|
||||
svn commit -m "ignore file list"
|
||||
fi
|
||||
|
||||
# Make directories
|
||||
|
||||
Reference in New Issue
Block a user