mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 16:15:46 -04:00
Initial community commit
This commit is contained in:
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
echo "# This file was generated automatically by running build/git/generate_gitignore.sh inside a svn working copy." > .gitignore
|
||||
|
||||
(
|
||||
svn pl --recursive --xml | xpath -q -e '/properties/target[property/@name = "svn:ignore"]' | grep '^<target' | sed 's/<target path=//g' | sed 's/>$//g' | sed 's/"//g'
|
||||
) | sort | while IFS=$'\n' read -r WCDIR ; do
|
||||
if [ "x$WCDIR" = "x." ] ; then
|
||||
PREFIX="/"
|
||||
else
|
||||
PREFIX="/${WCDIR}/"
|
||||
fi
|
||||
echo "checking ${WCDIR} ..."
|
||||
(
|
||||
svn pg svn:ignore "${WCDIR}"
|
||||
) | sort | while IFS=$'\n' read -r PATTERN ; do
|
||||
if [ "x$PATTERN" != "x" ] ; then
|
||||
echo " setting ${WCDIR}: ${PREFIX}${PATTERN}"
|
||||
echo "${PREFIX}${PATTERN}" >> .gitignore
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
Reference in New Issue
Block a user