zipup target facelift
This commit is contained in:
parent
3fd1771d35
commit
5c2bea093a
6
.gitattributes
vendored
Normal file
6
.gitattributes
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
/.* export-ignore
|
||||||
|
/hooks export-ignore
|
||||||
|
doc/*.html export-ignore
|
||||||
|
coverity.sh export-ignore
|
||||||
|
|
||||||
|
/** export-subst
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -7,6 +7,10 @@
|
|||||||
/MSVC_*
|
/MSVC_*
|
||||||
.libs/
|
.libs/
|
||||||
|
|
||||||
|
# release files
|
||||||
|
/libtomcrypt-*
|
||||||
|
/crypt-*
|
||||||
|
|
||||||
# suppress output of build process
|
# suppress output of build process
|
||||||
gcc_[12].txt
|
gcc_[12].txt
|
||||||
testok.txt
|
testok.txt
|
||||||
|
34
makefile
34
makefile
@ -387,7 +387,8 @@ doxy: doxygen
|
|||||||
#from the clean command! This is because most people would like to keep the
|
#from the clean command! This is because most people would like to keep the
|
||||||
#nice pre-compiled crypt.pdf that comes with libtomcrypt! We only need to
|
#nice pre-compiled crypt.pdf that comes with libtomcrypt! We only need to
|
||||||
#delete it if we are rebuilding it.
|
#delete it if we are rebuilding it.
|
||||||
docs: crypt.tex
|
docs: doc/crypt.pdf
|
||||||
|
doc/crypt.pdf: crypt.tex
|
||||||
rm -f doc/crypt.pdf $(LEFTOVERS)
|
rm -f doc/crypt.pdf $(LEFTOVERS)
|
||||||
cp crypt.tex crypt.bak
|
cp crypt.tex crypt.bak
|
||||||
touch --reference=crypt.tex crypt.bak
|
touch --reference=crypt.tex crypt.bak
|
||||||
@ -418,24 +419,21 @@ docdvi: crypt.tex
|
|||||||
latex crypt $(silent_stdout)
|
latex crypt $(silent_stdout)
|
||||||
latex crypt $(silent_stdout)
|
latex crypt $(silent_stdout)
|
||||||
|
|
||||||
#zipup the project (take that!)
|
zipup: doc/crypt.pdf
|
||||||
no_oops: clean
|
@git diff-index --quiet HEAD -- || ( echo "FAILURE: uncommited changes or not a git" && exit 1 )
|
||||||
cd .. ; cvs commit
|
@perl helper.pl --check-all || ( echo "FAILURE: helper.pl --check-all errors" && exit 1 )
|
||||||
echo Scanning for scratch/dirty files
|
rm -rf libtomcrypt-$(VERSION) libtomcrypt-$(VERSION).*
|
||||||
find . -type f | grep -v CVS | xargs -n 1 bash mess.sh
|
# files/dirs excluded from "git archive" are defined in .gitattributes
|
||||||
|
git archive --format=tar --prefix=libtomcrypt-$(VERSION)/ HEAD | tar x
|
||||||
zipup: no_oops docs
|
mkdir -p libtomcrypt-$(VERSION)/doc
|
||||||
cd .. ; rm -rf crypt* libtomcrypt-$(VERSION) ; mkdir libtomcrypt-$(VERSION) ; \
|
cp doc/crypt.pdf libtomcrypt-$(VERSION)/doc/crypt.pdf
|
||||||
cp -R ./libtomcrypt/* ./libtomcrypt-$(VERSION)/ ; \
|
tar -cjf libtomcrypt-$(VERSION).tar.bz2 libtomcrypt-$(VERSION)
|
||||||
cd libtomcrypt-$(VERSION) ; rm -rf `find . -type d | grep CVS | xargs` ; cd .. ; \
|
zip -9rq libtomcrypt-$(VERSION).zip libtomcrypt-$(VERSION)
|
||||||
tar -cjvf crypt-$(VERSION).tar.bz2 libtomcrypt-$(VERSION) ; \
|
rm -rf libtomcrypt-$(VERSION)
|
||||||
zip -9r crypt-$(VERSION).zip libtomcrypt-$(VERSION) ; \
|
gpg -b -a libtomcrypt-$(VERSION).tar.bz2
|
||||||
gpg -b -a crypt-$(VERSION).tar.bz2 ; gpg -b -a crypt-$(VERSION).zip ; \
|
gpg -b -a libtomcrypt-$(VERSION).zip
|
||||||
mv -fv crypt* ~ ; rm -rf libtomcrypt-$(VERSION)
|
|
||||||
|
|
||||||
perlcritic:
|
perlcritic:
|
||||||
perlcritic *.pl
|
perlcritic *.pl
|
||||||
|
|
||||||
# $Source$
|
# git commit: $Format:%h$ $Format:%ai$ $Format:%ci$
|
||||||
# $Revision$
|
|
||||||
# $Date$
|
|
||||||
|
Loading…
Reference in New Issue
Block a user