From be22a5eeee0ef71bc123b5f9fd380e5b9c98ed3c Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Fri, 11 Oct 2013 20:38:45 +0200 Subject: [PATCH] release.sh: SVN to GIT updates - exclude .git instead of .svn when using local source (-c); - put the git tag (or "copy") in /etc/version rather than something outdated related to SVN; - remove SVN-specific -s flag (suggested by Erik). Change-Id: Ia35eb95c39ae93ebae5638c9dd7847428593b813 --- releasetools/release.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/releasetools/release.sh b/releasetools/release.sh index b27117847..5da125b75 100755 --- a/releasetools/release.sh +++ b/releasetools/release.sh @@ -75,11 +75,11 @@ fi FILENAMEOUT="" -while getopts "b:j:ls:pmMch?f:L:e:" c +while getopts "b:j:lpmMch?f:L:e:" c do case "$c" in \?) - echo "Usage: $0 [-l] [-p] [-c] [-m] [-M] [-f ] [-s ] -j [-L ] [-e ]" >&2 + echo "Usage: $0 [-l] [-p] [-c] [-m] [-M] [-f ] -j [-L ] [-e ]" >&2 exit 1 ;; b) @@ -99,8 +99,6 @@ do f) FILENAMEOUT="$OPTARG" ;; - s) USERNAME="--username=$OPTARG" - ;; m) MINIMAL=1 PACKAGES=0 ;; @@ -194,10 +192,9 @@ else ( cd .. && make cleandir >/dev/null ) echo "Copying contents from current src dir." srcdir=/usr/$SRC - ( cd $srcdir && tar --exclude .svn -cf - . ) | ( cd $RELEASEDIR/usr && mkdir $SRC && cd $SRC && tar xf - ) + ( cd $srcdir && tar --exclude .git -cf - . ) | ( cd $RELEASEDIR/usr && mkdir $SRC && cd $SRC && tar xf - ) echo "Copying done." REVTAG=copy - REVISION=unknown IMG=${IMG_BASE}_copy.iso fi @@ -244,7 +241,7 @@ echo " * Removing bootstrap files" chown -R root $RELEASEDIR/usr/src* cp issue.install $RELEASEDIR/etc/issue -echo $version_pretty, SVN revision $REVISION, generated `date` >$RELEASEDIR/etc/version +echo $version_pretty, GIT revision $REVTAG, generated `date` >$RELEASEDIR/etc/version rm -rf $RELEASEDIR/tmp/* if [ $MINIMAL -ne 0 ] -- 2.44.0