3 echo ".gitattributes export-ignore" > .gitattributes
4 echo ".gitignore export-ignore" >> .gitattributes
5 echo "debian export-ignore" >> .gitattributes
6 echo "packaging export-ignore" >> .gitattributes
12 COUNT=`ls -1 packaging/*.spec | grep .spec | wc -l`
16 echo "No spec file !!"
20 SPEC_FILE=`ls -1 packaging/*.spec`
22 #SPEC_FILE=ug-image-viewer-efl.spec
24 VER=`grep "Version:" $SPEC_FILE | awk '{ print $2 }'`
25 REV=`grep "Release:" $SPEC_FILE | awk '{ print $2 }'`
27 PKGNAME=`grep "Name:" $SPEC_FILE | awk '{ print $2}'`
29 echo "package : $PKGNAME"
31 echo "revision : $REV"
33 # git archive --format=tar --worktree-attributes --prefix=$PKGNAME-$VER/ HEAD | gzip > ./packaging/$PKGNAME-$VER.tar.gz
42 cp ../* $PKGNAME-$VER -r
44 tar cvzf ../packaging/$PKGNAME-$VER.tar.gz $PKGNAME-$VER --exclude .git --exclude packaging
52 echo "Created : " $PKGNAME-$VER.tar.gz