logo       


svn commit: r1313 - trunk/tools/make-release: msg#00013

Subject: svn commit: r1313 - trunk/tools/make-release
Author: rey4
Date: 2006-04-06 10:22:39-0700
New Revision: 1313

Modified:
   trunk/tools/make-release

Log:
Change make-release script to generate ZIPs with CRLF line endings. 
Also, no longer include the elemx, tests, tools, tparse, and www
directories in releases.

* tools/make-release


Modified: trunk/tools/make-release
Url: 
http://viewvc.tigris.org/source/browse/viewvc/trunk/tools/make-release?view=diff&rev=1313&p1=trunk/tools/make-release&p2=trunk/tools/make-release&r1=1312&r2=1313
==============================================================================
--- trunk/tools/make-release    (original)
+++ trunk/tools/make-release    2006-04-06 10:22:39-0700
@@ -37,28 +37,38 @@
 
 ### Grab an export from the Subversion repository.
 echo "Exporting into:" ${TARGET}
-svn export http://viewvc.tigris.org/svn/viewvc/${ROOT} ${TARGET}
-
-### Various shifting, cleanup.  
-
-# Documentation is now also distributed together with the release, but
-# we still copy the license file to its traditional place (it is small
-# and many files still contain comments refering to this location):
-
-cp ${TARGET}/viewvc.org/license-1.html ${TARGET}/LICENSE.html
-rm -r ${TARGET}/viewcvs.sourceforge.net
-
-# Remove some tools only useful for ViewVC developers:
-rm ${TARGET}/tools/make-release
-
-# Make sure, permissions are reasonable:
-find ${TARGET} -print | xargs chmod uoa+r
-find ${TARGET} -type d -print | xargs chmod uoa+x
-
-# Cut the tarball:
-tar cf - ${TARGET} | gzip -9 > ${TARGET}.tar.gz
-
-# Create also a ZIP file for those poor souls :-) still using Windows: 
-zip -qor9 ${TARGET}.zip ${TARGET}
 
+for PLATFORM in unix windows; do
+  if test ${PLATFORM} = windows; then
+    EOL="--native-eol CRLF"
+  else
+    EOL="--native-eol LF"
+  fi
+
+  svn export ${EOL} http://viewvc.tigris.org/svn/viewvc/${ROOT} ${TARGET}
+
+  ### Various shifting, cleanup.  
+
+  # Documentation is now also distributed together with the release, but
+  # we still copy the license file to its traditional place (it is small
+  # and many files still contain comments refering to this location):
+
+  # Remove some not useful directories
+  rm -r ${TARGET}/{elemx,tests,tools,tparse,viewcvs.sourceforge.net,www}
+
+  # Make sure permissions are reasonable:
+  find ${TARGET} -print | xargs chmod uoa+r
+  find ${TARGET} -type d -print | xargs chmod uoa+x
+
+  if test ${PLATFORM} = windows; then
+    # Create also a ZIP file for those poor souls :-) still using Windows: 
+    zip -qor9 ${TARGET}.zip ${TARGET}
+  else
+    # Cut the tarball:
+    tar cf - ${TARGET} | gzip -9 > ${TARGET}.tar.gz
+  fi
+
+  # remove target directory
+  rm -r ${TARGET}
+done
 echo 'Done.'


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe