Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small improvements to the build script #15

Closed
mhp77 opened this issue Jun 30, 2012 · 1 comment
Closed

Small improvements to the build script #15

mhp77 opened this issue Jun 30, 2012 · 1 comment

Comments

@mhp77
Copy link

mhp77 commented Jun 30, 2012

I’d like to propose some small improvements to the build script (dev):

--- a/build/build.sh
+++ b/build/build.sh
@@ -18,6 +18,7 @@
 declare VERSION=$1
 declare DATE=`date '+%Y/%m/%d'`

+[ -e build/tds ] || mkdir build/tds
 \rm -rf build/tds/*
 \rm -f build/biblatex.tgz
 cp -r bibtex build/tds/
@@ -30,7 +31,7 @@
 perl -pi -e "s|\\%v.+|\\%v$VERSION|;" build/tds/tex/latex/biblatex/*.def

 # Can't do in-place on windows (cygwin)
-find build/tds -name \*.bak | xargs rm
+find build/tds -name \*.bak | xargs \rm -f
 find build/tds -name auto | xargs \rm -rf

 if [ "$2" = "norel" ]

The first change ensures that the tds subdirectory exists before the first copy operation takes place. The second change is for the sake of consistency.

@plk
Copy link
Owner

plk commented Jun 30, 2012

Ok, thanks. I didn't know anyone used this other than me.

PK

On 30 Jun 2012, at 12:23 PM, mhp77 wrote:

I’d like to propose some small improvements to the build script:

--- a/build/build.sh
+++ b/build/build.sh
@@ -18,6 +18,7 @@
declare VERSION=$1
declare DATE=`date '+%Y/%m/%d'`

+[ -e build/tds ] || mkdir build/tds
\rm -rf build/tds/*
\rm -f build/biblatex.tgz
cp -r bibtex build/tds/
@@ -30,7 +31,7 @@
perl -pi -e "s|\\%v.+|\\%v$VERSION|;" build/tds/tex/latex/biblatex/*.def

# Can't do in-place on windows (cygwin)
-find build/tds -name \*.bak | xargs rm
+find build/tds -name \*.bak | xargs \rm -f
find build/tds -name auto | xargs \rm -rf

if [ "$2" = "norel" ]

The first change ensures that the tds subdirectory exists before the first copy operation takes place. The second change is for the sake of consistency.


Reply to this email directly or view it on GitHub:
#15

Dr Philip Kime

@plk plk closed this as completed Jul 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants