Permalink
Browse files

New release 303

  • Loading branch information...
1 parent a564e9b commit fef2ec41c2d5723619ac889561a38faadb506a8d Klink committed Mar 28, 2012
Showing with 15 additions and 11 deletions.
  1. +1 −1 LATESTIS
  2. +6 −0 debian/changelog
  3. +8 −10 usr/local/bin/stalag13-cleanup-music-directory-02-rename.pl
View
@@ -1 +1 @@
-302
+303
View
@@ -1,3 +1,9 @@
+stalag13-utils (2.303-20120328) unstable; urgency=low
+
+ * Upstream release
+
+ -- Mathieu Roy <klink@bender.stalag13.ici> Wed, 28 Mar 2012 23:13:43 +0200
+
stalag13-utils (2.302-20120328) unstable; urgency=low
* Upstream release
@@ -58,7 +58,7 @@
close(ALBUMINFO);
# create the destination directory, skip everything if it already exists
- my $destdir = "$maindir/".lc("$style/$band/$year-$album");
+ my $destdir = "$maindir/$style/".lc("$band/$year-$album");
print "$destdir existe déjà, dossier ignoré.\n" if -d "$destdir";
next if -d "$destdir";
system("/bin/mkdir", "-p", $destdir) unless $debug;
@@ -115,16 +115,14 @@
# more cleanups
print "/usr/bin/urlize -D $destdir\n";
system("/usr/bin/urlize", "-D", $destdir) unless $debug;
- print "/bin/chown -R $user:$user $maindir/".lc("$style/$band/")."\n";
- system("/bin/chown", "-R", "$user:$user", "$maindir/".lc("$style/$band/")) unless $debug;
- print "/bin/chmod -R a+r $maindir/".lc("$style/$band/")."\n";
- system("/bin/chmod", "-R", "a+r", "$maindir/".lc("$style/$band/")) unless $debug;
+ print "/bin/chown -R $user:$user $maindir/$style/".lc("$band/")."\n";
+ system("/bin/chown", "-R", "$user:$user", "$maindir/$style/".lc("$band/")) unless $debug;
+ print "/bin/chmod -R a+r $maindir/$style/".lc("$band/")."\n";
+ system("/bin/chmod", "-R", "a+r", "$maindir/$style/."lc("$band/")) unless $debug;
- ## if we get here, everything was moved, we can safely eraze initial dir
- #print "rm -rvf $importdir/$dir";
- #system("/bin/rm", "-rf", "$importdir/$dir") unless $debug;
- # Ask to do it manually to avoid data loss
- print "Job done, now you should remove content of $importdir/$dir\n";
+ # if we get here, everything was moved, we can safely eraze initial dir
+ print "rm -rvf $importdir/$dir";
+ system("/bin/rm", "-rf", "$importdir/$dir") unless $debug;
}
closedir(IMPORT);

0 comments on commit fef2ec4

Please sign in to comment.