Dotclear

Changeset 3074


Ignore:
Timestamp:
08/09/11 01:30:37 (12 years ago)
Author:
dolmen
Message:

Fixes the release script to make a zip that DC can understand

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/dc1redirect/release.sh

    r3030 r3074  
    11#!/bin/bash 
    2 plugin=dc1redirect 
     2[[ -d .svn ]] && plugin=$(LANG=C svn info | sed -n 's!^URL: http.*/!!p') 
     3[[ -z "$plugin" ]] && plugin=$(basename "$(pwd)") 
    34svnurl=https://svn.dotclear.net/lab/plugins/$plugin 
    45rev=$(LANG=C svn info "$svnurl" | sed -n 's/^Last Changed Rev: \([0-9]*\)$/\1/p') 
    5 echo    "$plugin-r$rev" 
    6 test -d "$plugin-r$rev" && rm -Rf "$plugin-r$rev" 
    7 mkdir   "$plugin-r$rev" 
    8 cd      "$plugin-r$rev" 
    9 svn export -r "$rev" "$svnurl" 
    10 test -f "$plugin/release.sh" && rm -f "$plugin/release.sh" 
    11 zip -R "$plugin-r$rev.zip" $(find "$plugin") 
     6tmpdir="$plugin-r$rev" 
     7echo    "$tmpdir" 
     8test -d "$tmpdir" && rm -Rf "$tmpdir" 
     9mkdir   "$tmpdir" 
     10cd      "$tmpdir" 
     11svn export -r "$rev" "$svnurl" || exit $? 
     12output="../$plugin-r$rev.zip" 
     13rm -f "$output" 
     14find "$plugin" | zip "$output" -@ -x "$plugin/release.sh" 
     15rm -Rf "$tmpdir" 
Note: See TracChangeset for help on using the changeset viewer.

Sites map