Commits

Bryan O'Sullivan committed 4fe8f40

Better tarball target.

  • Participants
  • Parent commits 9c201c6

Comments (0)

Files changed (1)

 tarball: $(tar_file)
 
 $(tar_file): $(files)
-	mkdir -p $(hg_root)/$(tar_root)
-	echo $(files) | tr ' ' '\n' | \
-	  xargs -i cp -a --parents {} $(hg_root)/$(tar_root)
-	tar -C $(hg_root) -c -f - $(tar_root) | bzip2 -9 > $(tar_file)
-	rm -rf $(hg_root)/$(tar_root)
+	hg archive -X '.hg*' -t tbz2 $(tar_file)
 
 .FORCE: rpm