it's versionned, no need to be so cautious

This commit is contained in:
Gwenhael Le Moine 2011-03-01 15:20:57 +07:00
parent b234d94fdf
commit a738211f50

View file

@ -19,12 +19,12 @@ PREFIX=/usr
rm -fr $PKG
# get sources
[ -e $CWD/essentialjsdesignpatterns$VERSION.zip ] && mv $CWD/essentialjsdesignpatterns$VERSION.zip $CWD/essentialjsdesignpatterns$VERSION.zip.bkp
wget -c http://www.addyosmani.com/resources/essentialjsdesignpatterns/book/essentialjsdesignpatterns$VERSION.zip -O $CWD/essentialjsdesignpatterns$VERSION.zip
[ ! -e $CWD/essentialjsdesignpatterns$VERSION.zip ] && wget -c http://www.addyosmani.com/resources/essentialjsdesignpatterns/book/essentialjsdesignpatterns$VERSION.zip -O $CWD/essentialjsdesignpatterns$VERSION.zip
mkdir -p $PKG$PREFIX/doc/$PRGNAM
unzip $CWD/essentialjsdesignpatterns$VERSION.zip -d $PKG$PREFIX/doc/$PRGNAM
rm -fr $PKG$PREFIX/doc/$PRGNAM/__MACOSX
find $PKG$PREFIX/doc/$PRGNAM/ -name .DS_Store -delete
cd $PKG
mkdir -p install